Skip to main content

Set Up Delivery Digest Emails with Shopify Flow and Klaviyo

Send bulk order gifters one daily shipping update per Send instead of an email per shipment. Import our ready-made Shopify Flow workflow and Klaviyo email template, then add your store's details.

Beta feature

The delivery digest is in beta. Everything in this tutorial works today, but field names, timing, and defaults may change based on feedback before the holiday season. The digest runs independently of your shipping notification settings: turning it on doesn't change whether we suppress Shopify's own emails. We currently pass the billing customer's email; the order contact email, which can differ, will be added.

When a gifter sends 100 gifts from your store, you don't want to send them 200 or 300 shipping emails. The delivery digest gives them one email a day per Send: what changed since yesterday, where every shipment stands, and a link to the full recipient list in their customer account.

We've packaged the whole setup into two downloads: a Shopify Flow workflow and a Klaviyo email template. You import both, add your store's details, and wait for the first morning's run. If you use a different email platform, the Flow workflow still does the work; see Using Other Email Platforms.

Before You Start​

How the Digest Works​

The digest is built on a Shopify Flow trigger, Send fulfillment status changed, that we fire once a day at 12:00 UTC for every Send with delivery activity in the previous 24 hours. The trigger carries counts, not a list: how many recipient orders and shipments are in each state. It doesn't include recipient names, addresses, or tracking numbers. The email shows the counts, and the link takes the gifter to the Sends page in their customer account, where every recipient and tracking number already lives.

A Send is included in a day's run when all of the following are true:

  • Recent activity: at least one recipient order in the Send had a carrier-reported shipment status change in the last 24 hours (In transit, Out for delivery, Delivered, Delayed, and so on).
  • Send is finished: the Send status is Finished. Sends still being validated or generated are skipped.
  • An active Flow uses the trigger: until a workflow with this trigger is turned on, we don't evaluate or fire it for your store at all.

There's no digest setting inside Send To Many. Turning the Flow workflow on starts the digest, and turning it off stops it. It works for manual uploads, storefront checkout Sends, and Sends created from inquiries.

What the workflow does​

The workflow you'll import has three branches, all starting from the trigger:

  • Gifter digest: if the Send has a gifter with an email address, Klaviyo's Track an Event action sends a Send Delivery Digest event to that gifter's Klaviyo profile. Your Klaviyo flow turns the event into the email.
  • Team alert: if any shipment failed delivery, had a delivery attempt, or is returning to sender, Flow emails your team with the counts and the Send ID.
  • Payload email (for testing): emails you the exact event properties sent to Klaviyo, so you can check the first run. You'll delete this branch at the end.

Flow does the formatting before the data reaches Klaviyo: counts are rounded to whole numbers, a problem count adds up failed, attempted, and returning shipments, and the Sends page link is built with the Send ID. The Klaviyo template only displays values.

Step 1: Import the Workflow into Shopify Flow​

  1. Download the delivery digest workflow (.flow).
  2. Open Shopify Flow from your Shopify admin and click Import on the workflows list.
  3. Select the .flow file. Flow opens the workflow in the editor, turned off.
Limit the digest to certain Sends

To send the digest for only some Sends, add a condition on Send source (manual, storefront, or inquiry) or Send preset name right after the trigger.

Step 2: Add Your Store's Details​

The workflow ships with placeholders in four places. Replace each one before you turn it on.

  1. Klaviyo public API key. Open the Track an Event action and replace YOUR_KLAVIYO_PUBLIC_API_KEY with your Klaviyo public API key. It's the 6-character key under Settings → API keys in Klaviyo, also called your Site ID. Don't use a private key (one that starts with pk_): Klaviyo rejects it, and a private key shouldn't be pasted into a workflow.
  2. Customer account URL. In the same action's Event Properties, find the sends_page_url line and replace YOUR-ACCOUNT-URL with your store's customer account address. Leave the rest of the line as it is. Make the same change in the payload email's message.
  3. Team email address. In both Send internal email actions, replace SWAP@YOUR-EMAIL.COM with the address that should get delivery alerts and the test payload.
  4. Click Turn on workflow.

Shopify Flow Track an Event action for the Send To Many delivery digest showing the Klaviyo event name, customer email, and event properties

Finding your customer account URL​

Log in to your storefront as a customer, open the Sends page from the account menu, and look at the address bar. Everything before /pages/ is your account URL. Depending on your store, it looks like one of these:

https://account.yourstore.com/pages/019d0bdc-632f-7d0e-8d6b-f88d44a1f1b6/?send=1234
https://shopify.com/12345678901/account/pages/019d0bdc-632f-7d0e-8d6b-f88d44a1f1b6/?send=1234

The Sends page ID (019d0bdc-...) is the same in every store, and the workflow adds ?send= with the Send ID for you. See Linking Directly to a Send for more on this URL.

