Slack · Arazzo Workflow

Slack Search Messages and React to the Top Match

Version 1.0.0

Search messages for a query and add a reaction to the best match.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub BotsChatCollaborationMessagingProductivityT1Team CommunicationArazzoWorkflows

Provider

slack

Workflows

search-message-react
Search messages and react to the top matching message.
Searches messages for a query and adds a reaction emoji to the top matching message using its channel ID and timestamp.
2 steps inputs: query, reaction outputs: matchChannelId, matchTs, reacted
1
searchMessages
getSearchMessages
Search messages for the supplied query and capture the channel and timestamp of the top matching message.
2
reactToMatch
postReactionsAdd
Add the supplied reaction emoji to the top matching message to flag it.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Slack Search Messages and React to the Top Match
  summary: Search messages for a query and add a reaction to the best match.
  description: >-
    A triage pattern that finds a relevant message and acknowledges it. The
    workflow searches messages for a query, takes the channel and timestamp of
    the top match, and adds a reaction emoji to that message to flag it. Every
    step spells out its request inline so the flow can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: searchApi
  url: ../openapi/_original/slack-search-openapi.yml
  type: openapi
- name: reactionsApi
  url: ../openapi/_original/slack-reactions-openapi.yml
  type: openapi
workflows:
- workflowId: search-message-react
  summary: Search messages and react to the top matching message.
  description: >-
    Searches messages for a query and adds a reaction emoji to the top matching
    message using its channel ID and timestamp.
  inputs:
    type: object
    required:
    - query
    - reaction
    properties:
      query:
        type: string
        description: The search query to match messages against.
      reaction:
        type: string
        description: The reaction (emoji) name to add to the top match, without colons.
  steps:
  - stepId: searchMessages
    description: >-
      Search messages for the supplied query and capture the channel and
      timestamp of the top matching message.
    operationId: getSearchMessages
    parameters:
    - name: query
      in: query
      value: $inputs.query
    - name: count
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.ok == true
      type: jsonpath
    - context: $response.body
      condition: $.messages.matches.length > 0
      type: jsonpath
    outputs:
      matchChannelId: $response.body#/messages/matches/0/channel/id
      matchTs: $response.body#/messages/matches/0/ts
  - stepId: reactToMatch
    description: >-
      Add the supplied reaction emoji to the top matching message to flag it.
    operationId: postReactionsAdd
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        channel: $steps.searchMessages.outputs.matchChannelId
        name: $inputs.reaction
        timestamp: $steps.searchMessages.outputs.matchTs
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.ok == true
      type: jsonpath
    outputs:
      reacted: $response.body#/ok
  outputs:
    matchChannelId: $steps.searchMessages.outputs.matchChannelId
    matchTs: $steps.searchMessages.outputs.matchTs
    reacted: $steps.reactToMatch.outputs.reacted

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/slack-search-message-react-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.