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
| Field | Description | Notes |
|---|---|---|
| Connection | Slack connection to use | Required |
| Channel | Channel name or ID | Required. Supports templates |
| Limit | Maximum number of messages | Default: 100, max: 1000 |
| Oldest | Only messages after this Unix timestamp | Optional. Supports templates |
| Latest | Only messages before this Unix timestamp | Optional. Supports templates |
Output
Returns an array of Slack message objects. Each message includes:
| Field | Description |
|---|---|
type | Always message |
text | Message text content |
user | User ID who sent the message |
ts | Message timestamp (unique ID) |
thread_ts | Thread 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.