Browser address bar on the customer account Sends page showing the page ID and ?send= Send ID parameter in the URL

Step 3: Check the First Payload​

Flow can't generate a test event for this trigger, so the first real run is your test. It happens at the next 12:00 UTC for any Finished Send with a carrier status change in the last 24 hours.

After the run:

  1. Open the Digest payload email. Check that the counts are whole numbers, changed_summary lists that day's changes (for example "2 shipments → Delivered, 1 shipment → In transit"), and sends_page_url opens the Send when you're signed in as that gifter.
  2. In Klaviyo, open the gifter's profile and confirm the Send Delivery Digest event arrived with its properties.

If nothing arrived, open the workflow's run history in Shopify Flow. No run means no Send met the inclusion conditions that day: the Send must be Finished, and a fulfillment without a carrier status yet doesn't count as activity.

If the payload email arrived but Klaviyo has no event, open that run and check the Track an Event step. An Http 403 error with "Incorrect public API key" means the key field has a private key or a typo. Replace it with your 6-character public key.

The first event also creates the Send Delivery Digest metric in Klaviyo, which you need for Step 5.

Step 4: Add the Email Template to Klaviyo​

The template is plain on purpose: system fonts, black and gray, your store name at the top, and no images. Add your logo and colors in Klaviyo if you want them.

  1. Download the delivery digest email template (HTML).
  2. In Klaviyo, go to Content → Templates and create a new template with the code editor (HTML).
  3. Paste in the file's contents and save the template as Send Delivery Digest.

What the template does:

  • Hides zero rows. The gifter never reads "Delivery failed: 0".
  • States the total twice. The recipient count appears in the opening paragraph and again in the total row.
  • Changes tone when something goes wrong. When any shipment failed delivery, had a delivery attempt, or is returning to sender, the heading and intro switch to a calmer version that says your team is on it.
  • Uses one call to action. View all recipient statuses opens the Send on the Sends page, and the note under it warns that the gifter will need to sign in.
  • Changes the preview text daily. The inbox preview shows what changed that day, so today's email doesn't look like yesterday's.
Unsubscribe link

Klaviyo requires the unsubscribe link in the footer until the email is approved as transactional (see Step 5). Once Klaviyo approves it, you can remove the link.

Step 5: Build the Klaviyo Flow​

  1. In Klaviyo, create a flow from scratch and set the trigger to the Send Delivery Digest metric. Klaviyo shows each metric's source next to its name: pick the one from Shopify.
  2. Add an Email action directly after the trigger, with no time delay. The daily trigger already batches the updates.
  3. Select the Send Delivery Digest template.
  4. Set the subject line, for example A quick update on your gifts. Leave the preview text empty; the template sets it.
  5. Turn Smart Sending off. Otherwise a gifter who got a campaign recently gets skipped.
  6. Mark the email as transactional. In the email's settings, under Transactional, choose Apply for transactional status and submit it for review. This requires a transactional sending domain in your Klaviyo account. Until Klaviyo approves the request, the email sends as marketing, so gifters who unsubscribed from your marketing emails won't get it.
  7. Set the email and the flow to Live.

Transactional emails can only cover the order they're about, so keep promotions out of the digest: no discount codes, product recommendations, or newsletter sign-ups. Klaviyo's guides cover the rules and setup: Understanding transactional messages and How to set up a branded sending domain.

Two metrics with the same name

Klaviyo keeps a separate metric for each source. If you sent a test Send Delivery Digest event into Klaviyo another way (its API, a test tool, or another integration), you'll see two metrics with that name. A flow triggered by the non-Shopify one never fires from your Shopify Flow workflow.

Sample delivery digest email showing what changed, a status table with delivered, out for delivery, in transit, and not yet shipped counts, and a View all recipient statuses button

Step 6: Remove the Test Branch​

Once the first digest email goes out and looks right, open the workflow in Shopify Flow, delete the Digest payload email action, and save. The team alert branch stays.

Customizing the Digest​

The event carries more than the template uses. Any of these can be added to the template as {{ event.property_name }}:

PropertyWhat it holds
send_id, send_name, send_preset_name, send_sourceThe Send's ID, name, preset, and source (manual, storefront, or inquiry)
parent_order_nameThe gifter order, for example #1001. Empty if the Send has none
first_nameThe gifter's first name
sends_page_urlThe link to this Send on the gifter's Sends page
total_orders, total_shipmentsRecipient orders and shipments in the Send
orders_with_changesRecipient orders with a shipment status change in the last 24 hours
orders_all_delivered, orders_in_progress, orders_not_shippedRecipient orders by delivery progress
delivered, out_for_delivery, ready_for_pickup, in_transit, confirmedShipments in each status right now
awaiting_carrierShipments with a fulfillment but no carrier update yet. Not an error
delayed, attempted, failed, returningShipments with a delivery problem
unknownShipments in a carrier status we don't have a bucket for
problem_countFailed, attempted, and returning shipments added together
changed_summaryToday's changes in plain text, for example "2 shipments → Delivered, 1 shipment → In transit"
changed_displayThe same changes on one line, separated by dots: "2 shipments → Delivered · 1 shipment → In transit"
current_summaryThe whole Send's statuses in plain text, for example "12 Delivered, 3 In transit"
overall_statusOne of not_started, tracking_added, in_progress, partially_delivered, has_delivery_issues, all_delivered
assigned_user_emailThe team member assigned to the Send

