Trigger Communications

Triggers when someone @-mentions your bot in a Slack channel. Great for building chatbots, support workflows, and interactive automations.

At a Glance

FieldValue
Trigger IDslack-mentions
CategoryCommunications
Tagsslack, messaging, mentions, chatbot, communication, notification

Trigger Configuration

FieldTypeRequiredDescription
channelIdstringYesThe Slack channel ID to monitor for mentions (e.g. C01ABC2DEF3). Find this in the channel details panel.
botTokenstringYesSlack Bot User OAuth Token (xoxb-...). Requires conversations:history and auth:test scopes.

Trigger Result

FieldTypeRequiredDescription
channelIdstringYesThe Slack channel ID where the mention occurred
userIdstringYesThe Slack user ID of the person who mentioned the bot
textstringYesThe full message text containing the mention
timestampstringYesSlack message timestamp (ts) — unique identifier for the message
threadTsstringNoThread timestamp if the mention was in a thread (empty if top-level message)
triggeredAtstringYesTimestamp when the mention was detected (UTC, RFC3339 format)

Workflow Root Example

json
{ "nodes": { "root": { "type": "slack-mentions", "payload": { "channelId": "C01ABC2DEF3", "botToken": "configured-in-b3os" }, "children": [ "log_event" ] }, "log_event": { "type": "log", "payload": { "message": "Triggered at {{$trigger.triggeredAt}}" }, "children": [] } }}

Downstream nodes can use {{$trigger.triggeredAt}} and any result fields listed above. Event triggers usually expose the raw source payload under a field such as event, body, trade, or raw.

Ask a question... ⌘I