Search code examples
dialogflow-esslack

With a dialogflow chabot, are "actions on Google" available in Slack?


I did a bot that does a quiz. So far if I'm able to try talking to it through Dialogflow interface:

enter image description here

I need to click on "actions on Google".

But I am not able to do retrieve the same answers in Slack.

I did the following:

  • In the Slack app, go to the 'Bot users' section and click the 'Add a Bot User' button.
  • In the Slack app ‘Basic Information’ section, copy the 'Client ID', 'Client Secret' and 'Verification Token' and paste their values into the respective fields below.
  • Start the bot.
  • Copy the 'OAuth URL' value below and paste it into the 'Redirect URL(s)' field from the ‘OAuth & Permissions’ section of your Slack app settings. Save URLs.
  • Copy Events Request URL from the field below and paste it to Request URL in the ‘Events Subscription’ section of your Slack app.
  • Enable events in the ‘Event Subscriptions’ section.
  • Select necessary events in "Subscribe to Bot Events" section for example message.im, message.group, message.channel, im_created. These events will define which message types (direct, in channel, etc.) your bot will react to. Save changes. I selected message.im, message.groups, message.channels, im_created
  • In the Slack app settings, go to 'Manage Distribution' and add the bot to your Slack team using the 'Add to Slack' button.

In Slack I added on the left bar Dialogflow bot.

Are actions in Google used for a dialogflow chabot available when talking to it in Slack?


Solution

  • No, actions on google features are not available in Slack. This is because actions on google are features are used to create a chatbot for Google Assistant. Each time you select Actions on Google in the chat window of Dialogflow, you preview what your conversation looks like for Google Assistant conversations.

    Since you have already created a Slack bot and integrated it with your Slack channel, so you should be able to send any responses that you create in the Default or Slack tab of the responses to your bot. Just click on the + sign in the response tab and add Slack as a channel of your bot, then click on Add Response to start creating responses just for Slack using Dialogflows UI.

    enter image description here

    If you want to use other message types in Slack using Dialogflow, have a look at the docs. It lists how you can create Rich responses for Slack bots.