Skip to main content
connic

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.
  1. Slack signs the event

    connic checks the signature and timestamp before any agent starts.

    X-Slack-Signature
  2. Linked agents start

    The run gets the mention text without the bot handle, plus the workspace, channel, user and thread IDs.

    app_mention
  3. The bot reacts with ๐Ÿ‘€

    connic adds the reaction once the runs are queued, so people can see the bot picked up the message.

  4. 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.
slack-app-manifest.json
{
  "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.
connector-payload.json
{
  "text": "BLOCK p_4410: 37 small charges in one hour.",
  "channel_id": "C07FRAUD01"
}
middleware/payment-review.py
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 response

Where 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.

Teammate in a channel
Inbound Slack
docs-assistant
Answer in the thread
slack-payload.json
{
  "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"
}
output.json
{
  "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.

On-call engineer
Inbound Slack
incident-triage
Next checks in the thread
slack-payload.json
{
  "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"
}
output.json
{
  "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 service
Inbound webhook
fraud-screen
Post to #fraud-alerts
transaction.json
{
  "payment_id": "p_4410",
  "amount": 1.0,
  "currency": "EUR",
  "card_country": "BR",
  "ip_country": "DE",
  "attempts_last_hour": 37
}
output.json
{
  "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.

CI pipeline
Inbound webhook
release-notes
Post to #releases
deploy.json
{
  "service": "checkout-api",
  "version": "2.14.0",
  "commits": [
    "Speed up refunds",
    "Round EUR totals to two decimals"
  ]
}
output.json
{
  "text": "checkout-api 2.14.0: faster refunds, EUR totals rounded.",
  "channel_id": "C06RELEASES"
}

Slack FAQ

You do. You create the app in your workspace from a manifest connic generates, and you control its name, icon, installation and channel membership. If you uninstall the app, connic disconnects the Connection.

No. It requests app_mentions:read and chat:write for mentions and replies, channels:read and groups:read to list the channels it has joined, and reactions:write for the ๐Ÿ‘€ reaction. It has no history, direct message, file or user profile scopes.

The Signing Secret proves that event requests come from Slack. The xoxb- bot token lets connic check the installation and post replies as your bot. Both are encrypted and masked after saving.

Yes. A Slack Connection has one inbound connector, and every agent linked to it starts on a mention. Outbound connectors can use the same Connection as well.

Yes, with type: slack and the name of a Slack Connection. The Connection itself, with its Slack app, is set up in the dashboard; until then, the deploy fails.