IntegrationsIntegration setup guides

Slack

Connect Slack to your Appstrate agents.

Overview

Slack is a team messaging platform. The integration lets agents read channels, post messages and work with files and reactions.

Integration: @appstrate/slack, reached through the api_call tool. For how this works, see How integrations work.

Connect Slack

An administrator registers an OAuth client once, then members connect their own accounts.

Create a Slack app (open).

Under OAuth & Permissions, add the scopes your agents need.

Register the redirect URI under the app's OAuth redirect URLs: it is APP_URL followed by /api/integrations/callback, also shown in the integration's setup panel.

In Appstrate, open the integration and register the OAuth client (client ID and client secret). See How integrations work.

Use it in an agent

Excerpt of the agent manifest:

{
  "dependencies": {
    "integrations": { "@appstrate/slack": "^1.0.0" }
  },
  "integrations_configuration": {
    "@appstrate/slack": {
      "tools": ["api_call"],
      "scopes": ["channels:history", "chat:write"]
    }
  }
}

api_call has no per-tool scopes, so scopes beyond the defaults are listed explicitly (here channels:history, chat:write).

Example prompt:

Every Friday at 5pm, read the week's messages in #project-alpha, summarize the decisions and open action items, and post the summary to #weekly-recap.

On this page