The status rows mix units on purpose: carrier statuses count shipments, Not yet shipped counts recipient orders, and the total counts recipients. With one shipment per recipient, the rows add up to the total. When a recipient's order ships in more than one package, they can add up to more.

Deciding who hears about delivery problems​

The workflow alerts your team and softens the gifter's email when something goes wrong. Before you launch, decide whether that's the right split for your store:

  • Does the gifter hear about failures, or do you? Some merchants would rather catch failures internally and reach out personally. To hold the gifter email back on problem days, add a condition before Track an Event with the same three rules as the team alert, and continue only on the false branch.
  • What should the gifter do? If the email mentions a failure, say whether you need a corrected address or nothing at all. A count with no instruction produces a support ticket.
  • Is a delay a problem? The alert leaves delays out, since they usually resolve on their own. To include them, add Shipments delayed is greater than 0 to the alert condition.

What the Trigger Sends You​

Every field below is available as a variable in your Flow conditions and actions. The workflow already maps these into the Klaviyo event; use this list if you add your own conditions or properties.

Send details​

  • Customer: the gifter on the Send. Flow resolves this into the full Shopify customer object, so you can read email, first name, and anything else you need. Empty if the Send has no gifter.
  • Send ID: the Send To Many Send ID, for example 15145. Append it to the customer account Sends page link to deep-link the gifter to their Send.
  • Send name: the name given to the Send.
  • Send preset name: which Send preset was used, for example "Corporate Gifting". Empty if none.
  • Send source: manual, storefront, or inquiry.
  • Assigned user email: the team member assigned to the Send.
  • Parent order ID and Parent order name: the aggregate (gifter) order, for example #535923. Empty if the Send has no aggregate order.

Order counts​

These count recipient orders. Aggregate orders are excluded.

  • Total orders: recipient orders in the Send.
  • Total shipments: fulfillments across those recipient orders. This can be higher than Total orders when shipments split, or lower when some orders haven't shipped.
  • Orders with status changes: recipient orders that had a shipment status change in the last 24 hours. This is your "what's new" number.
  • Orders all shipments delivered: recipient orders where every shipment arrived.
  • Orders with shipments in progress: recipient orders with at least one shipment still moving.
  • Orders with no shipments: recipient orders that haven't shipped yet. "Not yet shipped" reads well for gifters.
  • Orders fulfilled, Orders partially fulfilled, and Orders unfulfilled: counts by Shopify fulfillment status rather than carrier status.

Shipment status counts​

These describe where every shipment in the Send stands right now, not just what changed. They always add up to Total shipments.

  • Shipments delivered
  • Shipments in transit
  • Shipments out for delivery
  • Shipments confirmed: a label exists and the carrier has accepted the shipment.
  • Shipments ready for pickup
  • Shipments delayed
  • Shipments attempted delivery
  • Shipments failed delivery
  • Shipments returning to sender
  • Shipments without shipment status: a fulfillment exists but the carrier hasn't reported yet. This is not an error.
  • Shipments unknown status: any carrier status we don't have a bucket for. Rare, and worth alerting your team about if you see it.

Summary fields​

  • Changed statuses summary: plain-English text covering only the last 24 hours, for example "3 shipments → Delivered, 1 shipment → Failed delivery". Sorted by count, highest first. Empty if nothing changed.
  • Current statuses summary: the same idea for the whole Send as it stands now, for example "12 Delivered, 3 In transit".
  • Overall fulfillment status: a single value summarizing the Send. One of not_started, tracking_added, in_progress, partially_delivered, has_delivery_issues, all_delivered. It's has_delivery_issues whenever any shipment is delayed, failed, attempted delivery, or returning to sender, which makes it the easiest field to branch on.

Using Other Email Platforms​

If you send transactional email from SendGrid, Postmark, Customer.io, or your own system, replace Track an Event with Flow's Send HTTP request action and post the same event properties to your endpoint. The rest of the workflow works as it is. The same approach works for Slack or Teams webhooks if you want delivery updates in a team channel.

Next Steps​

Still have a question?

Ask Manny, the Send To Many bot, about “Set Up Delivery Digest Emails with Shopify Flow and Klaviyo” or anything else in the docs.