Slack Channel (Events API)
Each workspace connects its own Slack app using Slack’s Events API (HTTP) and a Bot Token. There is no persistent Socket Mode process and no msend-owned Slack app.
Socket Mode, Enterprise Grid, and org-wide Slack apps are not supported in v1.
Setup
Create the Channel in msend
On your agent’s page, choose Add a slack channel, enter a name and placeholder values, then open the channel page. It provides:
- Your channel’s Webhook URL (
/webhooks/slack/<token>) - A downloadable/copyable Slack app manifest
Create the App in Slack
- Go to api.slack.com/apps and choose Create New App → From a manifest.
- Paste the manifest from
msend. It configures:- Scopes:
chat:write,app_mentions:read,channels:history,groups:history,im:history,mpim:history,mpim:read,users:read,files:read,files:write,reactions:write - Bot Events:
message.channels,message.groups,message.im,message.mpim,app_mention - Events & Interactivity Request URLs: pointed at your
msendwebhook URL.
- Scopes:
Connect Credentials
Install the app to your workspace, then copy:
- Bot User OAuth Token (
xoxb-...) from OAuth & Permissions - Signing Secret from Basic Information
Paste both into the channel settings in msend and click Save and connect before verifying the Events Request URL in Slack (Slack sends a url_verification challenge).
Invite the Bot
Invite your app to any channel with /invite @your-app or send it a direct message.
Conversation Mapping & Mentions
- Conversation kinds: DMs map to
direct, group DMs togroup, and public/private channels tochannel. - Threads: Each Slack thread is its own conversation (
thread_key= Slackthread_ts). Replies to channel messages go into a thread by default. addressed_to_agent: In channels,addressed_to_agentistrueonly for@mentionsof the bot,app_mentionevents, or replies in a thread the bot has posted in. Under the defaultmentionsreply policy, unaddressed channel messages are stored but not sent to your agent.- Deduplication & Loop Safety: A
@mentionproduces a singlemessage.receivedevent even though Slack sends bothmessageandapp_mention. Messages from the bot itself, other bots, edits, and deletions are ignored.
Sending & Interactivity
- Outbound
textis formatted as Slackmrkdwn. buttonsparts render as Block Kit buttons. When a user clicks a button,msenddelivers amessage.receivedevent withtextset to the button title andmetadata.button_idset to the button ID.fileandimageparts use Slack’s external upload flow.reactionparts add an emoji reaction (e.g.,:thumbsup:or👍).- All inbound requests are verified via
X-Slack-Signature(rejecting requests older than 5 minutes). A revoked token sets the channel status toerrorand emits achannel.statusevent.
Last updated on