Sendbird · Arazzo Workflow

Sendbird Reply to the Latest Message in a Channel

Version 1.0.0

Read the most recent messages in a channel and post a reply.

1 workflow 1 source API 1 provider
View Spec View on GitHub ArazzoWorkflows

Provider

sendbird

Workflows

reply-to-latest-message
Inspect recent channel messages and reply when any exist.
Lists recent messages in a channel and branches: when messages are present it sends a reply, otherwise it ends without posting.
2 steps inputs: apiToken, channelUrl, reply, senderId outputs: repliedToMessageId, replyMessageId
1
listRecent
List the most recent messages in the channel.
2
postReply
Post the reply text into the channel from the sender.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Sendbird Reply to the Latest Message in a Channel
  summary: Read the most recent messages in a channel and post a reply.
  description: >-
    Fetches the most recent messages from a group channel and, when at least one
    message exists, posts a reply from a supplied sender. The flow branches on
    whether the channel has any messages so an empty channel can be handled
    gracefully instead of replying into the void. 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: messagesApi
  url: ../openapi/sendbird-messages-api-openapi.yml
  type: openapi
workflows:
- workflowId: reply-to-latest-message
  summary: Inspect recent channel messages and reply when any exist.
  description: >-
    Lists recent messages in a channel and branches: when messages are present
    it sends a reply, otherwise it ends without posting.
  inputs:
    type: object
    required:
    - apiToken
    - channelUrl
    - senderId
    - reply
    properties:
      apiToken:
        type: string
        description: Sendbird Api-Token from the dashboard.
      channelUrl:
        type: string
        description: URL of the channel to read and reply in.
      senderId:
        type: string
        description: User ID that authors the reply.
      reply:
        type: string
        description: Text content of the reply message.
  steps:
  - stepId: listRecent
    description: List the most recent messages in the channel.
    operationId: listMessages
    parameters:
    - name: Api-Token
      in: header
      value: $inputs.apiToken
    - name: channel_url
      in: path
      value: $inputs.channelUrl
    - name: prev_limit
      in: query
      value: 5
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      latestMessageId: $response.body#/messages/0/message_id
    onSuccess:
    - name: hasMessages
      type: goto
      stepId: postReply
      criteria:
      - context: $response.body
        condition: $.messages.length > 0
        type: jsonpath
    - name: noMessages
      type: end
      criteria:
      - context: $response.body
        condition: $.messages.length == 0
        type: jsonpath
  - stepId: postReply
    description: Post the reply text into the channel from the sender.
    operationId: sendMessage
    parameters:
    - name: Api-Token
      in: header
      value: $inputs.apiToken
    - name: channel_url
      in: path
      value: $inputs.channelUrl
    requestBody:
      contentType: application/json
      payload:
        message_type: MESG
        user_id: $inputs.senderId
        message: $inputs.reply
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      replyMessageId: $response.body#/message_id
  outputs:
    repliedToMessageId: $steps.listRecent.outputs.latestMessageId
    replyMessageId: $steps.postReply.outputs.replyMessageId

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/sendbird-reply-to-latest-message-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.