abuelgasimsaadeldin / dialogflow-gpt3

API written using nodejs for GPT3 connection with Dialogflow.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dialogflow and GPT3 Integration

API written using nodejs for GPT3 connection with Dialogflow.

Steps to install on Windows:

  1. If using anaconda use following command to install nodje and npm in ve
conda create -n nodejs-env nodejs 
  1. Clone the following repo with all the dependencies:
git clone https://github.com/abuelgasimsaadeldin/dialogflow-gpt3.git  
  1. Create .env file and place following:
OPENAI_API_KEY=""
  1. Install the dependencies:
npm install
  1. Run the API:
node dialogflowgpt3.js
  1. Use ngrok to make localhost public
ngrok http 3000

About

API written using nodejs for GPT3 connection with Dialogflow.

License:Apache License 2.0


Languages

Language:JavaScript 100.0%