Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect slack app to webhook?

How can I do the above as I keep getting the following error when I try and interact with the accompanying button.

Darn – that didn't work. Only Slack Apps can add interactive elements to messages
like image 821
Atlantic0 Avatar asked Nov 17 '16 14:11

Atlantic0


1 Answers

Interactive Buttons are some of the features that only work if you use a Slack app. One reason for that is that you need a place to configure the URL of your script for Slack to send the request to when someone is clicking on a button. It will also work with webhooks, but only if the webhook is also part of the Slack app. It will not work with a simple custom webhook.

To make a Slack app for your Slack team you need to follow two steps.

  1. Create a new Slack app (e.g. on this page)
  2. Install the Slack app in your Slack team with oath. (See here)

Note that you do not need to publish your Slack app to the Slack App directory. That is optional.

like image 86
Erik Kalkoken Avatar answered Oct 22 '22 07:10

Erik Kalkoken