<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sam Claassen</title>
    <description>The latest articles on DEV Community by Sam Claassen (@sam_claassen).</description>
    <link>https://dev.to/sam_claassen</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4252595%2F4271e4bc-1042-45a9-9f9c-3418e887a1c2.png</url>
      <title>DEV Community: Sam Claassen</title>
      <link>https://dev.to/sam_claassen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sam_claassen"/>
    <language>en</language>
    <item>
      <title>How to securely connect AI agents to Slack: risks, platforms, and a checklist</title>
      <dc:creator>Sam Claassen</dc:creator>
      <pubDate>Wed, 18 Nov 2026 21:16:34 +0000</pubDate>
      <link>https://dev.to/sam_claassen/how-to-securely-connect-ai-agents-to-slack-risks-platforms-and-a-checklist-16ni</link>
      <guid>https://dev.to/sam_claassen/how-to-securely-connect-ai-agents-to-slack-risks-platforms-and-a-checklist-16ni</guid>
      <description>&lt;p&gt;The most secure way to connect an AI agent to Slack is to give it its own bot identity with the fewest scopes it needs, add it only to the channels where it should work, and keep its Slack token somewhere the agent can't read. Then treat every Slack message as untrusted input, log every tool call, and require a person's approval before the agent does anything beyond replying in the thread. You can build that yourself on Slack's APIs, wire it up in Zapier or n8n, use Slack's own AI and MCP features, or run the agent on a managed agent platform such as Type.com.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why an AI agent needs more care than a normal Slack bot
&lt;/h2&gt;

&lt;p&gt;A classic bot runs fixed code: &lt;code&gt;/deploy staging&lt;/code&gt; does the same thing every time. An agent reads free text, picks its own tools, and can be talked into things.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://genai.owasp.org/llm-top-10/" rel="noopener noreferrer"&gt;OWASP Top 10 for LLM applications&lt;/a&gt; (2025) ranks prompt injection first and excessive agency sixth. In Slack, anyone who can post where the agent reads can put text in front of the model, and the token's scopes decide what an injection can do.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 7 risks to design for
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Token scope
&lt;/h3&gt;

