Actions44
- Channel Actions
- File Actions
- Message Actions
- Reaction Actions
- Star Actions
- User Actions
- User Group Actions
Message → Search
AI-generatedSummary
Search messages in Slack based on a text query, with options to filter by channels, sort results, and limit the number of returned messages.
Inputs
- Search Query (required) — The text to search for within messages.
- Sort By — How to sort the search results: Newest (desc), Oldest (asc), or by Relevance Score (relevance). Defaults to Newest.
- Return All — Whether to return all matching results or limit the number returned.
- Limit — Maximum number of results to return when Return All is false (1 to 50). Defaults to 50.
- Search in Channel — Optionally restrict the search to specific Slack channels by selecting from a list or specifying channel IDs using expressions.
Output shape
a list of message objects matching the search criteria
If Return All is true, all matching messages are returned; otherwise, up to Limit messages are returned. The messages are sorted as specified by the Sort By input.
Examples
Example 1: Search for messages containing 'project update' in all channels, sorted by relevance, returning up to 20 results.
Set Search Query to 'project update', Sort By to 'Relevance Score', Return All to false, and Limit to 20.
Example 2: Search for messages containing 'urgent' in specific channels, sorted by newest first, returning all results.
Set Search Query to 'urgent', select desired channels in Search in Channel, Sort By to 'Newest', and set Return All to true.