I was successfully able to integrate Dialogflow chatbot as an APP in Slack and it is accessible to chat using the APP tab.
However, for it to respond to messages in channels by mentioning like @bot hello
I realized that I have to add the app_mention event into Subscribe to Bot Events form.
That should work according to the documentation but it didn't in this case. so I started to wonder if that event isn't compatible with Dialogflow or if there was something missing in the documentation.
Please advise. Thanks!
* Go to Slack integration and sign in with your Slack account. * Click Add bot to Slack button. * Select the story you want to use in this integration with and chose one Slack channel for your bot to live on. * Apply all the changes by clicking Confirm .
Regenerate Hubot or Lita integration bot tokensVisit the App Directory at my.slack.com/apps/manage on your desktop. Click Edit configuration next to the integration. On the configuration page, click Regenerate below the current token. This is the new token that you can use anywhere you need it.
Add a bot userCreate a Slack app if you don't already have one, or select an existing app that you've created. Click on the OAuth & permissions tab in the left sidebar. Below Bot token scopes, select one or more scopes. Then click on Add an OAuth scope.
app_mention
is now supported by dialogflow. All you need to do is subscribe to the following bot events - app_mention
and message.group
in Slack. And in dialogflow, under slack integration, uncheck Process all messages
check box.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With