Skip to content
Docs
GitHub

Publish an Agent to Slack

Add a Slack channel to an Agent, publish it, connect a Slack workspace, and verify the first message.

7 min readEdit on GitHub

Applies toFramework (not available)Self-hostedEverruns Demo

This guide deploys an Agent as a Slack bot through an Agent-owned channel. For Slack scopes, manual setup, and troubleshooting, see Slack Integration.

  • An active Agent.
  • A way for Slack to reach Everruns. Socket Mode needs no public address; a Request URL needs a public HTTPS origin in PUBLIC_APP_URL. See Socket Mode or Request URL.
  • Permission to install an app in a Slack workspace.
  1. Open the Agent and select Channels and triggers.
  2. Select Add channel, then select Slack.
  3. Choose a session strategy.
  4. Leave the Slack credentials empty and select Create channel.

session_strategy controls how incoming Slack messages map to Everruns sessions:

Strategy Behaviour Use when
per_channel (default) One session per channel A teammate in the room, context shared across the channel
per_thread Each Slack thread is its own session Support bots, Q&A, each thread is a separate conversation
per_user One session per user Personal assistant, each user has their own ongoing chat

The Slack endpoint editor shows a Response policy selector:

  • Relevant messages is the default for new channels. It responds to direct messages, explicit @mentions, and clear requests within the agent’s purpose, including contextual thread follow-ups. Unrelated and uncertain messages stay silent.
  • Mentions only responds to direct messages and explicit @mentions.
  • All messages answers every message the bot can see.

Channels created before these defaults keep the settings they were saved with: a channel that never chose a session strategy or response policy still runs per_thread with All messages.

Relevant messages works best with a decision model. By default that is the deployment’s Decisions service: for Jev, set UTILITY_TYPESAFE_API_KEY and select UTILITY_DECISION_DRIVER=typesafe. An organization can use its own model instead: pick a Default decision model on the Models page and set System decisions to This organization’s model. The check then runs on your provider account. In a thread that already has a session it counts against that session’s budget and usage. A message that would start a new session is checked before any session exists, so it is not budget-checked.

Without a decision model, the agent’s own chat model answers the check, with a shorter purpose and fewer earlier messages, and Settings → Health shows an issue until a decision model is set up. That also applies to an organization that chose its own model but has none selected: it never falls back to the deployment’s model. Mentions and direct messages need no check. A failed or slow check (2 seconds for a decision model, 8 for the agent’s model) leaves the message silent, without posting an acknowledgement or running the agent.

The Agent’s Communication setting controls what an accepted turn posts to Slack: a Direct Agent posts its replies, and an Explicit Agent posts only what it sends with send_message. See Explicit communication. Response policy controls whether that turn starts. Select All messages to have the agent answer everything it sees.

Your organization must have a Slack workspace connected in Settings > Slack workspaces first; an administrator does this once. See Connect a Slack Workspace.

If your deployment connects workspaces through a Slack manager app, complete its consent in the same browser that started the connection. Each attempt expires after thirty minutes and can finish once. Separate tabs keep independent attempts. After cancellation, expiry, or an exchange failure, start a new connection from Settings > Slack workspaces.

  1. Select Publish in the channel editor.
  2. If more than one workspace is connected, choose which one.
  3. Select Add to Slack.
  4. Approve Slack’s consent screen. The workspace is already selected.
  5. If one-click setup is unavailable, return to Channels and triggers, expand the channel, and select Create Slack app. Copy the resulting signing secret and bot token back through Configure.

Publish first because, for a Request URL channel, Slack verifies the manifest’s channel Request URL when it creates the Slack app. A Socket Mode channel also needs its app-level token pasted under Configure; see Socket Mode or Request URL. New installs use /v1/channels/{channel_id}/slack/events.

The Slack app uses the agent’s avatar as its icon. With one-click setup, Everruns sets the icon when it creates the app, again once the app is installed, and whenever you change the avatar in Branding. When this deployment’s API is reachable on the public internet, Slack fetches that image; otherwise Everruns uploads the 512 px PNG. A Slack app created from the manifest by hand keeps Slack’s default icon: upload the avatar’s 512 px PNG (/v1/avatars/{avatar_id}/square-512.png) under Basic Information in Slack.

With one-click setup, later changes to the agent’s display name and description also update its Slack app automatically. If no display name is set, Slack uses the agent’s name. Updates preserve the app’s permissions and connection settings. A manually created Slack app needs its name and description updated in Slack.

  1. In Slack, enter /invite @botname in a channel.
  2. Mention the bot.
  3. Return to the Agent’s Channels and triggers tab and expand the Slack channel.
  4. Confirm that the checklist records the first message.

To stop new Slack messages without deleting the configuration, select Unpublish on this channel. Existing sessions remain available.

Select Delete in the Slack channel editor to remove that connection. For an app created through Add to Slack, this also deletes its Slack app, bot, and workspace installation. The confirmation explains this before you continue. Removing managed Slack apps requires permission to delete Agent integrations, including when archiving an Agent.

Archiving or deleting the Agent removes all of its Slack apps created by Everruns and stops new Slack messages. Archiving keeps the Agent definition, but its Slack connections become disabled and managed installation credentials are cleared. Restoring the Agent does not restore its Slack apps; install and publish its Slack channels again.

Manually configured Slack apps must be removed manually in Slack. The confirmation identifies these connections; Everruns stops receiving new messages but cannot remove their installations automatically.

If managed app removal fails, the action reports an error instead of completing. Check the connected workspace in Settings > Slack workspaces and retry. If the Agent has multiple Slack apps, some may already have been removed before another fails; retrying completes the remaining cleanup.

Open Settings > Health to review pending Slack permission or credential issues. The same warning appears beside the endpoint and under Action required in notifications. Reading or snoozing an announcement leaves the issue open.

Select Fix in Slack on the issue. Everruns adds the missing bot scopes to the app’s manifest, keeping its other settings, and opens Slack so you can approve them:

  • For an app Everruns created, Slack’s approval screen opens and returns you to the issue, which is checked again.
  • For an app you configured by hand, Everruns updates it through the organization’s connected Slack workspace and opens the app’s Install App page. Reinstall it there; the bot token stays the same. Come back to the Health page and it checks again. This works when the person who connected the workspace can edit the app in Slack. If not, the issue says why and lists the manual steps: add the listed bot scopes in Slack, reinstall the existing app, and save the refreshed bot token in the endpoint editor.

If the fix cannot run yet, the issue says why and links to what unblocks it. Most often Slack stopped accepting the organization’s connection to the workspace: select Reconnect Slack workspace, reconnect it under Settings > Slack, then return to the issue and select Fix in Slack.

To fix it by hand instead, for any app:

  1. Open the app at api.slack.com/apps and go to OAuth & Permissions.
  2. Under Bot Token Scopes, add the scopes the issue lists.
  3. Select Reinstall to Workspace and approve.
  4. For an app you configured by hand, if Slack shows a new bot token, save it in the endpoint editor. An app Everruns created keeps its token.
  5. Return to the issue and select Check again.

When several apps need the same fix, Fix N Slack apps goes through them one at a time. Your Slack administrator may need to approve the change. Use Check again to verify the installation; unavailable or stale permission evidence keeps the issue open until a current check succeeds.