Search code examples
slackslack-apidialogflow-es

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!


Solution

  • The app_mention event is not supported by Dialogflow.

    I reached out to both Slack's and Dialogflow's customer service after experiencing the same issues as you.

    Slack checked on their side and even took a look at the logs for my bot user and saw that everything seemed to be sent to Dialogflow just fine.

    Dialogflow on the other hand answered this:

    At this time, the Slack integration of Dialogflow is ideal only for direct message. Bot will respond to any messages with or without a mention.

    Unfortunately, we can’t disclose details about our releases until they’re live. We announce all new features in our Change Log: https://dialogflow.com/support/change-log. Stay tuned!

    I just hope they'll add support for this some time soon. It's annoying not to have that feature, because now the bot user will either interfere with everything in a channel or only support direct messages. It might help the more people take the time to contact Dialogflow support at https://console.dialogflow.com/api-client/#/support .