Docs

Your bots in Slack

Each of your bots can be in Slack as itself: its own app in your workspace, with its own name. People @mention it in a channel, or send it a DM, and it answers there in a thread. It can also post in the channels it's in by itself, for example a schedule's report or news of work it started.

Put a bot in Slack

In Settings → Bots, open the bot. Its Slack card has four steps:

  1. Create Slack app. Slack opens with the bot's app already filled in: its name, what it may do, and how it connects. Pick your workspace, click Create, then Install to Workspace and Allow.
  2. Bot token. In the app's pages on Slack, Install App shows the Bot User OAuth Token, starting xoxb-. Copy it into the first field.
  3. App token. Basic Information → App-Level Tokens → Generate Token and Scopes. Give it any name, add the connections:write scope, and Generate. Copy the token, starting xapp-, into the second field.
  4. Connect. Caret checks both tokens with Slack, keeps them in this machine's secret store, and the card shows the bot as @name in <workspace>.

Do this once for each bot you want in Slack. Each gets its own app, so you can tag each one on its own.

You can also upload the bot's face as the app's icon: Basic Information → Display Information.

Talking to it

  • In a channel: add the bot first (mention it, or /invite @name), then @name with your message. It answers in that message's thread, and 👀 shows on your message while it works.
  • In a DM: open its app in Slack's sidebar and write to it.
  • Its answer is the last thing it says in that turn. Everything else, its tools and steps, stays in its conversation in Caret, where you can follow along.
  • If it needs your OK or an answer to go on, it says so in Slack, and you answer in Caret.

Messages from Slack go into the bot's one conversation, one at a time, with a line saying who wrote and where, so it remembers them like anything else you tell it.

Where it runs

The bot runs on the machine it lives on. While a bot is in Slack, that machine's engine keeps running after you close the app, so it can answer. On a Mac that's asleep or off, it answers when the Mac is back. For a bot that's always there, put it on a server or devbox.

Be careful what it can do

Anyone in a channel the bot is in can write to it, and it works with your agent's accounts and in Auto mode. Only add it to channels whose people you'd trust with that, and think about what its memory holds before you do.

Take it out

Disconnect on its Slack card closes its connection and forgets its tokens on this machine. Removing the bot does the same. The app stays in your workspace until you remove it there, under Settings & administration → Manage apps.