Skip to main content
For a store, email is part of the purchase itself. Shoppers expect the receipt, the shipping notice, and the nudge about an abandoned cart. Getting those right earns the trust your marketing depends on. This recipe covers the five moments that matter for an online store. For each one: what to send, and the prompt to build it in Brew.
Before you start. You need a verified sending domain and Shopify connected to Brew. Once both are set, and each topic is subscribed in Shopify Admin, every event below is available as an automation trigger.Selling app subscriptions instead? The same patterns work with RevenueCat or custom events from your own checkout.
The welcome, abandoned-cart, review-request, and win-back emails below are marketing. Send them only to customers who opted in, for example at checkout.Shopify contacts arrive in Brew subscribed but with no consent record, so being synced isn’t permission. Shopify’s webhooks don’t carry marketing consent either.Export your customers from Shopify Admin. Import them with a marketingOptIn property: true for customers who accepted email marketing, false for the rest. Filter your marketing on it.Re-import to pick up changes. A false in the file clears an earlier true, but a customer left out of the file keeps it. See What You Can Send.

New Shopper

Someone created an account or bought for the first time. Engagement will never be higher, so say hello while they’re still looking at the confirmation page. Send one email. Welcome them and set expectations for what you’ll send. Give them one reason to come back, such as a bestseller, a guide, or a first-order perk. Build this as an automation triggered by customers/create, with a Filter step that lets through only customers who opted in to marketing.

Order Placed

Customers open the order confirmation to check that the order went through. Make that answer clear. Send it on orders/create (or orders/paid if you only want to confirm captured payment). Include the order number, total, and payment status from the trigger payload. Order events don’t carry line items. Build this as a single-email automation. If the receipt must also reach unsubscribed customers, send it from a domain with a transactional sending purpose. Transactional-purpose sends skip the unsubscribe footer and deliver to unsubscribed contacts. On a marketing-purpose domain, the same automation respects unsubscribes.
Keep the confirmation about the order. A cross-sell row turns it into marketing, which customers who unsubscribed shouldn’t get from a transactional-purpose domain. Personalize with the payload: {{ orderNumber }}, {{ totalPrice }}, {{ financialStatus }}. See the Shopify integration for the full variable list, and Merge Tags for the syntax and fallbacks.

Abandoned Cart

Most carts don’t convert. A reminder within a day reaches shoppers while they still remember the cart. Send a 2 to 3 email flow starting about an hour after the checkout is created. Lead with the reminder and a link back, not a discount. Build this as a marketing flow triggered by checkouts/create, with a Filter step that lets through only customers who opted in to marketing.
checkouts/create also fires for checkouts that become orders, so word each reminder for someone who already ordered and leave incentives out. Shopify explains why.

Shipped and Delivered

People open shipping emails to check tracking, often more than once. Delivery is also the right moment to ask for a review, while the box is still on the counter. Send a shipment notification on fulfillments/create with the tracking link. Send the review request on the same event after a Wait of about a week. No Shopify event says the box arrived. Don’t trigger the review request from fulfillments/update. Shopify can send it more than once per fulfillment. Each one starts its own run, so a customer could get several review requests. Build these as two separate automations. The shipment notice follows the same unsubscribe caveat as the order confirmation. The review request is marketing, so give it the same opt-in Filter as the welcome email.

Winning Back Lapsed Customers

Customers who bought once and went quiet aren’t gone. They haven’t had a reason to come back yet. Shopify order events write shopifyLastOrderAt onto each shopper’s contact. Filter on it with a fixed date, such as a last order before a date 90 days ago. The date doesn’t roll forward, so move it each time you run the win-back. Save that audience, limited to customers who opted in to marketing, then send a win-back. Use a one-off Email, or a one-off flow run against the saved audience if you want a follow-up stage for non-openers.

Where to Start

If you’re building store emails for the first time, do them in this order:
  1. Order placed: table stakes; every customer sees it
  2. Abandoned cart: the fastest revenue recovery you can ship
  3. Shipped and delivered: highest engagement, sets up the review
  4. New shopper: compounds as your store grows
  5. Winning back lapsed customers: run it quarterly once the rest are live

From an Agent or Code

Connecting Shopify is app-only; list_integrations or GET /v1/integrations confirms it. Each prompt on this page then works as a message to an agent over MCP:
  • create_email makes each design first. save_automation then saves the flow on the Shopify event, with each send node pinned to one design and a verified domain.
  • test_automation runs it to one address, and save_automation with published: true sets it live.
  • check_trigger tells you whether Brew has received a given Shopify topic yet.
  • For the win-back, create_audience (or POST /v1/audiences) saves the filter on shopifyLastOrderAt and the opt-in field. send_email with that audienceId sends the one-off Email. For a follow-up flow, point its manual-audience trigger at the audience with save_automation, then launch it with run_automation.

Need Help?

Our team is ready to support you at every step of your journey with Brew. Choose the option that works best for you:

Search Documentation

Type in the “Ask any question” search bar at the top left to instantly find relevant documentation pages.

Ask ChatGPT or Claude

Click here to open the Copy page menu at the top of this page, then send the page to ChatGPT, Claude, or your editor.