Viber/DialogFlow (API.AI) webhook demonstration
In this example we are building a simple Viber chatbot using DialogFlow and Node.js. The final chatbot will generate nutrition responses for users based on the inputs they provide. The bot uses the data.gov nutrition facts API as its source.
See the developer guide at developers.viber.com for more details.
Select “Export and Import”.
Select “Restore from zip”. Follow the directions to restore.
ViberSampleAgent.zip
file in this repository.cp .env.sample .env
. .env
with your Data.gov API key.https://[App Name].herokuapp.com/hook
.For both meal.info
and nutrition.info
intents check both “Use webhook” and “Use webhook for slot-filling” in the “Fulfillment” section, and save the intent.
If you find any issues with this sample, please open a bug here on GitHub.
Your use of this sample is subject to, and by using or downloading the sample files you agree to comply with, the Viber API Terms of Service.