Skip to content

RajKKapadia/YouTube-Openai-Dialogflow-CX-ES-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub User's stars GitHub followers

Connect OpenAI to Dialogflow CX/ES

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.

Youtube

I have recorded a quick tutorial on this topic, you can watch it here.

Things you will need

  • 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

How to use it

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

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...

About

This is a repository for my YouTube channel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages