Trigger Communications

Triggers when a new direct message is received. Useful for building chatbots, auto-responders, or processing DM-based commands.

At a Glance

FieldValue
Trigger IDslack-new-direct-message
CategoryCommunications
Tagsslack, communication, dm, direct-message, chat

Trigger Configuration

FieldTypeRequiredDescription
ignoreBotbooleanNoIf true, bot messages will be ignored and won't trigger the workflow.

Trigger Result

FieldTypeRequiredDescription
triggeredAtstringYesTimestamp when the event was received (UTC, RFC3339 format)
eventTypestringNoSlack event type (e.g. message)
channelstringNoDM channel ID
userstringNoUser ID who sent the message
textstringNoMessage text content
tsstringNoMessage timestamp
channel_typestringNoChannel type (im for direct messages)

Workflow Root Example

json
{ "nodes": { "root": { "type": "slack-new-direct-message", "payload": { "ignoreBot": true }, "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