Skip to main content

Slack Integration

Connect Slack to work with Autoheal directly from your workspace. You can message it privately, @mention it in a channel, and receive alert and investigation updates. Autoheal answers conversationally by default. It starts a full investigation when you ask it to look into something.

Capabilities​

Once connected, agents can:

CapabilityDescription
Direct-message chatDM the Autoheal bot for a private, persistent chat session — ask questions, query data, get help
@Mention in channelsMention the bot in any channel. It replies in a thread and can escalate to a full investigation
Agent-decided investigationsAsk it to investigate / look into / find the root cause and it starts a real investigation, threading results back to where you asked
About tabThe app's About tab describes what Autoheal does and how to work with it
Welcome messageTeammates you invite to Autoheal get a one-time intro DM in Slack. Connecting Slack also welcomes your existing teammates (with an opt-out). Only people on your Autoheal team are messaged — never your whole Slack workspace
New chatIn a DM, each message you send starts its own chat, and Autoheal replies in that thread. To start fresh, send a new message
Alert & investigation notificationsReceive alerts, investigation updates, and root-cause cards in Slack
Answer the agent in SlackWhen an investigation or an agent run needs your input, its question posts as an interactive card. Pick an option, multi-select (investigations), Skip, or Write your own… for a free-text reply. Answering resumes the run automatically
Approve agent actions in SlackWhen an agent started from Slack calls a tool that an approval policy gates, an approval card posts in the thread: the tool, the integration, the arguments, the agent, and the policy. Approve or Reject decides it and resumes the run. The card then shows who decided, wherever the decision was made
Decide hypotheses in-threadRoot-cause cards carry 👍 Accept / 💬 Refine / 👎 Dismiss on each hypothesis. Accept and Dismiss are recorded straight from Slack. Refine opens the hypothesis's open questions in Autoheal so you can answer them
Progress indicatorA "Working on it…" message posts the moment Autoheal receives your request, then edits itself into the answer when the agent replies. When the request runs an agent, the message has a Stop button while the agent works, and says "Waiting for approval…" or "Waiting for your answer…" while a card waits
Shareable deep linksEvery chat and investigation carries a link back to the Autoheal web app
note

Write tools on this integration are available to an agent unless its tool filters exclude them. These tools send, update, and pin messages, add reactions and bookmarks, create, join, and archive channels, and invite users. A governance policy on write operations pauses each write for a person to approve, and every call is recorded in the Audit Trail.

Prerequisites​

  • A Slack workspace where you have permission to install apps
  • Admin or owner permissions to authorize the Autoheal Slack app

Setup​

  1. Connect to Slack
    1. Go to Integrations in Autoheal
    2. Click Slack
    3. Click the Connect to Slack button
    4. Authorize the Autoheal app in your Slack workspace
  2. Say hi in a DM
    1. Open a direct message with the Autoheal app (find it under Apps in your Slack sidebar)
    2. Send a message like hi — Autoheal replies in a private, persistent chat session
    3. Check the app's About tab for a quick overview of what it can do
  3. Invite the Bot to channels (optional)
    1. Open any channel where you want Autoheal to help
    2. Type /invite @Autoheal or mention @Autoheal
    3. The bot joins and is ready to respond in that channel
note

Already connected before these features shipped? Re-authorize the Slack app so Autoheal can get the newer permissions that direct messages need. In Autoheal go to Integrations → Slack and run Connect to Slack again for the same workspace. It re-authorizes in place (no duplicate). Your existing connection keeps working. Reconnecting just grants the added scopes and welcomes your team.

Re-authorizing also lets agents read files attached to Slack messages, such as screenshots and logs (the files:read scope). Until you do, an agent that tries to open an attachment reports that the Slack app needs the files:read scope.

