Skip to content

Slack

A project’s members can talk to their agent from Slack: in a DM with a Slack app, and in threads of channels they add the app to. The app is your own: AgentSpaces makes it in your workspace from one pasted token (or you create it from its manifest), so it needs no listing in the Slack Marketplace.

You need to be an owner or admin of the organization in AgentSpaces, and allowed to create and install apps in your Slack workspace.

Add the app: one paste

In the project’s Settings, Slack, Add Slack app. The dialog asks for an app configuration token:

  1. At api.slack.com/apps (the dialog’s Open Slack apps), under Your App Configuration Tokens, Generate Token for your workspace, and copy the access token (xoxe.xoxp-..., not the refresh token below it).
  2. Paste it in the dialog, give the app a name if you like (up to 35 characters; it’s AgentSpaces otherwise, and a name of its own tells several AgentSpaces apps in one workspace apart), and Create app. AgentSpaces makes the app in your workspace from its manifest, with your organization’s icon and its own request URL (https://app.agent-spaces.eu/channels/slack/<id>). The token isn’t kept; it expires by itself after 12 hours.
  3. Install on Slack, and allow what it asks. Slack brings you back to the project’s settings with the app added, and the link dialog open for your own account.

An app made but never installed is forgotten after a day: delete it at api.slack.com/apps.

The manifest makes it an AI app (Slack’s “Agents & AI Apps”), so its DMs come in threads with a status while the agent works. It asks only what the app uses: to read messages that mention it and its DMs, to write messages and show that status, to read and upload files, and to read people’s names and emails (to show you which account you linked). Token rotation stays off: AgentSpaces needs a token that doesn’t expire. An Enterprise Grid org-wide install isn’t supported: install it in one workspace.

Or by hand

Set up by hand in the dialog, if you’d rather not make a configuration token:

  1. Create app on Slack opens api.slack.com with the app’s manifest filled in, your app’s request URL in it (to name it other than AgentSpaces, change name and display_name in the manifest there). Keep the dialog open, pick your workspace and create the app; Download app icon gives the icon to set under Basic Information.
  2. Install to Workspace, and allow what it asks.
  3. Back in the dialog, paste the app’s Bot User OAuth Token (OAuth & Permissions, xoxb-...) and its Signing Secret (Basic Information), and add it. AgentSpaces checks the token with Slack. If Slack’s Event Subscriptions page then says the request URL isn’t verified, click Retry there: Slack checked it before the app existed in AgentSpaces.

Using it

  • Linking. Until a member links their account, their own agent’s card on the canvas shows the app’s icon in orange, with a bubble under it: pressing either opens the link dialog. Or they go to Account, Chat apps, pick the app and get a code. They open the app in Slack and send it link <code> within 10 minutes; the same dialog then asks them to confirm. The app’s DM then talks to their agent in the app’s project.
  • Every DM thread is a conversation of its own. Each new chat with the app is a new session of the agent, with its own context; going back to an older thread goes on where it left off.
  • A restart, once. A machine that has run since before Slack came to AgentSpaces doesn’t know it yet: linking says so. Restart the agent’s machine from its card and link again.
  • A message is a prompt. Thinking... shows at once, the thread’s status says what the agent is doing, and its reply comes in the thread. Replies are formatted as the agent wrote them: headings, lists, tables and code. A question the agent asks (may it run a command?) comes with a button per answer. /cancel stops what it does for you there. The agent can also write first, when it has news.
  • Channels. A member adds the app to a channel and @mentions it: that thread (or the thread their message starts) becomes a conversation with their agent, a session of its own, which answers in it. The app sees only messages that mention it, so replies in the thread mention it too. Others in the thread who mention the app reach the same agent, marked as not its owner; people from another organization (Slack Connect) only ever do. Someone without a linked account sees how to link, only for them. Removing the app from a channel ends its threads there.
  • Files. The owner’s files in the DM or a thread reach the agent as artifacts of the project. Files from others in a thread don’t: they are asked to have the owner send them. The agent can send files back.

AgentSpaces keeps a thread for 7 days after its last message. Mention the app again after that and the agent picks it up where it left off.

Removing it

In the project’s Settings, Slack, Remove. Members’ links and conversations end. Then delete the app at api.slack.com/apps if you don’t use it elsewhere.

Last updated on