Fetch Slack Channel History
The Fetch Slack Channel History block retrieves recent messages from a specified Slack channel and makes them available as structured data within your workflow.
Fetch recent message history from a Slack channel
The Fetch Slack Channel History block retrieves recent messages from a specified Slack channel and makes them available as structured data within your workflow. You can target a specific channel by providing its channel ID, or leave that field empty to let the user select a channel at runtime. The block also accepts an optional date range via start and end date parameters, and a limit setting that controls how many messages are returned, up to a maximum of 15.
What you can build
Real-world workflows powered by the Fetch Slack Channel History block.
Daily Standup Summarization
Pull the last several messages from a team standup channel and pass them to an AI summarization step to generate a concise daily digest.
Support Ticket Triage
Fetch recent messages from a customer support Slack channel and route them through a classification workflow to prioritize incoming requests.
Incident Timeline Reconstruction
Retrieve messages within a specific date range from an incident response channel to reconstruct a timeline of events for a post-mortem report.
Bot Message Data Extraction
Use the raw message output option to capture complex attachment data from bot-posted messages and extract structured fields for downstream processing.
Image Collection from Channels
Enable image inclusion to gather images shared in a Slack channel and feed them into a vision AI block for analysis or cataloging.
Team Activity Monitoring
Periodically fetch messages from a project channel and store them in a database block to track communication volume and activity over time.
Ready to add Fetch Slack Channel History to your workflow?
Get Started FreeCommon questions about Fetch Slack Channel History
What parameters are required to use this block?
The block requires a Slack connection (via connectionId) and a channel target (via channelId). Both can be left empty to allow the user to select them at runtime. All other parameters — limit, startDate, endDate, includeImages, includeRawMessage, and destinationVar — are optional.
What does the block return?
The block returns a JSON object containing a messages array. Each message in the array is a SlackMessage object with fields for from (sender), content (message text), and optionally timestamp, images (an array of strings), and rawMessage (the unprocessed message payload).
How many messages can the block retrieve at once?
The limit parameter controls how many messages are returned, and it accepts values between 1 and 15.
When would I use the includeRawMessage option?
The includeRawMessage option is useful when working with bot messages that store data inside complex attachments. Enabling it adds the full raw message payload to each SlackMessage object, giving you access to fields that may not appear in the standard content field.
What kinds of workflows commonly use this block?
This block fits into workflows that process or analyze Slack communication, such as summarization pipelines, support triage systems, incident reporting tools, and activity monitoring dashboards. It is typically followed by AI processing blocks, database write blocks, or notification blocks.
Related capabilities
Post to Slack Channel
Send a message to a Slack channel via a connected bot.
Send Email
Send an email to one or more configured recipient addresses.
Send SMS
Send an SMS or MMS message to a phone number configured via OAuth connection.
Send Discord Follow-Up
Send a follow-up message to a Discord slash command interaction.
Send Discord Message
Send a message to Discord — either edit the loading message or send a new channel message.
Edit Discord Message
Edit a previously sent Discord channel message. Use with the message ID returned by Send Discord Message.
Add Fetch Slack Channel History to your workflow
Build powerful AI workflows with drag-and-drop blocks. No coding required.