Hey everyone, if you are looking for a connection between OpenAI and Dialogflow CX/ES, then read more. You will learn how to connect your existing Dialogflow CX/ES agent to openAI.
I have recorded a quick tutorial on this topic, you can watch it here.
- Dialogflow CX and ES agent
some knowledge of Dialogflow CX and ES as well
- OpenAI account and API Key
create an account here
- NGROK for exposing our local server to internet for testing
get it from here
- Python as a programing tool
install it from here
To replicate the work of this repository and run it locally, you need to follow these steps:
- create a
.env
file inside the root directory, create these environmental variables:OPENAI_API_KEY=YOUR OPENAI API KEY
- create a virtual environment and activate it before installing the packages
- install all the required dependencies from the
requirements.txt
file
pip install -r requirements.txt
- run the server with either of the following commands
python run.py
-
add the webhook url to Dialogflow
CX: YOUR NGROK URL/dialogflow/cx/receiveMessage
ES: YOUR NGROK URL/dialogflow/es/receiveMessage
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...