Skip to content
Back to Documentation

Slack Integration

Bring AI-powered support to your Slack workspace. Respond to messages, handle mentions, and manage conversations seamlessly.

Prerequisites

  • Slack Workspace

    Admin access to install apps in your workspace

  • AgentPro Account

    An active AgentPro account with at least one agent configured

  • Agent with knowledge

    An agent with knowledge added, ready to handle Slack messages

Step-by-Step Setup

1Start in AgentPro

  1. 1Go to Dashboard → Channels → Slack.
  2. 2Pick the agent that should answer in Slack and give the channel a name. If your AgentPro plan shows an Add to Slack button, click it, choose your workspace, and you are done: skip the remaining steps.
  3. 3Otherwise click Continue. AgentPro creates the channel so that the Request URL exists before Slack asks for it.

2Create the Slack app from the manifest

  1. 1Click Copy manifest on the Slack channel page.
  2. 2Open api.slack.com/apps → Create New App → From an app manifest.
  3. 3Select your workspace, paste the manifest (JSON) and click Create. Slack verifies the Request URL while creating the app.

Internal apps do not go through Slack App Review. Only members of your workspace can use the agent.

3Install the app and copy two values

  1. 1On Install App click Install to Workspace and allow the permissions.
  2. 2Copy the Bot User OAuth Token (starts with xoxb-).
  3. 3Open Basic Information and copy the Signing Secret.

4Paste the credentials in AgentPro

  1. 1Back on the Slack channel page paste the Bot token and Signing Secret and click Connect Slack. AgentPro validates the token with Slack before saving.
  2. 2The status card should read Connected with Slack reached your URL: Yes. Click Test connection for a checklist if anything is amber.
  3. 3In Slack, invite the agent to a channel with /invite @YourBot, then @mention it with a question. It replies in a thread.

Doing it by hand instead of the manifest

Create the app “From scratch”, then reproduce what the manifest would have set:

OAuth & Permissions → Bot Token Scopes

app_mentions:readchat:writeim:historyim:readusers:readusers:read.email

Add channels:history only if you want the agent to answer every message in channels (Reply mode “Everything”).

Event Subscriptions → Request URL

Paste the Request URL shown on your Slack channel page (it contains your channel id). It looks like:

https://agentpro.chat/api/v1/webhooks/slack/{channel_id}

Slack only lets you save this once the channel exists in AgentPro, which is why the wizard creates the channel first.

Event Subscriptions → Subscribe to bot events

app_mentionmessage.im

Add message.channels only for Reply mode “Everything”.

App Home → Show Tabs: enable the Messages Tab and allow users to send messages from it, otherwise nobody can DM the agent.

Features

AI Auto-Response

Automatic AI-powered responses in Slack channels and DMs

Thread Replies

Responses are sent in threads to keep conversations organized

Channel Mentions

Respond to @mentions of your agent in any channel

Direct Messages

Handle private conversations in DMs with your agent

Human Takeover

Agents can take over conversations from the dashboard

Unified Inbox

View and manage Slack conversations in your dashboard

Why didn’t the agent reply?

Every event Slack sends is checked in this order. The first matching reason is why a message was skipped:

  1. The agent is not a member of the channel (run /invite @YourBot).
  2. Reply mode is "Mentions and direct messages" and the message did not @mention the agent.
  3. The message came from another bot or app; the agent never answers other bots.
  4. A teammate paused AI on that conversation in the Inbox (the thread is being handled by a person).
  5. The channel is paused, or the Slack app was removed from the workspace.
  6. The message was an edit, deletion or join notice rather than a new message.

Permanent problems (a rejected token, a wrong Signing Secret, no agent linked) are written to the channel page as Needs attention with the exact reason, and owners get a notification.

Troubleshooting

The agent does not reply

  • •Open Dashboard → Channels → Slack and click Test connection; the checklist names the missing piece.
  • •Invite the agent to the channel once with /invite @YourBot. Without that Slack never delivers channel messages.
  • •In "Mentions and direct messages" mode the agent only answers when you @mention it or DM it.
  • •An agent must be linked to the channel (the page shows "Setup incomplete" otherwise).
  • •"Slack reached your URL: Not yet" means Event Subscriptions were never saved with the Request URL.

Direct messages do not work

  • •In your Slack app open App Home → Show Tabs and enable the Messages Tab plus "Allow users to send messages from the messages tab".
  • •The im:history and im:read scopes and the message.im event must be present (the manifest adds them).
  • •Reinstall the app after changing scopes or events.

"Needs attention" with a signature error

  • •The Signing Secret saved in AgentPro does not match Basic Information → App Credentials. Paste it again under Update credentials.
  • •Requests older than five minutes are rejected; this only happens when a server clock is wrong.
  • •If you set an App ID, events from any other Slack app are refused on purpose.

The agent replied twice or answered every message

  • •Duplicate replies are prevented automatically: each Slack event is processed once even if Slack retries it.
  • •If the agent answers messages nobody addressed to it, switch Reply mode to "Mentions and direct messages" on the Slack channel page.

The workspace removed the app

  • •The channel switches to "Paused" with a note. Reinstall the app from Install App in Slack, then paste the new Bot token under Update credentials.

Need Help?

Our support team is here to help you set up your Slack integration.

Contact Support