Cross-Provider Workflow

Twilio SMS Broadcast to Slack and Teams

Version 1.0.0

Send a customer SMS via Twilio, then mirror it to Slack and Teams.

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

Providers Orchestrated

twilio slack microsoft-teams

Workflows

sms-broadcast-with-mirror
Send a customer SMS, then mirror it to Slack and Teams.
Sends a customer SMS through Twilio and mirrors the same notification to an internal Slack channel and a Microsoft Teams channel.
3 steps inputs: customerNumber, fromNumber, messageBody, slackChannel, slackToken, teamId, teamsChannelId outputs: slackTs, smsSid, teamsMessageId
1
send-customer-sms
$sourceDescriptions.twilioMessagingApi.createMessage
Send the customer-facing SMS through Twilio.
2
mirror-to-slack
$sourceDescriptions.slackChatApi.postChatPostmessage
Mirror the notification to the internal Slack channel.
3
mirror-to-teams
$sourceDescriptions.teamsGraphApi.sendChannelMessage
Mirror the notification to the Microsoft Teams channel.

Source API Descriptions

Arazzo Workflow Specification

msg-twilio-sms-broadcast-slack-and-teams.yml Raw ↑
arazzo: 1.0.1
info:
  title: Twilio SMS Broadcast to Slack and Teams
  summary: Send a customer SMS via Twilio, then mirror it to Slack and Teams.
  description: >-
    A cross-provider workflow that sends a customer-facing SMS through Twilio's
    Messaging API and mirrors the same notification to an internal Slack channel
    through the Slack Chat API and to a Microsoft Teams channel through the Teams
    Graph API. Demonstrates a customer SMS plus dual internal team mirror across
    three providers in a single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: twilioMessagingApi
    url: https://raw.githubusercontent.com/api-evangelist/twilio/refs/heads/main/openapi/twilio-messaging-openapi.yml
    type: openapi
  - name: slackChatApi
    url: https://raw.githubusercontent.com/api-evangelist/slack/refs/heads/main/openapi/slack-chat-openapi.yml
    type: openapi
  - name: teamsGraphApi
    url: https://raw.githubusercontent.com/api-evangelist/microsoft-teams/refs/heads/main/openapi/microsoft-teams-graph-api.yaml
    type: openapi
workflows:
  - workflowId: sms-broadcast-with-mirror
    summary: Send a customer SMS, then mirror it to Slack and Teams.
    description: >-
      Sends a customer SMS through Twilio and mirrors the same notification to an
      internal Slack channel and a Microsoft Teams channel.
    inputs:
      type: object
      properties:
        fromNumber:
          type: string
        customerNumber:
          type: string
        messageBody:
          type: string
        slackToken:
          type: string
        slackChannel:
          type: string
        teamId:
          type: string
        teamsChannelId:
          type: string
    steps:
      - stepId: send-customer-sms
        description: Send the customer-facing SMS through Twilio.
        operationId: $sourceDescriptions.twilioMessagingApi.createMessage
        requestBody:
          contentType: application/x-www-form-urlencoded
          payload:
            From: $inputs.fromNumber
            To: $inputs.customerNumber
            Body: $inputs.messageBody
        successCriteria:
          - condition: $statusCode == 201
        outputs:
          smsSid: $response.body#/sid
      - stepId: mirror-to-slack
        description: Mirror the notification 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.slackChannel
            text: Customer SMS sent - $inputs.messageBody
        successCriteria:
          - condition: $statusCode == 200
          - condition: $response.body#/ok == true
        outputs:
          slackTs: $response.body#/ts
      - stepId: mirror-to-teams
        description: Mirror the notification to the Microsoft Teams channel.
        operationId: $sourceDescriptions.teamsGraphApi.sendChannelMessage
        parameters:
          - name: team-id
            in: path
            value: $inputs.teamId
          - name: channel-id
            in: path
            value: $inputs.teamsChannelId
        requestBody:
          contentType: application/json
          payload:
            body:
              contentType: text
              content: $inputs.messageBody
        successCriteria:
          - condition: $statusCode == 201
        outputs:
          teamsMessageId: $response.body#/id
    outputs:
      smsSid: $steps.send-customer-sms.outputs.smsSid
      slackTs: $steps.mirror-to-slack.outputs.slackTs
      teamsMessageId: $steps.mirror-to-teams.outputs.teamsMessageId