Skip to content

Post messages from your app to your Slack workspace’s channels, such as an alert when something happens in your app. To connect, you sign in to Slack as a bot or as yourself.

Connect Slack

Only a project owner can connect Slack, and everyone on the project can use it after that. If you’re a project owner, connect Slack to your app:

  1. Open Project Settings › Connections, and then turn on the switch for Slack. The Connect Slack dialog opens.
  2. Choose who your app posts as:
    • As a bot: your app posts as its own bot, under a name and icon that you choose.
    • As yourself: your app posts as you. Anyone your app lets post sends messages as you.
  3. Sign in to Slack in the new tab, and then allow the permissions that Slack asks for. When you come back, Slack shows as connected in Project Settings › Connections.

For more information, see Connect a service.

Where messages go

Your app can list your Slack workspace’s channels and post messages to them. Which channels it reaches depends on how you connected:

  • As a bot: your app posts in any public channel without an invite. To post in a private channel, invite the bot to that channel with /invite.
  • As yourself: your app posts wherever you can post, including the private channels that you’re in.

What to ask

To ask for a Slack feature, tell the agent what to post, where to post it, and what triggers the post. With a bot connection, you can also choose the name that the messages post under.

Example request

When a signed-in person adds a transaction over 500, post the payee and the amount to the #finance channel in Slack, under the name Ledger alerts.

Example request

Add a Share to Slack button to the monthly report that lets the person pick a channel from my Slack workspace, and then posts the report’s totals there.

Agent questions

If Slack isn’t connected, the agent asks you to connect it in a card above the message box. If you aren’t a project owner, ask one to connect it. See Connect when the agent asks.

Review

After the agent finishes, read the turn’s Summary and review its Changes. Check the affected screens in Screens, and try the change in Preview. If the change uses records or sign-in, test it with the thread’s own data in Data.

After you push a backend change, check the result in Backend.

Calls from the preview are real, so testing the feature posts real messages to your Slack workspace. See How connections work.

Call limit

Your app and the agent share a limit of 100 calls a minute to Slack through your app’s connection. See Limits.

Push

After you test the feature, push the changes to your app.

Next steps

Troubleshooting

  • Slack refuses a post to a private channel: your bot isn’t in that channel. Invite the bot to the channel with /invite, or post in a public channel.
  • Slack stops accepting your connection: this happens, for example, after someone removes the app from your workspace. If you’re a project owner, connect Slack again in Project Settings › Connections. Otherwise, ask an owner to connect it again.
  • Other connection problems: see Troubleshoot connections.