I'm trying to include block kit interactive components such as textboxes and buttons in a slack message that is sent via the API.
The buttons work perfectly when the message is sent by the bot and not impersonates a real user. But when posting as a user (I.E. Setting set_user
as true when calling the chat.postMessage
API endpoint), the buttons show up but do not work.
It seems that slack does not make an HTTP request to the "Interactivity request URL" specified in the Slack App's configuration.
Has anyone managed to get it to work? Thanks
Do you mean to say the interactivity is not working when you use the as_user
parameter on chat.postMessage
? If that's the case then the issue is that this parameter, as_user
is not supported for newer apps. In other words it's a legacy parameter that shouldn't be used. If you want your app to post as another user you will have to add the chat:write.customize scope. See the documentation about authorship.