&lt;p&gt;Request only what the job needs. A mention-driven agent can start with &lt;code&gt;app_mentions:read&lt;/code&gt; (messages that mention the app in conversations it's in) and &lt;code&gt;chat:write&lt;/code&gt;. Add &lt;code&gt;channels:history&lt;/code&gt; or &lt;code&gt;groups:history&lt;/code&gt; only if it must read whole channels, and skip &lt;code&gt;chat:write.public&lt;/code&gt;, which lets an app post in channels it isn't a member of.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Who the agent acts as
&lt;/h3&gt;

&lt;p&gt;Per &lt;a href="https://docs.slack.dev/authentication/tokens/" rel="noopener noreferrer"&gt;Slack's token docs&lt;/a&gt;, bot tokens (&lt;code&gt;xoxb-&lt;/code&gt;) belong to the app and keep working if the installing user is deactivated. User tokens (&lt;code&gt;xoxp-&lt;/code&gt;) act with that user's access, and writes appear as that user. Use a bot token for shared agents, and a user token only when the agent works for one person.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Credential storage
&lt;/h3&gt;

&lt;p&gt;Anything an agent can read, an injected prompt can try to send somewhere else. Keep the bot token and signing secret out of prompts, repo files, and any environment the agent's code can read. Put them behind a tool or proxy that makes the Slack call and returns only the result.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Prompt injection from channel content
&lt;/h3&gt;

&lt;p&gt;Every message, file, and thread reply was written by someone else, including other bots and, in Slack Connect channels, people outside your company. Answer &lt;code&gt;app_mention&lt;/code&gt; events instead of every message, drop bot messages before the model runs, and tell the agent to treat message text as data, not instructions. That helps, but it doesn't replace narrow scopes.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Audit trail
&lt;/h3&gt;

&lt;p&gt;Slack shows what the bot posted, not which messages the model read, which tools it called, or why. Log the event ID, every tool call with its input and result, and the final reply.&lt;/p&gt;

&lt;p&gt;Store event IDs and skip repeats, too. Slack &lt;a href="https://docs.slack.dev/apis/events-api/" rel="noopener noreferrer"&gt;retries up to 3 times&lt;/a&gt; when it doesn't get a 2xx within 3 seconds, so a slow handler can start the same run more than once.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Approvals for write actions
&lt;/h3&gt;

&lt;p&gt;Replying in the thread is low risk. Posting in other channels, sending DMs, or writing to your CRM is not. Have the agent post a proposal and wait for approval from someone who's allowed to give it. Slack's &lt;a href="https://docs.slack.dev/apis/web-api/real-time-search-api/" rel="noopener noreferrer"&gt;Real-time Search API guide&lt;/a&gt; gives the same advice: let users confirm before an app messages channels or people it found.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Per-channel and per-team access
&lt;/h3&gt;

&lt;p&gt;A bot only gets events from conversations it belongs to, so channel membership is your first boundary. Keep each team's agent and credentials separate: the agent in #sales shouldn't hold finance's keys. Turn on Slack &lt;a href="https://slack.com/help/articles/222386767-Manage-app-approval-for-your-workspace" rel="noopener noreferrer"&gt;app approval&lt;/a&gt; so nobody installs an agent with broad scopes unreviewed.&lt;/p&gt;

&lt;h2&gt;
  
  
  5 ways to connect an AI agent to Slack
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Build it yourself: Slack app + Claude or OpenAI API
&lt;/h3&gt;

&lt;p&gt;You write a Slack app with Bolt, call a model API, and build your own tool layer. You control and own everything: signature checks, acknowledging within 3 seconds and running the agent from a queue, de-duplicating retries, token storage, logging, and approvals.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://docs.slack.dev/authentication/verifying-requests-from-slack/" rel="noopener noreferrer"&gt;signature check&lt;/a&gt; is short. Reject timestamps more than five minutes old to block replays:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;createHmac&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timingSafeEqual&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"node:crypto"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// timestamp: X-Slack-Request-Timestamp header; signature: X-Slack-Signature header&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;isFromSlack&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rawBody&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timestamp&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;signature&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;signingSecret&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;ts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timestamp&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isFinite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="s2"&gt;"v0="&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nf"&gt;createHmac&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"sha256"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;signingSecret&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`v0:${timestamp}:${rawBody}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"hex"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;signature&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nf"&gt;timingSafeEqual&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Workflow tools: Zapier, n8n, Make
&lt;/h3&gt;

&lt;p&gt;You chain a Slack trigger, an LLM step, and an action in minutes. Check whose Slack account the connection uses (a user connection posts as that person), who else can reuse it, and whether there's a human step before writes. n8n can be self-hosted if Slack data has to stay on your servers.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Slack's own AI and agent platform
&lt;/h3&gt;

&lt;p&gt;Slack offers Slackbot, Agentforce, and Marketplace agents from partners such as Anthropic and OpenAI. For agents you build, Slack's &lt;a href="https://docs.slack.dev/ai/mcp-server" rel="noopener noreferrer"&gt;MCP server&lt;/a&gt; and Real-time Search (RTS) API search on behalf of the signed-in user and return only what that user can see, and Slack's RTS guide says apps must not store or copy results or train on them. Both are limited to Marketplace-published and internal apps, admins approve MCP clients, and MCP activity appears in Slack's audit logs.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Agent integration infrastructure: Paragon, Composio
&lt;/h3&gt;

&lt;p&gt;These give you managed OAuth, token refresh, and ready-made Slack tools for an agent you build and host. A good fit if you're shipping an AI product that connects to customers' Slack workspaces. You still own the agent: its runtime, instructions, and approvals.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Managed agent platforms: Type.com and others
&lt;/h3&gt;

&lt;p&gt;The vendor runs the agent and stores the credentials, and you configure channels, connections, and approvals instead of building infrastructure. Credal and Relevance AI are also in this category. Ask any vendor to show you, in the product, where access is scoped, whose credentials the agent uses, and where a person approves a write.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the options compare
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;Setup&lt;/th&gt;
&lt;th&gt;Where the Slack token lives&lt;/th&gt;
&lt;th&gt;Built-in guardrails&lt;/th&gt;
&lt;th&gt;Best fit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;DIY app + LLM API&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;Your secret store&lt;/td&gt;
&lt;td&gt;Whatever you build&lt;/td&gt;
&lt;td&gt;One narrow use case&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Zapier, n8n, Make&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;The tool's credential store (your server if you self-host n8n)&lt;/td&gt;
&lt;td&gt;Filters and human steps you add&lt;/td&gt;
&lt;td&gt;Simple trigger, prompt, action flows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Slack native&lt;/td&gt;
&lt;td&gt;Low to medium&lt;/td&gt;
&lt;td&gt;Slack; MCP and RTS clients outside Slack hold a user token&lt;/td&gt;
&lt;td&gt;App approval, admin-approved MCP clients, user-level permissions&lt;/td&gt;
&lt;td&gt;Search and answers from Slack content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Paragon, Composio&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;The vendor's managed auth&lt;/td&gt;
&lt;td&gt;Managed OAuth and token refresh&lt;/td&gt;
&lt;td&gt;AI products that connect to customers' Slack&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Type.com&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Type.com's servers; the agent sees results, not tokens&lt;/td&gt;
&lt;td&gt;Per-Space connections, Read-only access, approvals in the Slack thread, tool-call history&lt;/td&gt;
&lt;td&gt;Shared team agents in Slack without running bot infrastructure&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How Type.com handles each risk
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://type.com" rel="noopener noreferrer"&gt;Type.com&lt;/a&gt; runs Claude Code and Codex agents on managed cloud machines, each in its own sandboxed VM, and your team talks to them from Slack. Each risk above maps to a &lt;a href="https://docs.type.com/automations/slack/" rel="noopener noreferrer"&gt;documented control&lt;/a&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Risk&lt;/th&gt;
&lt;th&gt;What Type.com does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Channel access&lt;/td&gt;
&lt;td&gt;Slack sends events only from channels you've invited the app to. Each connected channel maps to a Space and answers @mentions by default, or new posts or every message if you choose.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Identity&lt;/td&gt;
&lt;td&gt;AI acts with the &lt;a href="https://docs.type.com/spaces/permissions-and-access/" rel="noopener noreferrer"&gt;effective access&lt;/a&gt; of the person and conversation that started the work. Scheduled runs act as the automation's creator.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Credentials&lt;/td&gt;
&lt;td&gt;OAuth grants and encrypted API keys &lt;a href="https://type.com/blog/ai-agent-credentials" rel="noopener noreferrer"&gt;stay on Type.com's servers&lt;/a&gt;. Connections make the call outside the agent, and automation code gets a short-lived scoped token, never a provider credential.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Other tools&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://docs.type.com/connectors-and-skills/space-connections/" rel="noopener noreferrer"&gt;Personal or team connections&lt;/a&gt;, assigned to specific Spaces. A new team connection is limited to its owner and admins until shared, and each grant is Full or Read-only.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prompt injection&lt;/td&gt;
&lt;td&gt;In Slack-triggered automations, the agent is told to treat the Slack event as data, not instructions. Code automations can filter events on the server before your code runs, for example dropping bot messages.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Duplicates&lt;/td&gt;
&lt;td&gt;In code automations, a Slack retry with the same event ID runs only once per subscription.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Audit trail&lt;/td&gt;
&lt;td&gt;Every thread shows the agent's &lt;a href="https://docs.type.com/collaboration/tool-calls-files-previews/" rel="noopener noreferrer"&gt;tool calls&lt;/a&gt;, with the connection, input, success, and result. Run history records each run's output, stages, and errors.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Approvals&lt;/td&gt;
&lt;td&gt;Automations can pause on a question in the triggering Slack thread, and only people with a linked Type.com account and access to the task thread can answer. In a connected channel, a 🛑 reaction stops a response in progress.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Read-only is enforced by Type.com, so for data that must never change, also connect an account that's read-only in the source app. You can test an automation in a private thread only you can see before it touches a busy channel. &lt;a href="https://type.com/pricing" rel="noopener noreferrer"&gt;Plans&lt;/a&gt; start at $50 a month for 2 team members and $100 of AI usage, with a 14-day free trial.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Bot token for shared agents; user tokens only for one person's own work&lt;/li&gt;
&lt;li&gt;Fewest scopes (&lt;code&gt;app_mentions:read&lt;/code&gt; and &lt;code&gt;chat:write&lt;/code&gt; to start)&lt;/li&gt;
&lt;li&gt;App added only to the channels it serves, with Slack app approval on&lt;/li&gt;
&lt;li&gt;Token and signing secret stored where the agent can't read them&lt;/li&gt;
&lt;li&gt;Signature verified on every request; timestamps over 5 minutes old rejected&lt;/li&gt;
&lt;li&gt;2xx within 3 seconds, agent run in the background, event IDs de-duplicated&lt;/li&gt;
&lt;li&gt;Mentions only, bot messages dropped, message text treated as data&lt;/li&gt;
&lt;li&gt;Human approval for posts outside the thread, DMs, and writes to other systems&lt;/li&gt;
&lt;li&gt;Every run logged, with a way to stop it and revoke the token fast&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What's the biggest security risk when you connect an AI agent to Slack?
&lt;/h3&gt;

&lt;p&gt;Broad access plus untrusted input. If the agent can read many channels and post anywhere, one injected message can make it leak data or post where it shouldn't. Narrow scopes, limited channel membership, and approvals for writes cap the damage.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should a Slack AI agent use a bot token or a user token?
&lt;/h3&gt;

&lt;p&gt;A bot token for anything shared: it belongs to the app and keeps working after the installer leaves. A user token acts with that person's access and posts as them, so use it only when the agent works for that one person.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I get an AI agent to do a task when someone tags it in Slack?
&lt;/h3&gt;

&lt;p&gt;Subscribe to &lt;code&gt;app_mention&lt;/code&gt; events, verify the signature, return a 2xx within 3 seconds, run the agent in the background, and reply in the thread. In Type.com, connect Slack, add the connection to a Space, and invite the app to the channel. Then connect the channel to the Space to answer @mentions, or create a Slack-triggered automation whose instructions say to reply in the thread.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can an AI agent read private Slack channels?
&lt;/h3&gt;

&lt;p&gt;With a bot token, only private channels it's been added to, and only with the &lt;code&gt;groups:history&lt;/code&gt; scope. With a user token, it can read whatever that user can, another reason to use bot tokens for shared agents.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>slack</category>
      <category>security</category>
      <category>agents</category>
    </item>
  </channel>
</rss>
