Slack step: post a message to a channel
Post a message to a Slack channel through an incoming webhook you create in Slack. How to set up the connection, and what the step can and can't do.
Updated
Post to Slack posts a message to one Slack channel through an incoming webhook you create in Slack.
How to set it up
- In Slack, create an app at api.slack.com/apps (or open one you have), turn on Incoming Webhooks, click Add New Webhook to Workspace and pick the channel. Copy the webhook URL.
- In Foliot, add a Slack connection under Connections and paste the URL. It's stored encrypted. If the webhook is removed in Slack later, the connection shows Needs reconnecting, you get one email, and Replace webhook URL takes the new one without touching your steps.
- Add a Post to Slack step, choose the connection and write the Message, inserting data with + Data.
- Test this step posts a real message.
Limits
- The message goes to the channel the webhook was made for. To post somewhere else, make another webhook.
- It only posts. Foliot can't read Slack messages, reply in threads or act as a bot.
- When Slack is rate limiting, or can't be reached at all, the step is retried after 30 seconds, 2 minutes and 10 minutes. After a timeout or a Slack server error the message may already be there, so the step fails and asks you to check Slack instead of posting it twice.