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