Connecting your Augmi AI agent to Slack lets your agent respond to messages, handle DMs, and participate in channel conversations. This guide walks you through every step, from creating the Slack app to verifying the connection works.
Prerequisites
Before starting, make sure you have:
- An Augmi account with an active agent (or you’re in the process of creating one)
- Admin access to the Slack workspace you want to connect
- About 10 minutes
Step 1: Create a Slack App
- Go to api.slack.com/apps
- Click Create New App
- Select From scratch
- Give your app a name (e.g., your agent’s name like “SalesBot” or “SupportAgent”)
- Select the workspace you want to install it in
- Click Create App
You’ll land on the app’s Basic Information page. Keep this tab open — you’ll come back to it.
Step 2: Configure Bot Permissions (OAuth Scopes)
Your agent needs specific permissions to read and send messages.
- In the left sidebar, click OAuth & Permissions
- Scroll down to Scopes > Bot Token Scopes
- Click Add an OAuth Scope and add the following scopes:
| Scope | What it does |
|---|---|
app_mentions:read |
Lets the agent see when someone @mentions it |
channels:history |
Read messages in public channels the agent is in |
channels:read |
See the list of public channels |
chat:write |
Send messages as the agent |
groups:history |
Read messages in private channels the agent is invited to |
groups:read |
See private channels the agent is invited to |
im:history |
Read direct messages with the agent |
im:read |
See the list of DM conversations |
im:write |
Start new DM conversations |
mpim:history |
Read group DMs the agent is in |
reactions:write |
Add emoji reactions (used for message acknowledgment) |
users:read |
See basic user info (names, avatars) |
- Scroll back up and click Install to Workspace
- Review the permissions and click Allow
- Copy the Bot User OAuth Token — it starts with
xoxb-
Save this token somewhere safe. You’ll paste it into Augmi in a later step.
Step 3: Enable Socket Mode
Socket Mode lets your agent receive events in real time without needing a public URL. This is required for Augmi agents.
- In the left sidebar, click Socket Mode (under Settings)
- Toggle Enable Socket Mode to On
- You’ll be prompted to create an app-level token
- Name it something like
augmi-connection - Add the scope
connections:write - Click Generate
- Copy the App-Level Token — it starts with
xapp-
Save this token alongside the bot token from the previous step.
Step 4: Subscribe to Bot Events
Your agent needs to know when messages arrive. Event subscriptions tell Slack which events to forward.
- In the left sidebar, click Event Subscriptions
- Toggle Enable Events to On
- Under Subscribe to bot events, click Add Bot User Event and add:
| Event | When it fires |
|---|---|
message.im |
Someone sends a DM to the agent |
message.channels |
A message is posted in a public channel the agent is in |
message.groups |
A message is posted in a private channel the agent is in |
message.mpim |
A message is posted in a group DM the agent is in |
app_mention |
Someone @mentions the agent |
- Click Save Changes at the bottom
Step 5: Enable the Messages Tab (for DMs)
If you want users to DM your agent directly:
- In the left sidebar, click App Home
- Under Show Tabs, make sure Messages Tab is checked
- Optionally check Allow users to send Slash commands and messages from the messages tab
Step 6: Add Tokens to Augmi
Now paste the two tokens into Augmi.
During Agent Creation
If you’re creating a new agent:
- On the Connect messaging platforms step, click the Slack button
- Expand the setup guide by clicking “Show setup guide” if you need a reminder
- Paste your Bot Token (
xoxb-...) in the first field - Paste your App Token (
xapp-...) in the second field - Click Next to continue
For an Existing Agent
If your agent is already deployed:
- Go to your agent’s dashboard page
- Find the Channel Credentials section
- Paste the Slack bot token (
xoxb-...) in the Slack bot token field - Paste the Slack app token (
xapp-...) in the Slack app token field - Click Save Channel Credentials
- The agent will automatically pick up the new tokens (may take up to 60 seconds)
Step 7: Invite the Agent to Channels
After connecting, your agent can respond to DMs immediately. To have it participate in channels:
- Open the Slack channel you want the agent in
- Type
/invite @YourAgentName - Or click the channel name > Integrations > Add an App
By default, agents require an @mention to respond in group channels, so they won’t be noisy.
Troubleshooting
“Socket Mode is not turned on” Warning
If you see this in your agent logs, it means Socket Mode wasn’t enabled in Step 3. Go back to api.slack.com/apps, select your app, and verify Socket Mode is toggled on.
Agent Not Responding to DMs
Check these in order:
- Messages Tab enabled? — App Home > Show Tabs > Messages Tab should be checked
message.imevent subscribed? — Event Subscriptions > Bot Events should includemessage.im- Bot token correct? — Should start with
xoxb-. A common mistake is pasting the app token in the bot token field. - App installed to workspace? — OAuth & Permissions page should show “Reinstall to Workspace” (not “Install to Workspace”)
Agent Not Responding in Channels
- Agent invited? — Use
/invite @YourAgentNamein the channel message.channelsevent subscribed? — Check Event Subscriptions- @mention required? — By default, agents need an @mention in group channels. Try
@YourAgentName hello
“invalid_auth” Error
Your bot token may have been revoked or is incorrect. Go to OAuth & Permissions, click Reinstall to Workspace, and copy the new token.
Agent Responds Slowly
Augmi agents use Claude as their AI backbone. Response time depends on message complexity and current API load. Typical responses take 3-10 seconds. If responses consistently take longer than 30 seconds, check your agent’s logs in the Augmi dashboard.
What’s Next
Once Slack is connected, your agent can:
- Handle DMs — team members can chat with the agent directly
- Participate in channels — @mention the agent in any channel it’s been invited to
- Use emoji reactions — the agent adds a reaction to acknowledge it received your message
- Maintain conversation context — the agent remembers the conversation within a session (resets after the configured idle period)
You can also connect additional channels like Discord, Telegram, and WhatsApp from the same agent dashboard. Each channel operates independently, so your agent can be available everywhere your team communicates.
