Connect a bot to Slack Interactions
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
- Sample type: samples
- Sample language: all languages
- 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:
- Create a new 'Azure Bot' in Bot Services in Azure portal
- Add 'Messenging Endpoint' bot configuration.
- Add 'Slack' as in the channels - a new Slack app need to be created and credentials properly filled in
- In the Slack app 'Interactivity & Shortcuts' menu, add 'https://slack.botframework.com/api/Actions' in the Request URL as mentioned in the documentation.
- Render a simple interactive Slack block card - see attached image for a sample card.
- 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
Additional context
https://stackoverflow.com/questions/62440845/why-doesnt-the-azure-bot-service-slack-connector-forward-events-and-interactive
Hi, can someone please take a look at this issue? Interactive events are not getting sent to bot service.
I was able to repro this issue. As mentioned in the previous posts, (Slack) interactions are not reaching the bot. When an interaction (with buttons) is sent to the client, the user should be able to click the button(s) which would then send an interaction event to the request URL, https://slack.botframework.com/api/Actions (i.e., the Connector/ABS). However, when the button is pressed it results in an error message displayed beside the button(s) with the following error: "The app responded with Status Code 400".
The below exported 'webapp-console.log' shows what appears to be a dispatch_failed error related to a blocks.actions API request. The timestamp on this error aligns with the timestamp of the interaction in the client. Clicking the button in an interaction from another developer/app not related to BotFramework resulted in no issues which suggests the issue isn't specifically a client issue but an issue with the API request being made from the client.
[12/18/24, 12:48:21:798] info: [API-Q] (T9BL4RFFS) 235000e0-1734554901.797 blocks.actions called with reason: dispatch_action_to_developer
[12/18/24, 12:48:21:798] info: [API-Q] (T9BL4RFFS) 235000e0-1734554901.797 blocks.actions is ENQUEUED
[12/18/24, 12:48:21:810] info: [API-Q] (T9BL4RFFS) 235000e0-1734554901.797 blocks.actions is ACTIVE
[12/18/24, 12:48:21:814] info: Breadcrumb: ui.click: div.p-plain_text_element > span
[12/18/24, 12:48:22:001] info: [API-Q] (T9BL4RFFS) 235000e0-1734554901.797 blocks.actions is REJECTED: API not ok dispatch_failed
[12/18/24, 12:48:22:002] error: (T9BL4RFFS) {"error":"235000e0-1734554901.797 blocks.actions not ok: dispatch_failed"}