import{_ as o,o as t,c as a,ag as n}from"./chunks/framework.CAXxHpAX.js";const u=JSON.parse('{"title":"Slack Channel Configuration","description":"","frontmatter":{},"headers":[],"relativePath":"channels/slack.md","filePath":"channels/slack.md","lastUpdated":1776579425000}'),s={name:"channels/slack.md"};function i(l,e,r,c,d,p){return t(),a("div",null,[...e[0]||(e[0]=[n('
Connecting your Memoh Bot to Slack allows it to receive direct messages, participate in channels and threads, read attachments, send files, and use streaming replies.
Memoh's Slack adapter uses Socket Mode, so you need an app-level token in addition to the bot token.
connections:write scope.xapp-.In OAuth & Permissions, add the bot token scopes required by the current Slack adapter:
app_mentions:read - receive bot mentions in channelschannels:history - read messages in public channelsgroups:history - read messages in private channelsim:history - read direct messagesmpim:history - read group direct messageschat:write - send replies and thread messagesfiles:read - read uploaded files and imagesfiles:write - upload outbound filesreactions:write - add and remove reactionsYou should also add these recommended scopes if you want Slack conversation names and metadata to show up more completely in Memoh:
channels:readgroups:readim:readmpim:readIn Event Subscriptions, enable bot events and add:
app_mentionmessage.channelsmessage.groupsmessage.immessage.mpimThese are the inbound event types currently handled by the Slack adapter.
xoxb-.Make sure the xoxb-... bot token and the xapp-... app-level token come from the same Slack app and workspace.
xoxb-... tokenxapp-... tokenAfter the channel is enabled, the Slack app still needs to be present in the conversations where you want it to work.
If the bot can send messages but cannot read uploaded images or files, check that files:read is enabled. If it connects but receives no incoming messages, check the bot events and the matching history scopes again.