Cross-Provider Workflow

Slack Scheduled Message to SendGrid Confirm

Version 1.0.0

Schedule a future Slack message, then email a confirmation via SendGrid.

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

Providers Orchestrated

slack sendgrid

Workflows

schedule-slack-and-confirm
Schedule a future Slack message, then email a confirmation.
Schedules a message to a Slack channel for a future time and, on success, emails a confirmation of the scheduled post to the requester via SendGrid.
2 steps inputs: channel, messageText, postAt, requesterEmail, slackToken outputs: emailStatus, scheduledMessageId
1
schedule-message
$sourceDescriptions.slackChatApi.postChatSchedulemessage
Schedule the message to the Slack channel for a future time.
2
confirm-email
$sourceDescriptions.sendgridMailApi.SendMail
Email a confirmation of the scheduled post via SendGrid.

Source API Descriptions

Arazzo Workflow Specification

msg-slack-schedule-message-to-sendgrid-confirm.yml Raw ↑
arazzo: 1.0.1
info:
  title: Slack Scheduled Message to SendGrid Confirm
  summary: Schedule a future Slack message, then email a confirmation via SendGrid.
  description: >-
    A cross-provider workflow that schedules a message to be posted to a Slack
    channel at a future time through the Slack Chat API and then emails a
    confirmation of the scheduled post to the requester through SendGrid's Mail
    Send API. Demonstrates coordinating a scheduled chat post with an email
    confirmation across two providers in a single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: slackChatApi
    url: https://raw.githubusercontent.com/api-evangelist/slack/refs/heads/main/openapi/slack-chat-openapi.yml
    type: openapi
  - name: sendgridMailApi
    url: https://raw.githubusercontent.com/api-evangelist/sendgrid/refs/heads/main/openapi/tsg_mail_v3.yaml
    type: openapi
workflows:
  - workflowId: schedule-slack-and-confirm
    summary: Schedule a future Slack message, then email a confirmation.
    description: >-
      Schedules a message to a Slack channel for a future time and, on success,
      emails a confirmation of the scheduled post to the requester via SendGrid.
    inputs:
      type: object
      properties:
        slackToken:
          type: string
        channel:
          type: string
        messageText:
          type: string
        postAt:
          type: string
        requesterEmail:
          type: string
    steps:
      - stepId: schedule-message
        description: Schedule the message to the Slack channel for a future time.
        operationId: $sourceDescriptions.slackChatApi.postChatSchedulemessage
        parameters:
          - name: token
            in: header
            value: $inputs.slackToken
        requestBody:
          contentType: application/x-www-form-urlencoded
          payload:
            channel: $inputs.channel
            text: $inputs.messageText
            post_at: $inputs.postAt
        successCriteria:
          - condition: $statusCode == 200
          - condition: $response.body#/ok == true
        outputs:
          scheduledMessageId: $response.body#/scheduled_message_id
          scheduledPostAt: $response.body#/post_at
      - stepId: confirm-email
        description: Email a confirmation of the scheduled post via SendGrid.
        operationId: $sourceDescriptions.sendgridMailApi.SendMail
        requestBody:
          contentType: application/json
          payload:
            personalizations:
              - to:
                  - email: $inputs.requesterEmail
                subject: Slack message scheduled
            from:
              email: [email protected]
            content:
              - type: text/plain
                value: Your Slack message $steps.schedule-message.outputs.scheduledMessageId is scheduled.
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          emailStatus: $statusCode
    outputs:
      scheduledMessageId: $steps.schedule-message.outputs.scheduledMessageId
      emailStatus: $steps.confirm-email.outputs.emailStatus