-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prompt and Hero Card button does not send the respond back to the bot in Slack #327
Comments
Found this issue, might be related #326 but looks like it's using Slack interactive message |
Hi @youyu16 Yup I've set the webhook URL as well. it only has payload, callbackid as the request body. Thanks |
@aldvintumbelaka any exception occur when you sent that action message? |
When I click the button on slack I will get full activity with all the things bot needs and the original message from Slack inside ChannelData Filed. could you please put and example of what you received here? |
@aldvintumbelaka this is part of the message what I got |
@youyu16 The problem is when I try to pass it to the botframework adapter process activity, it returns me with this message: validateAndFixActivity(): missing activity type When i do a check, here's the different between the normal message request body and request body that I got from the slack button when clicked. And this is what i got when a button is clicked in slack Looks like it's automatically being wrapped inside the payload object. The problem is, in the process activity function from botframework module, it get the req.body straight away. |
Hi @aldvintumbelaka , 1 For sending hero card, it works well. I can click the button and send back title '1'. I'm using C# SDK and this code should construct the same activity with you provided: 2 For sending SuggestedActions, yes I repro the bug. The button is not rendered. We will try to fix it. Since we're following the same doc, let's assume our configuration is well, so there are 2 suspicious aspects: |
Hi @youyu16 I'm using the azure portal, not the slack adapter. But, i'm using node js, not the C# SDK. Do you think it might be the issue? |
Hi @aldvintumbelaka , |
Hi @aldvintumbelaka , I use sample here: https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/javascript_nodejs/02.echo-bot |
@aldvintumbelaka , |
Hi @ssss141414 sorry i have a limited internet access during new year break, I'm testing it again now. I'll try to redo all the configuration and do another check. |
Hi @ssss141414 I've got it working now. Looks like there is a miss-configuration issue in the redirect url and event subscriptions. |
Hi,
I'm having a problem where I have prompt button or hero card button in Slack.
When the user click the button, it doesn't send any response back to the bot.
Here's my code (using Hero Card)
Tested it using step.prompt as well using both Hero Card style or I leave style as undefined
I try testing it using suggested action as well, but it doesn't render properly in Slack (only render as bullet points)
I also have enabled the Event Subscriptions in Slack
And also enabled Interactivity with https://slack.botframework.com/api/Action as the Request URL
Is there anything that I do wrong on the setup or something?
I'm pretty sure I've followed all steps in here https://docs.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-slack?view=azure-bot-service-4.0
Note: this is working totally fine in Test in Web Chat, in Direct Line, and Microsoft Teams.
Thanks
The text was updated successfully, but these errors were encountered: