What happens if we don't enable "interactivity and shortcuts" option in slack api?

276 Views Asked by At

I'm trying to create a slack app. And am planning to use a button for my slack app to give the message a better look even though the same was possible through a link in the message. enter image description here

And was successful in doing so. However, i'm seeing this message:

enter image description here

The button is basically a link to an external site so i'm not sure if I should enable the interactive and shortcuts option in the slack api. Is there any side-effect during production, if I don't enable it?

1

There are 1 best solutions below

0
On

The button component requires the interactivity and shortcut option to be enabled. Once you do so, clicking on this button will send a payload to your server (you could also set up a serverless function for this). Your server will need to respond back with an acknowledgment response.

If you don't enable interactivity and shortcut, users will also see this error message in your screenshot.