A runkit runtime for connecting your Bot engine with your DialogFlow.
- Clone or download this repo
- Node.js is already installed
npm install
npm run start
- Replace YOUR_API_AI_KEY with your Client Access Token in DialogFlow dashboard
Note: if you want to make self production, remove YOUR_API_KEY from server.js and create .env file in your server
- You will notice at path "/" and get "Hello World!". Just redirect to route "/api/bot" and you will get JSON with content Error. This is normal! Now grab url: https://yourdomain.com/api/bot into you Bot Engine and set it up JSON API to your bot or if you have own node server, feel free to make HTTP call
Note: it depends with your Bot engines setup
- According to my docs fo API.AI and my code, set up your attribute in user input queryString
Need a free node server? Feel free deploy it to Heroku or drop a message irhamputraprasetyo@gmail.com