Skip to main content
Connect AGO to your Slack workspace so people can message an AGO agent from a channel or a direct message. The agent answers in a thread under the original message.

Prerequisites

  • Admin rights in your Slack workspace, to create and install a Slack app
  • An AGO agent ready to answer questions
In the URLs below, replace <your-workspace> with your AGO workspace name (the <your-workspace> in <your-workspace>.useago.com).

Setup Guide

1

Create a Slack app

  1. Go to api.slack.com/apps
  2. Click Create New App > From scratch
  3. Name the app and select your Slack workspace
2

Add bot token scopes

In OAuth & Permissions, add these Bot Token Scopes:
3

Install the app and copy its credentials

  1. Go to Install App and click Install to Workspace
  2. Copy the Bot User OAuth Token (starts with xoxb-)
  3. In Basic Information > App Credentials, copy the Signing Secret
4

Send the credentials to AGO

Send the Bot User OAuth Token and the Signing Secret to AGO support through a secure channel. AGO adds them to your workspace configuration and confirms when it’s done.AGO rejects Slack events until the Signing Secret is configured.
5

Turn on event subscriptions

In Event Subscriptions:
  1. Turn on Enable Events
  2. Set the Request URL to https://<your-workspace>.api.useago.com/public/slack/webhook. Slack checks the URL and shows Verified.
  3. Under Subscribe to bot events, add message.channels and message.im
  4. Save, then reinstall the app if Slack asks you to
6

Test

  1. Invite the app to a channel with /invite @<app name>, or open a direct message with it
  2. Send a question
  3. The app replies in a thread with ”🤔 Thinking…”, then fills in the answer as the agent writes it

How Conversations Work

  • Each Slack thread is one AGO conversation. Replies in the same thread continue it.
  • AGO matches Slack users to AGO users by email. If Slack doesn’t share a user’s email, AGO uses a placeholder identity for that person.
  • AGO ignores messages from bots (including its own replies), edits, deletions, and join or leave notifications.
  • Markdown in answers is converted to Slack formatting. Links become clickable, and an image on its own line is shown as an image.

Route Messages to a Specific Agent

By default, Slack messages go to your default agent. To use another agent, add its ID to the Request URL:

Troubleshooting

Check that the URL uses your AGO workspace name and ends with /public/slack/webhook. If it still fails, contact AGO support.
  1. Check that the app was invited to the channel
  2. Check that the bot events message.channels and message.im are subscribed and the app was reinstalled afterwards
  3. Check with AGO support that the Bot User OAuth Token and Signing Secret are configured for your workspace. If you regenerated either of them in Slack, send the new value.
Check that the agent is active and test the same question in AGO. If it works in AGO but not in Slack, contact AGO support.
Check that the app has the users:read.email scope and reinstall it after adding the scope.