This project is aimed to show how to connect a dialogflow agent to your own customizable UI.
- Clone this repo
- Find and run the index.html
- Chat with the sample coffee-ordering bot.
- Make a Dialogflow agent (for simplicity use prebuilt agents)
- Download the .json key-file and save it in the root folder
- Replace the name of keyfile in app.js with your key-file name
- Deploy this project on Heroku and make note of your heroku app url.
- Change the url in fetchmsg() function in index.js to the heroku app url followed by send-msg endpoint
- Run the index.html and start chatting with your bot in browser
- If you don't want to deploy on heroku , then run the node app locally and replace the url by localhost url.