/date-gpt

Return reply to message based on intent.

Primary LanguageJavaScript

Date-GPT

AI generated message with intent to reply on any message using OpenAI.

Demo

Demo 1

Date GPT

Reply to question with intent.

Installation

  1. Create react app.
  npx create-react-app app_name
  1. Replace App.js in src folder with above App.js (Frontend)

  2. Add above index.js in root folder (Nodejs Backend)

  3. Install OpenAI. Run following command

  npm install openai
  1. Setup OpenAI organisation id and api key in index.js
    const configuration = new Configuration({
        organization: "your_organization_id",
        apiKey: "your_api_key",
    });
  1. Start react app using terminal command:
    npm start

your application will start at port 3000

  1. Start nodejs server in another terminal using command:
    node index.js

your server will start at port 3001