Cross-Provider Workflow

Meta Feed to SendGrid Follow-up

Version 1.0.0

Read a Meta user feed, then send a follow-up email via SendGrid.

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

Providers Orchestrated

meta sendgrid

Workflows

meta-feed-and-email-followup
Read a Meta user feed, then send a follow-up email through SendGrid.
Retrieves the feed of posts for a Meta user and, on success, sends a follow-up email to the user through SendGrid.
2 steps inputs: followupMessage, userEmail, userId outputs: emailStatus, feedData
1
get-feed
$sourceDescriptions.metaApi.getUserFeed
Retrieve the user's feed of posts from Meta.
2
send-followup-email
$sourceDescriptions.sendgridMailApi.SendMail
Send a follow-up email to the user via SendGrid.

Source API Descriptions

Arazzo Workflow Specification

msg-meta-feed-to-sendgrid-followup.yml Raw ↑
arazzo: 1.0.1
info:
  title: Meta Feed to SendGrid Follow-up
  summary: Read a Meta user feed, then send a follow-up email via SendGrid.
  description: >-
    A cross-provider workflow that retrieves a user's feed of posts from the
    Meta Graph API and then sends a personalized follow-up email through
    SendGrid's Mail Send API. Demonstrates combining a social engagement source
    with an email follow-up channel in a single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: metaApi
    url: https://raw.githubusercontent.com/api-evangelist/meta/refs/heads/main/openapi/meta-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: meta-feed-and-email-followup
    summary: Read a Meta user feed, then send a follow-up email through SendGrid.
    description: >-
      Retrieves the feed of posts for a Meta user and, on success, sends a
      follow-up email to the user through SendGrid.
    inputs:
      type: object
      properties:
        userId:
          type: string
        userEmail:
          type: string
        followupMessage:
          type: string
    steps:
      - stepId: get-feed
        description: Retrieve the user's feed of posts from Meta.
        operationId: $sourceDescriptions.metaApi.getUserFeed
        parameters:
          - name: user-id
            in: path
            value: $inputs.userId
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          feedData: $response.body
      - stepId: send-followup-email
        description: Send a follow-up email to the user via SendGrid.
        operationId: $sourceDescriptions.sendgridMailApi.SendMail
        requestBody:
          contentType: application/json
          payload:
            personalizations:
              - to:
                  - email: $inputs.userEmail
                subject: Following up with you
            from:
              email: [email protected]
            content:
              - type: text/plain
                value: $inputs.followupMessage
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          emailStatus: $statusCode
    outputs:
      feedData: $steps.get-feed.outputs.feedData
      emailStatus: $steps.send-followup-email.outputs.emailStatus