Skip to content

Connect SendGrid and Shopify

Start a client’s workflow in SendGrid and act in Shopify, or the other way round, on the client’s own accounts.

Each app by itself: SendGrid integration and Shopify integration, with how to connect it, its scopes and its limits.

What the pair is used for

  • Each paid Shopify order can send the buyer a SendGrid dynamic template, such as the store’s own order confirmation, from a verified sender.
  • New orders can also send a plain SendGrid email to the buyer with the order number, the total and the payment status.
  • A click on a tracked link in a SendGrid campaign can create a Shopify customer from the address, so people who engage are in the store’s customer list before they buy.

Every way SendGrid and Shopify join

A workflow starts from a trigger in one app and runs a step in the other, on the client’s accounts. Where the library has a starter for it, it installs that pairing into a client switched off; any other pairing is two steps on the canvas.

From SendGrid to Shopify

Triggers in SendGrid with steps in Shopify
When this happens in SendGridThis runs in ShopifyHow fastStarter
An email bouncesCreate a customerWithin secondsInstall the starter
An email bouncesUpdate a customerWithin secondsTwo steps on the canvas
A link in an email is clickedCreate a customerWithin secondsInstall the starter
A link in an email is clickedUpdate a customerWithin secondsTwo steps on the canvas

From Shopify to SendGrid

Triggers in Shopify with steps in SendGrid
When this happens in ShopifyThis runs in SendGridHow fastStarter
A new order comes inSend an emailWithin 5 minutesInstall the starter
A new order comes inSend a template emailWithin 5 minutesInstall the starter
An order is paidSend an emailWithin 5 minutesInstall the starter
An order is paidSend a template emailWithin 5 minutesInstall the starter

Set up the starter

Send an email in SendGrid when a new order comes in to Shopify

  1. 1Install the starter into the client from Templates → Library. It lands switched off.
  2. 2Connect the client’s Shopify, for “A new order comes in”
  3. 3Connect the client’s SendGrid, for “Send an email”
  4. 4Fill in SendGrid: From address (For example hello@northside.example)
  5. 5Switch it on. Within 5 minutes: Shopify is checked every 5 minutes.

What it produces

The SendGrid step as it runs for an example client, Lakeview Consulting, when Emma Collins asks for a consultation: each value the starter fills in.

From
hello@lakeview.example
Subject
A new order comes in: #1042
Text
A new order comes in in Shopify. Order number (#1001): #1042 Their email: emma.collins@example.com Total: 500.00 Currency: USD Payment status (PAID…): new
To
emma.collins@example.com

Setup notes for this pair

  • Orders are picked up on Shopify’s 5-minute check, so the SendGrid email follows an order by up to 5 minutes. Clicks reach Shopify within seconds.
  • Shopify refuses a customer whose email it holds, so a second click by the same person fails the run and names the email.

Field mapping, starter by starter

Each value a starter’s step is given, and where it comes from. Words in brackets are filled in when it runs; change any of it after installing.

Create a customer for bounced emails

Create a customer in Shopify when an email bounces in SendGrid

The values Create a customer in Shopify when an email bounces in SendGrid sends
Shopify valueFilled from
Email[the email’s email, from SendGrid]

Create a customer for email clicks

Create a customer in Shopify when a link in an email is clicked in SendGrid

The values Create a customer in Shopify when a link in an email is clicked in SendGrid sends
Shopify valueFilled from
Email[the email’s email, from SendGrid]

Send an email for new orders

Send an email in SendGrid when a new order comes in to Shopify

The values Send an email in SendGrid when a new order comes in to Shopify sends
SendGrid valueFilled from
From[SendGrid: From address]
SubjectA new order comes in: [the order number, from Shopify]
TextA new order comes in in Shopify. Order number (#1001): [the order number, from Shopify] Their email: [the order’s email, from Shopify] Total: [the order’s amount, from Shopify] Currency: [the order’s currency code, from Shopify] Payment status (PAID…): [the order’s display financial status, from Shopify]
To[the order’s email, from Shopify]

Send a template email for new orders

Send a template email in SendGrid when a new order comes in to Shopify

The values Send a template email in SendGrid when a new order comes in to Shopify sends
SendGrid valueFilled from
From[SendGrid: From address]
Template ID[SendGrid: Template ID]
To[the order’s email, from Shopify]

Send an email for paid orders

Send an email in SendGrid when an order is paid in Shopify

The values Send an email in SendGrid when an order is paid in Shopify sends
SendGrid valueFilled from
From[SendGrid: From address]
SubjectAn order is paid: [the order number, from Shopify]
TextAn order is paid in Shopify. Order number (#1001): [the order number, from Shopify] Their email: [the order’s email, from Shopify] Total: [the order’s amount, from Shopify] Currency: [the order’s currency code, from Shopify] Payment status (PAID…): [the order’s display financial status, from Shopify]
To[the order’s email, from Shopify]

Send a template email for paid orders

Send a template email in SendGrid when an order is paid in Shopify

The values Send a template email in SendGrid when an order is paid in Shopify sends
SendGrid valueFilled from
From[SendGrid: From address]
Template ID[SendGrid: Template ID]
To[the order’s email, from Shopify]

SendGrid and Shopify and their logos are trademarks of their owners, used here only to say what Thrum works with; no endorsement is implied.

Thrum is cooking.

Get early access and you’ll be among the first in. Early members get a launch perk.