How It Works​

  • In a DM: each message you send starts its own chat, and Autoheal replies in a thread under it. This matches the channel behavior. Reply within that thread to continue the conversation. Send a new top-level message to start fresh. No @mention needed.
  • In a channel: @mention the bot with your question. It replies in a thread. Each thread is its own session.
  • Investigations: when you ask Autoheal to investigate, look into, or find the root cause of something, it starts a full investigation. It threads the hypotheses, findings, and root-cause card back to where you asked.
  • Acknowledgement: Autoheal posts a "Working on it…" message the instant it receives your request. It then edits that same message into the answer, so you always know it's working.
  • Stopping an agent: when your request runs an agent (with /agent or a Slack trigger), the "Working on it…" message has a Stop button. Click it to stop the run. The message changes to "Stopping…" and then to a note that the run was stopped. The button goes away when the agent replies. Anyone in the thread who can run the agent can stop it.
  • Approvals and questions: when the agent needs an approval or asks a question, a card posts in the thread. While it waits, the "Working on it…" message says "Waiting for approval…" or "Waiting for your answer…" and has no Stop button: Reject or your answer is how you decide. After the card is answered, the message goes back to "Working on it…" with Stop.
    • Who can act: approving or rejecting needs permission to update approvals in the project; answering needs permission to run the agent. Your Slack email must belong to a member of your Autoheal team. Being in the channel is not enough.
    • Deciding elsewhere: an approval made in the Autoheal web app or the CLI also updates the card. If the run is stopped while a card waits, the card shows that the run was stopped.
  • Starting fresh: just send a new top-level message. It starts a new chat in its own thread. Your previous threads stay saved and linkable.

Route channels to projects​

Your organization connects Slack once, and every project shares that connection. To decide which project a channel belongs to, map the channel to a project. Everything from a mapped channel then goes to that project: /agents and /agent commands, @mentions that run an agent, and alerts Autoheal picks up from the channel.

If your organization has more than one project, Autoheal asks a channel to choose its project before it does anything there:

  • When you add Autoheal to a channel, it posts a message asking which project the channel belongs to.
  • When you @mention Autoheal in a channel with no project, it replies with the same question instead of answering. Choose the project, then mention Autoheal again.

Click Configure in Autoheal in that message to connect the channel to a project in the web app, then mention Autoheal again. Until a channel has a project, alerts from it go to your organization's default project. Direct messages, and channels linked to an incident, don't need a project. An organization with a single project never sees the question.

You can also map channels in Autoheal:

  • From a project: open Settings → Integrations → Slack → Projects, pick a channel, and click Add. The channel routes to the project you're in.
  • From the organization: open Organization settings → Integrations → Slack → Projects. You see every channel's mapping, and you can map a channel to any project.

Channels sync from Slack once a day. A channel you add Autoheal to shows up right away. For any other new channel, click Refresh channels on the Projects tab. Refreshing needs permission to update the context graph in the project; Members and Project Admins have it.

Each channel routes to one project. To move a channel, remove its mapping and add it to the other project. A private channel's project can be chosen only by an organization admin (in the organization settings), because mapping one shares its messages with everyone in the project.

Who can map channels is part of each person's role. By default, Members and Project Admins can map channels into their own project, and Org Admins can map any channel. See Roles for details.

Usage Examples​

In a direct message (no mention needed):

which services are erroring right now?
investigate why the checkout service is returning 500s

In a channel where the bot is present:

@Autoheal look into high latency on the payments API
@Autoheal what changed in the last deployment?
@Autoheal who is on call for the platform team?

Best Practices​

Dedicated Channels

Create dedicated channels for Autoheal investigations (e.g., #autoheal-investigations) to keep your main channels clean while maintaining visibility into ongoing investigations.

Incident Channels

Invite the Autoheal bot to your incident response channels so it can assist during active incidents with real-time investigation capabilities.

Thread Conversations

Use Slack threads for follow-up questions to keep conversations organized and maintain context for Autoheal.

Troubleshooting​

Bot Not Responding
  • In a channel, check that the bot is invited and that you used @Autoheal (with the @ mention)
  • In a DM, message the bot directly. No mention is needed
  • Check that the Slack integration shows as Connected in Autoheal
  • Try re-authorizing the Slack app if the issue persists
Can't Message the Bot in a DM
  • If the DM composer is disabled ("Sending messages to this app has been turned off"), the app's Messages tab isn't enabled. An admin must re-authorize / reinstall the app so the latest configuration applies
  • Re-authorizing also grants the direct-message permissions if you connected before those features shipped
Authorization Failed
  • Check that you have admin or owner permissions in the Slack workspace
  • Check that third-party app installations are allowed in your workspace settings
  • Contact your Slack workspace admin if app installations are restricted
Notifications Not Arriving
  • Check that the bot is present in the target channel
  • Check that the Slack integration is enabled (not disabled) in Autoheal
  • Check that Slack notification settings are not muting the bot