Cross-Provider Workflow

WhatsApp Message to Slack Log

Version 1.0.0

Send a WhatsApp message, then log the outcome to a Slack channel.

1 workflow 2 source APIs 2 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

whatsapp slack

Workflows

whatsapp-send-and-slack-log
Send a WhatsApp message, then log it to a Slack channel.
Sends a text message to a customer via the WhatsApp Cloud API and, on a successful send, posts a log entry referencing the WhatsApp message id to an internal Slack channel.
2 steps inputs: customerNumber, logChannel, messageText, phoneNumberId, slackToken outputs: logTs, waMessageId
1
send-whatsapp
$sourceDescriptions.whatsappCloudApi.sendMessage
Send the text message to the customer via WhatsApp.
2
log-to-slack
$sourceDescriptions.slackChatApi.postChatPostmessage
Post a delivery log entry to the internal Slack channel.

Source API Descriptions

Arazzo Workflow Specification

msg-whatsapp-message-to-slack-log.yml Raw ↑
arazzo: 1.0.1
info:
  title: WhatsApp Message to Slack Log
  summary: Send a WhatsApp message, then log the outcome to a Slack channel.
  description: >-
    A cross-provider workflow that sends a customer message through the WhatsApp
    Cloud API and then logs the delivery outcome to an internal Slack channel
    using the Slack Chat API. Demonstrates pairing a customer-facing messaging
    channel with an internal audit log in a single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: whatsappCloudApi
    url: https://raw.githubusercontent.com/api-evangelist/whatsapp/refs/heads/main/openapi/whatsapp-cloud-api-openapi.yml
    type: openapi
  - name: slackChatApi
    url: https://raw.githubusercontent.com/api-evangelist/slack/refs/heads/main/openapi/slack-chat-openapi.yml
    type: openapi
workflows:
  - workflowId: whatsapp-send-and-slack-log
    summary: Send a WhatsApp message, then log it to a Slack channel.
    description: >-
      Sends a text message to a customer via the WhatsApp Cloud API and, on a
      successful send, posts a log entry referencing the WhatsApp message id to
      an internal Slack channel.
    inputs:
      type: object
      properties:
        phoneNumberId:
          type: string
        customerNumber:
          type: string
        messageText:
          type: string
        slackToken:
          type: string
        logChannel:
          type: string
    steps:
      - stepId: send-whatsapp
        description: Send the text message to the customer via WhatsApp.
        operationId: $sourceDescriptions.whatsappCloudApi.sendMessage
        parameters:
          - name: phone-number-id
            in: path
            value: $inputs.phoneNumberId
        requestBody:
          contentType: application/json
          payload:
            messaging_product: whatsapp
            to: $inputs.customerNumber
            type: text
            text:
              body: $inputs.messageText
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          waMessageId: $response.body#/messages/0/id
      - stepId: log-to-slack
        description: Post a delivery log entry to the internal Slack channel.
        operationId: $sourceDescriptions.slackChatApi.postChatPostmessage
        parameters:
          - name: token
            in: header
            value: $inputs.slackToken
        requestBody:
          contentType: application/x-www-form-urlencoded
          payload:
            channel: $inputs.logChannel
            text: WhatsApp message sent with id $steps.send-whatsapp.outputs.waMessageId
        successCriteria:
          - condition: $statusCode == 200
          - condition: $response.body#/ok == true
        outputs:
          logTs: $response.body#/ts
    outputs:
      waMessageId: $steps.send-whatsapp.outputs.waMessageId
      logTs: $steps.log-to-slack.outputs.logTs