Learn to connect Dialogflow to OpenAI using a NodeJS webhook.
Connect OpenAI to Dialogflow CX
Hey everyone, if you want a connection between OpenAI and Dialogflow ES, read more. You will learn how to connect your existing Dialogflow CX agent to openAI.
GitHub repository
https://github.com/RajKKapadia/YouTub...
Things you will need
Dialogflow CX agent
some knowledge of Dialogflow CX as well
OpenAI account and API Key
create an account [here](https://openai.com/)
NGROK for exposing our local server to the internet for testing
get it from [here](https://ngrok.com/)
Nodejs as a programing tool
install it from [here](https://nodejs.org/en/download/)
How to use it
install all the required packages in the project folder
use the command `npm install --save`
create a `.env` file in the folder and set two variables `PORT` and `OPENAI_API_KEY`
run the local server `npm run start`
start NGROK engine
make sure the ports are same
set the NGROK url in Webhook section
`YOUR NGRK URL/dialogflow` it should be something like this
test the connection
Deploy
You can deploy this functionality on anywhere, for a free resource watch [this]( • Heroku Alternative | Learn to deploy ... ) video.
About me
I am `Raj Kapadia`, I am passionate about `AI/ML/DL` and their use in different domains, I also love to build `chatbots` using `Google Dialogflow ES/CX`, I have backend development experience with Python[Flask], and NodeJS[Express] For any work, you can reach out to me at...
[LinkedIn]( / rajkkapadia )
[Fiverr](https://www.fiverr.com/rajkkapadia)
[Upwork](https://www.upwork.com/freelancers/~0...)
[Youtube]( / @rajkkapadia )
You can share your views on this video in the comment section.
If you like my work, subscribe to my channel for more new videos.
Enjoy the life, Feel the music.
Peace.