Cross-Provider Workflow

Shopify Abandoned Cart to SendGrid Recovery Email

Version 1.0.0

Look up a Shopify customer, then send an abandoned-cart recovery email with SendGrid.

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

Providers Orchestrated

shopify sendgrid

Workflows

recover-abandoned-cart
Fetch a Shopify customer and email them an abandoned-cart reminder.
Looks up a Shopify customer by id to confirm their email, then sends a SendGrid recovery email encouraging them to complete their abandoned checkout.
2 steps inputs: checkoutUrl, customerId outputs: customerEmail, emailStatus
1
get-customer
$sourceDescriptions.shopifyApi.getCustomer
Retrieve the Shopify customer who abandoned their cart.
2
email-recovery
$sourceDescriptions.sendgridApi.SendMail
Send the abandoned-cart recovery email via SendGrid.

Source API Descriptions

Arazzo Workflow Specification

shop-abandoned-cart-email-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Shopify Abandoned Cart to SendGrid Recovery Email
  summary: Look up a Shopify customer, then send an abandoned-cart recovery email with SendGrid.
  description: >-
    A cart-recovery workflow that retrieves a Shopify customer record and emails
    them a personalized reminder through SendGrid to complete a purchase they
    left behind. Demonstrates combining a commerce platform's customer data with
    a transactional email provider to win back abandoned carts.
  version: 1.0.0
sourceDescriptions:
  - name: shopifyApi
    url: https://raw.githubusercontent.com/api-evangelist/shopify/refs/heads/main/openapi/shopify-customers-api-openapi.yml
    type: openapi
  - name: sendgridApi
    url: https://raw.githubusercontent.com/api-evangelist/sendgrid/refs/heads/main/openapi/sendgrid-mail-send-api-openapi.yml
    type: openapi
workflows:
  - workflowId: recover-abandoned-cart
    summary: Fetch a Shopify customer and email them an abandoned-cart reminder.
    description: >-
      Looks up a Shopify customer by id to confirm their email, then sends a
      SendGrid recovery email encouraging them to complete their abandoned
      checkout.
    inputs:
      type: object
      properties:
        customerId:
          type: string
        checkoutUrl:
          type: string
    steps:
      - stepId: get-customer
        description: Retrieve the Shopify customer who abandoned their cart.
        operationId: $sourceDescriptions.shopifyApi.getCustomer
        parameters:
          - name: customer_id
            in: path
            value: $inputs.customerId
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          customerEmail: $response.body#/customer/email
          firstName: $response.body#/customer/first_name
      - stepId: email-recovery
        description: Send the abandoned-cart recovery email via SendGrid.
        operationId: $sourceDescriptions.sendgridApi.SendMail
        requestBody:
          contentType: application/json
          payload:
            personalizations:
              - to:
                  - email: $steps.get-customer.outputs.customerEmail
                subject: You left something in your cart
            from:
              email: store@example.com
            content:
              - type: text/html
                value: Your cart is waiting. Complete your purchase any time.
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          emailStatus: $statusCode
    outputs:
      customerEmail: $steps.get-customer.outputs.customerEmail
      emailStatus: $steps.email-recovery.outputs.emailStatus

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/shop-abandoned-cart-email-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.