Skip to content

Slack Get Messages

Retrieve messages from a Slack channel. In streaming mode, emits each message as a separate item.

Requires a Slack connection with channels:history (public) or groups:history (private) scope.

Configuration

FieldDescriptionNotes
ConnectionSlack connection to useRequired
ChannelChannel name or IDRequired. Supports templates
LimitMaximum number of messagesDefault: 100, max: 1000
OldestOnly messages after this Unix timestampOptional. Supports templates
LatestOnly messages before this Unix timestampOptional. Supports templates

Output

Returns an array of Slack message objects. Each message includes:

FieldDescription
typeAlways message
textMessage text content
userUser ID who sent the message
tsMessage timestamp (unique ID)
thread_tsThread parent timestamp (if in a thread)

Time Range Example

To get messages from the last 24 hours, use a Transform node to calculate the Unix timestamp and pass it via template:

Set Oldest to {{timestamp}} where timestamp is computed upstream.

TIP

Messages are returned in reverse chronological order (newest first). Use the Oldest and Latest fields to narrow the time range for large channels.