Cross-Provider Workflow

Salesforce Lead to SendGrid Welcome Email

Version 1.0.0

Create a Salesforce lead, then send a welcome email through SendGrid.

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

Providers Orchestrated

salesforce sendgrid

Workflows

salesforce-lead-to-welcome-email
Create a Salesforce lead, then send a SendGrid welcome email.
Inserts a new Lead record into Salesforce, captures the returned record id, and sends a welcome email to the lead's email address through SendGrid.
2 steps inputs: company, email, firstName, fromEmail, lastName outputs: emailStatus, leadId
1
create-lead
$sourceDescriptions.salesforceRestApi.createRecord
Insert a new Lead record into Salesforce.
2
send-welcome
$sourceDescriptions.sendgridMailApi.SendMail
Send a welcome email to the new lead via SendGrid.

Source API Descriptions

Arazzo Workflow Specification

crm-salesforce-lead-to-sendgrid-welcome-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Salesforce Lead to SendGrid Welcome Email
  summary: Create a Salesforce lead, then send a welcome email through SendGrid.
  description: >-
    A cross-provider workflow that captures a new lead in Salesforce via the
    REST API createRecord operation and immediately sends a personalized welcome
    email to that lead through SendGrid's Mail Send API. Demonstrates handing a
    freshly captured CRM lead off to an email service provider for first-touch
    nurture.
  version: 1.0.0
sourceDescriptions:
  - name: salesforceRestApi
    url: https://raw.githubusercontent.com/api-evangelist/salesforce/refs/heads/main/openapi/salesforce-rest-api-openapi.yml
    type: openapi
  - name: sendgridMailApi
    url: https://raw.githubusercontent.com/api-evangelist/sendgrid/refs/heads/main/openapi/sendgrid-mail-send-api-openapi.yml
    type: openapi
workflows:
  - workflowId: salesforce-lead-to-welcome-email
    summary: Create a Salesforce lead, then send a SendGrid welcome email.
    description: >-
      Inserts a new Lead record into Salesforce, captures the returned record
      id, and sends a welcome email to the lead's email address through
      SendGrid.
    inputs:
      type: object
      properties:
        firstName:
          type: string
        lastName:
          type: string
        company:
          type: string
        email:
          type: string
        fromEmail:
          type: string
    steps:
      - stepId: create-lead
        description: Insert a new Lead record into Salesforce.
        operationId: $sourceDescriptions.salesforceRestApi.createRecord
        parameters:
          - name: sobjectType
            in: path
            value: Lead
        requestBody:
          contentType: application/json
          payload:
            FirstName: $inputs.firstName
            LastName: $inputs.lastName
            Company: $inputs.company
            Email: $inputs.email
        successCriteria:
          - condition: $statusCode == 201
          - condition: $response.body#/success == true
        outputs:
          leadId: $response.body#/id
      - stepId: send-welcome
        description: Send a welcome email to the new lead via SendGrid.
        operationId: $sourceDescriptions.sendgridMailApi.SendMail
        requestBody:
          contentType: application/json
          payload:
            personalizations:
              - to:
                  - email: $inputs.email
                subject: Welcome aboard
            from:
              email: $inputs.fromEmail
            content:
              - type: text/plain
                value: Thanks for your interest. A team member will reach out soon.
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          emailStatus: $statusCode
    outputs:
      leadId: $steps.create-lead.outputs.leadId
      emailStatus: $steps.send-welcome.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/crm-salesforce-lead-to-sendgrid-welcome-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.