Slack
Mention your bot in Slack, and a connic agent answers in the thread. Agents can also post their results to a channel without a mention.
- Modes
- Inbound, Outbound
- Set up in
- Dashboard or connectors/*.yaml
- Documentation
- Slack docs
- Publisher
- By connic
Answer mentions in the thread
Mention the bot in a channel it has joined. Every agent linked to the inbound connector starts, and an outbound connector on the same Connection posts the answer under the mention.
- Mentions only
- The bot reacts to app_mention events. It doesn't read channel history, and messages from bots are ignored.
- One inbound connector per Connection
- Link several agents to it, and each of them starts on a mention.
- No double runs
- connic derives each run ID from the Slack event, so an event that Slack delivers again doesn't start a second run.
Slack signs the event
connic checks the signature and timestamp before any agent starts.
X-Slack-SignatureLinked agents start
The run gets the mention text without the bot handle, plus the workspace, channel, user and thread IDs.
app_mentionThe bot reacts with ๐
connic adds the reaction once the runs are queued, so people can see the bot picked up the message.
The answer lands in the thread
An outbound connector on the same Connection posts the agent's output under the original message.
thread_ts
Create the app from a generated manifest
connic writes the Slack app manifest with the Events URL, the app_mention event and five bot scopes. You create the app in your own workspace and keep its name, icon and installation.
- Your app
- The app belongs to your workspace. Uninstall it in Slack, and connic disconnects the Connection.
- Five scopes
- app_mentions:read and chat:write for mentions and replies, channels:read and groups:read to list joined channels, reactions:write for the ๐. No history, DM, file or user profile scopes.
- Two secrets
- The Signing Secret verifies that events come from Slack, and the xoxb- bot token posts the replies. Both are encrypted and masked after saving.
{
"display_information": {
"name": "Support Copilot",
"description": "Slack bot connected to connic."
},
"features": {
"bot_user": { "display_name": "support-copilot" }
},
"oauth_config": {
"scopes": {
"bot": [
"app_mentions:read",
"channels:read",
"chat:write",
"groups:read",
"reactions:write"
]
}
},
"settings": {
"event_subscriptions": {
"request_url": "<events-url>",
"bot_events": ["app_mention", "app_uninstalled"]
}
}
}Post results to any channel the bot has joined
An outbound Slack connector posts the agent's output as a message, whether the run answers a mention or comes from another connector or a schedule.
- Routing
- A channel_id in the output wins. Without one, a run started by a mention on the same Connection replies in its thread, and any other run posts to the connector's default channel.
- Three ways to send
- Send after every completed run, give the model a tool to call, or call send_connector from middleware when your code decides.
- Rate limits handled
- When Slack rate-limits a message, connic waits for the Retry-After time and sends it again.
{
"text": "BLOCK p_4410: 37 small charges in one hour.",
"channel_id": "C07FRAUD01"
}from connic.tools import send_connector
async def after(response: str, context: dict) -> str:
if response.startswith("BLOCK"):
await send_connector(
"post_fraud_alert",
{"text": response, "channel_id": "C07FRAUD01"},
)
return responseWhere Slack fits
Pick a setup to see what reaches the agent and what it posts back to Slack.
Someone mentions the bot with a question, and the agent answers from your docs in the thread.
{
"text": "How do I rotate the staging database password?",
"user_id": "U07KD2M4P",
"team_id": "T05EXAMPLE",
"channel_id": "C06PLATFORM",
"thread_ts": "1792141200.481239",
"event_id": "Ev07Q4R2T1"
}{
"text": "Rotate it in the vault, then restart the staging workers."
}Mention the bot with an error, and the agent replies with likely causes and next checks.
{
"text": "Checkout returns 502 since 14:05. Any idea?",
"user_id": "U07KD2M4P",
"team_id": "T05EXAMPLE",
"channel_id": "C05INCIDENT",
"thread_ts": "1792141200.481239",
"event_id": "Ev07Q4R2T1"
}{
"text": "Likely a payment provider timeout after the 14:03 deploy."
}Your payment service posts risky transactions, and the agent flags them in #fraud-alerts.
{
"payment_id": "p_4410",
"amount": 1.0,
"currency": "EUR",
"card_country": "BR",
"ip_country": "DE",
"attempts_last_hour": 37
}{
"text": "p_4410: 37 small charges in an hour, likely card testing."
}Your CI posts each deploy, and the agent writes the release notes to #releases.
{
"service": "checkout-api",
"version": "2.14.0",
"commits": [
"Speed up refunds",
"Round EUR totals to two decimals"
]
}{
"text": "checkout-api 2.14.0: faster refunds, EUR totals rounded.",
"channel_id": "C06RELEASES"
}Slack FAQ
More connectors
AWS SQS
Drain SQS queues with an agent. Each message is deleted once its runs complete, and failed ones return after the visibility timeout.
Inbound ยท Outbound
Google Pub/Sub
Run an agent on every message a Pub/Sub push subscription delivers, checked with Google's signed token, and publish results to a topic.
Inbound ยท Outbound
Google Sheets
Run an agent on every new row in a spreadsheet and append its results as rows. connic signs in with your own service account.
Inbound ยท Outbound
Microsoft Teams
Let people chat with an agent in Microsoft Teams through your own Azure Bot. It answers in the chat or channel thread and posts results to channels.
Inbound ยท Outbound
Outlook (Microsoft 365)
Run an agent on new email in a Microsoft 365 mailbox and reply in the same thread. connic signs in with your own Entra ID app. Attachments included.
Inbound ยท Outbound
WhatsApp
Answer WhatsApp messages to your business number with an agent, files included. Reply within 24 hours or reach people with approved templates.
Inbound ยท Outbound