Skip to content

Connect a bot to Slack Interactions #3971

@anil-mndl

Description

@anil-mndl

ABS when configured to "Add and configure interactive messages" as stated in the documentation Connect a bot to Slack doesn't forward interactive messages to the bot service.

Sample information

  1. Sample type: samples
  2. Sample language: all languages
  3. Sample name: n/a

Describe the bug

As per the documentation, Slack interactions initiate an HTTP POST request when users interact with interactive components. The request URL is pointed to https://slack.botframework.com/api/Actions which should forward those requests to the URL mentioned in 'Messaging Endpoint' for the bot. This request forwarding doesn't happen.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new 'Azure Bot' in Bot Services in Azure portal
  2. Add 'Messenging Endpoint' bot configuration.
  3. Add 'Slack' as in the channels - a new Slack app need to be created and credentials properly filled in
  4. In the Slack app 'Interactivity & Shortcuts' menu, add 'https://slack.botframework.com/api/Actions' in the Request URL as mentioned in the documentation.
  5. Render a simple interactive Slack block card - see attached image for a sample card.
  6. Click on the interactive button.

Expected behavior

When a user clicks on the button in the interactive block card, Slack initiates a HTTP POST request which should route to the 'Messenting Endpoint' as setup bot configuration. Apparently, no such message is sent from the Bot Services.

Screenshots

image
image

Additional context

https://stackoverflow.com/questions/62440845/why-doesnt-the-azure-bot-service-slack-connector-forward-events-and-interactive

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or an unintended behavior.needs-triageThe issue has just been created and it has not been reviewed by the team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions