Copyrights from : https://github.com/supermamon/apiai-nodejs-webhook-sample
with Dialogflow(aka API.AI) + Slack Integration
-
Make an account for Dialogflow (chatbot platform) : https://console.dialogflow.com/api-client/#/login
-
Create a new agent : https://console.dialogflow.com/api-client/#/newAgent
-
Edit agent import Entities and Intents from .ZIP file : https://console.dialogflow.com/api-client/#/editAgent Choose this file => ["CoffeeMeBot.zip" - API.AI Entities and intents for slack integration]
-
Select Fulfillment menu from selected agent then fill appropriate information
-
- URL* : e.g. https://coffeemewebhook.herokuapp.com/webhook
-
- HEADERS : e.g. Auth-Token : an-example-token
above token value will be checked in Webhook server.
-
-
Select Integrations menu from selected agent then activate the slack integration : Sign in to already created workspace from slack, then you are ready to go for the test
This Chatbot program was created for self study. I have not connected to proper database, just used .txt file for temporal use of input data.
Most basic communication with Chatbot was available with Dialogflow chatbot platform, But when I needed some data to remember the order from the customer, I have used the webhook to validated or update the data.