Slack
Start agents when someone mentions your Slack bot, and post their results to channels and threads.
On this page
| Modes | Inbound, outbound |
| YAML type | slack |
| Credentials | A Connection of type slack, with the Slack app's signing secret and bot token |
| Bridge | Not supported |
| Custom domain | Not supported |
| Linked agents | One or more. A mention starts every linked agent. |
| While paused | Mentions get 200 with {"status": "ignored"} and start no runs, and Slack doesn't send them again. Outbound sends nothing. |
Set up
Open the agent. In Connector Flow, click Add inbound connector for mentions or Add outbound connector for sending. Then click Create New Connector and choose Slack.
Choose the mode, Inbound (Mentions) or Outbound (Send Messages). Under Connection, pick a Slack Connection whose setup is complete and continue with step 7, or click Create Slack connection.
Enter a name for the Connection and the name of the Slack app and bot, which people see in Slack. Click Create in Slack to open the generated app manifest, choose the workspace, review the scopes, and create the app.
In Slack, open Basic Information โ App Credentials, copy the Signing Secret, and paste it into connic.
In Slack, open App Manifest and verify the Events request URL that connic shows. connic detects Slack's signed verification request and moves on by itself.
In Slack, open Install App, install the app to the workspace, and paste the Bot User OAuth Token, which starts with
xoxb-, into connic.In Slack, invite the bot to every channel where mentions should start runs or where it should post, for example with
/invite @your-bot.For outbound, optionally pick a Default channel; the list shows the channels the bot has joined. Click Create. For outbound, then choose how the agent uses the connector and click Link connector.
Configuration
The fields of a Slack connector, the same in connectors/*.yaml, the REST API, and connic MCP. The Slack Connection they name must have finished its setup in the dashboard; until then, the deploy or request fails. The descriptions name the matching setting in the dashboard. Connectors in code describes the fields every connector shares, such as agents and environments.
| Field | Type | Status | Description |
|---|---|---|---|
| type | string | Required | slack. |
| mode | string | Required | inbound or outbound. Dashboard: Mode. |
| connection | string | Required | Inbound and outbound. Name or ID of a Slack Connection whose setup is complete. A Connection can have one inbound connector; see Slack app. Dashboard: Connection. |
| config | object | Optional | Slack settings. |
| channel_id | string | Optional | Outbound. ID of the channel for messages that name none and don't reply to a mention, such as C01234567. Dashboard: Default channel. |
The signing secret, the bot token, and the app name belong to the Connection, not to the connector.
Generated values
connic generates these on the Connection, so every connector that uses the Connection shares them.
| Value | Modes | Description |
|---|---|---|
| Events request URL | Inbound, outbound | Where Slack sends the app's events, one URL per Connection. connic puts it into the app manifest; you verify it in Slack during setup. |
| App manifest | Inbound, outbound | The Slack app definition with its bot scopes and events. Create in Slack opens it. |
| Workspace, Bot user ID | Inbound, outbound | Read from the bot token when you save it. The connector's details drawer shows them. |
Agent input
Modes: Inbound
An inbound connector starts a run for every linked agent each time someone mentions the bot in a channel it has joined. Messages from bots, including its own, are ignored. Once the runs are queued, connic adds an ๐ reaction to the message. The run receives:
{
"text": "Can you summarize today's incidents?",
"user_id": "U01234567",
"team_id": "T01234567",
"source_team_id": "T01234567",
"channel_id": "C01234567",
"thread_ts": "1724418000.123456",
"event_id": "Ev01234567",
"slack": { ... }
}textis the message with the bot mention removed.thread_tsidentifies the thread: its parent message, or the mention itself when the mention isn't in a thread.team_idis the workspace the app is installed in, andsource_team_idtheteam_idSlack sent with the event.slackholds the details connic uses to reply in the same thread.
Slack's retries of an event don't start another run. Inbound mode doesn't reply by itself: to answer in the thread, link the agent to an outbound Slack connector that uses the same Connection; see Outbound delivery.
Slack app
The generated manifest creates a Slack app with a bot user. It requests the bot scopes app_mentions:read, channels:read, chat:write, groups:read, and reactions:write: mentions, posting, the ๐ reaction, and the public and private channels the bot has joined, but no message history. It subscribes to the app_mention and app_uninstalled events at the Connection's Events request URL.
connic checks the signature of every request from Slack with the signing secret. When you save the bot token, connic checks that it has all five scopes; a replacement token must belong to the same app and workspace. connic stores the signing secret and the bot token encrypted and doesn't show them again.
The app and bot name has at most 35 characters and can't change once setup has started; rename the Connection instead. A new signing secret needs the Events request URL verified again.
A Connection serves any number of outbound connectors and one inbound connector, across all environments, because Slack sends an app's events to one URL. To start several agents from mentions, link them all to that inbound connector. To receive mentions in another environment, create a second Slack app, which means a new Slack Connection. If someone uninstalls the app from the workspace, the Connection loses its bot token: mentions start no runs and nothing is sent until you reinstall the app and save its new bot token.
While a Connection's setup isn't complete, for example after you replace the signing secret and before the Events request URL is verified again, or after the app was uninstalled, its outbound connectors don't send. Automatic deliveries are recorded as failed connector runs with slack_setup_not_ready, the agent tool isn't offered to the model, and send_connector raises an error.
Outbound delivery
Modes: Outbound
An outbound Slack connector posts one message with chat.postMessage each time it's used: when a linked agent's run completes, when the model calls it as a tool, or when middleware calls it, depending on the link's usage. The message goes to the first of these:
channel_idin the output or payload, in the thread given bythread_ts, if any.- The thread of the mention that started the run, when it came in through an inbound connector on the same Connection.
- The connector's Default channel, in the thread given by
thread_ts, if any.
Without any of these, the send fails with missing_channel_id. The bot can only post in channels it has joined.
Automatic output
An automatic link posts the run's final output. Plain text becomes the message. A JSON object takes the message from text, message, body, response, or output, in that order, and can set channel_id and thread_ts.
{
"text": "Daily incident review complete: 3 resolved, 1 monitoring.",
"channel_id": "C01234567",
"thread_ts": "1724418000.123456"
}Agent-tool and middleware payload
The model or middleware passes text, which is required and can't be empty, and optionally channel_id and thread_ts. Other fields are rejected. connic adds the bot token, the default channel, and the reply thread, none of which the model sees.
{
"text": "Incident INC-42 is resolved.",
"channel_id": "C01234567"
}Delivery and retries
connic posts the text without link or media previews. Rate limits, Slack server errors, and network errors are retried, up to 3 attempts in total; on a rate limit, connic waits as long as Slack's Retry-After asks. The connector's runs show each delivery with the channel and message timestamp, or with the error.
Limits and errors
| Limit | Value |
|---|---|
| Events from Slack | 1,000 per minute per Connection. Further events get 429. |
| Event size | 1 MiB |
| Request age | The signed timestamp must be within 5 minutes of connic's clock. |
| Message length | 39,000 characters. Longer text is cut off and ends with โฆ |
| Delivery | 3 attempts for rate limits, Slack server errors, and network errors |
Requests with a missing or wrong signature get 401. connic answers Slack within 2.5 seconds; if it can't, it answers 503 and Slack retries the event. Delivery errors include missing_channel_id, slack_setup_not_ready while the Connection's setup isn't complete, slack_installation_changed when the reply thread belongs to an earlier installation of the app, and Slack's own errors such as not_in_channel.