Code Monkey home page Code Monkey logo

openai-gpt-agentpi's Introduction

OPENAI-GPT-AGENTPI

Node.js Express Server with OpenAI and Private Investigator Functionality

Overview

This application is a Node.js server leveraging Express and other modules, integrated with OpenAI's Assistant API. It functions as a virtual Private Investigator, capable of performing web searches, summarizing content, and analyzing images.

Features

  • OpenAI Assistant Integration: Utilizes the OpenAI Assistant API for advanced querying and summarization.
  • Private Investigator Functionality: Searches Google for links and provides summarized content, aiding in private investigations.
  • Web Scraping: Scrapes LinkedIn profiles with Puppeteer for detailed information.
  • Image Description: Analyzes and describes images using OpenAI's Vision API.
  • File Upload: Supports file uploads for processing using multer.
  • Customizable Search: Fetches search results with a focus on LinkedIn URLs.
  • CORS Support: Implements Cross-Origin Resource Sharing (CORS) for flexible frontend interaction.

Prerequisites

  • Node.js
  • npm (Node Package Manager)
  • OpenAI API Key

Installation

# Clone the repository
git clone [repository-url]
cd [repository-name]

# Install dependencies
npm install

# Set environment variables
# Create a .env file and add your OpenAI API key
OPENAI_API_KEY=your_key_here

Usage

  1. Starting the Server

    npm start
    • The server will run on localhost:3000 or a specified PORT in the .env file.
  2. Endpoints

    • /chat: Interacts with the OpenAI chat model for investigative summaries.
    • /upload: Manages file uploads for further processing.
    • analyzeImage: function for image analysis and description.
    • Additional customized endpoints based on application needs.
  3. API Interaction

    • Use tools like Postman or integrate with a frontend for API interaction.
    • or Use Front end Provided In Public Folder

Contributing

  1. Fork the repository.
  2. Create a feature branch: git checkout -b new-feature
  3. Commit changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin new-feature
  5. Submit a pull request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.