Cross-Provider Workflow

YouTube Live Broadcast Announce in Slack and SendGrid

Version 1.0.0

Schedule a YouTube live broadcast, announce it in Slack, then email subscribers via SendGrid.

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

Providers Orchestrated

youtube slack sendgrid

Workflows

live-broadcast-announce
Schedule a YouTube live broadcast, announce in Slack, email via SendGrid.
Inserts a scheduled YouTube live broadcast, captures its id, posts a Slack announcement, then emails subscribers a save-the-date via SendGrid.
3 steps inputs: scheduledStartTime, slackChannel, subscriberEmail, title outputs: broadcastId, emailStatus, messageTs
1
schedule-broadcast
$sourceDescriptions.youtubeLiveApi.youtube.liveBroadcasts.insert
Schedule a new YouTube live broadcast.
2
announce-slack
$sourceDescriptions.slackChatApi.postChatPostmessage
Announce the scheduled broadcast in Slack.
3
email-subscribers
$sourceDescriptions.sendgridApi.SendMail
Email subscribers a save-the-date via SendGrid.

Source API Descriptions

Arazzo Workflow Specification

soc-youtube-live-broadcast-announce-slack-sendgrid-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: YouTube Live Broadcast Announce in Slack and SendGrid
  summary: Schedule a YouTube live broadcast, announce it in Slack, then email subscribers via SendGrid.
  description: >-
    A live-event workflow that schedules a YouTube live broadcast via the Live
    Streaming API, announces the broadcast in a Slack channel, and emails
    subscribers a save-the-date through SendGrid Mail Send. Demonstrates fanning
    out a single content event to a team channel and an email audience in one
    Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: youtubeLiveApi
    url: https://raw.githubusercontent.com/api-evangelist/youtube/refs/heads/main/openapi/youtube-live-streaming-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: sendgridApi
    url: https://raw.githubusercontent.com/api-evangelist/sendgrid/refs/heads/main/openapi/tsg_mail_v3.yaml
    type: openapi
workflows:
  - workflowId: live-broadcast-announce
    summary: Schedule a YouTube live broadcast, announce in Slack, email via SendGrid.
    description: >-
      Inserts a scheduled YouTube live broadcast, captures its id, posts a Slack
      announcement, then emails subscribers a save-the-date via SendGrid.
    inputs:
      type: object
      properties:
        title:
          type: string
        scheduledStartTime:
          type: string
        slackChannel:
          type: string
        subscriberEmail:
          type: string
    steps:
      - stepId: schedule-broadcast
        description: Schedule a new YouTube live broadcast.
        operationId: $sourceDescriptions.youtubeLiveApi.youtube.liveBroadcasts.insert
        requestBody:
          contentType: application/json
          payload:
            snippet:
              title: $inputs.title
              scheduledStartTime: $inputs.scheduledStartTime
            status:
              privacyStatus: public
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          broadcastId: $response.body#/id
      - stepId: announce-slack
        description: Announce the scheduled broadcast in Slack.
        operationId: $sourceDescriptions.slackChatApi.postChatPostmessage
        requestBody:
          contentType: application/x-www-form-urlencoded
          payload:
            channel: $inputs.slackChannel
            text: Live broadcast scheduled https://youtu.be/$steps.schedule-broadcast.outputs.broadcastId
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          messageTs: $response.body#/ts
      - stepId: email-subscribers
        description: Email subscribers a save-the-date via SendGrid.
        operationId: $sourceDescriptions.sendgridApi.SendMail
        requestBody:
          contentType: application/json
          payload:
            personalizations:
              - to:
                  - email: $inputs.subscriberEmail
                subject: We are going live
            from:
              email: [email protected]
            content:
              - type: text/plain
                value: Join us for $inputs.title at $inputs.scheduledStartTime
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          emailStatus: $statusCode
    outputs:
      broadcastId: $steps.schedule-broadcast.outputs.broadcastId
      messageTs: $steps.announce-slack.outputs.messageTs
      emailStatus: $steps.email-subscribers.outputs.emailStatus