Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dialogflow Slack integration app_mention not working

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.

SlackAPI Subscribe to Bot Events

Please advise. Thanks!

like image 984
Seif Sgayer Avatar asked Mar 15 '18 16:03

Seif Sgayer


People also ask

How do I integrate Slack with chatbot?

* 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 .

How to get bot Token Slack?

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.

How to Add bot user in Slack?

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.


1 Answers

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.

like image 190
Siva Avatar answered Oct 22 '22 05:10

Siva