Skip to Content
ChannelsSlack (Events API)

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

  1. Go to api.slack.com/apps  and choose Create New App → From a manifest.
  2. 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 msend webhook URL.

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 to group, and public/private channels to channel.
  • Threads: Each Slack thread is its own conversation (thread_key = Slack thread_ts). Replies to channel messages go into a thread by default.
  • addressed_to_agent: In channels, addressed_to_agent is true only for @mentions of the bot, app_mention events, or replies in a thread the bot has posted in. Under the default mentions reply policy, unaddressed channel messages are stored but not sent to your agent.
  • Deduplication & Loop Safety: A @mention produces a single message.received event even though Slack sends both message and app_mention. Messages from the bot itself, other bots, edits, and deletions are ignored.

Sending & Interactivity

  • Outbound text is formatted as Slack mrkdwn.
  • buttons parts render as Block Kit buttons. When a user clicks a button, msend delivers a message.received event with text set to the button title and metadata.button_id set to the button ID.
  • file and image parts use Slack’s external upload flow.
  • reaction parts 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 to error and emits a channel.status event.
Last updated on