Templates

Customer win-back

Automation template · Marketing ·View source

Sign in to use

Every week, finds customers who have not ordered in a while and drafts a personal email to bring them back, based on what they bought. Nothing is sent until you approve it.

How it works

Trigger
Every Monday morning
Finds
Customers whose last order was a set number of days ago and who accept marketing email
Drafts
A short personal email for each, based on what they bought before
Sends
With Resend, or through your Klaviyo flow, only after you approve
Remembers
Who was emailed, so nobody hears from you twice within the cooldown

What it needs

From your data. The agent finds the matching fields in your schema and confirms them with you.

  • The customer's email address
  • The customer's first name, for the greeting (optional)
  • Whether the customer agreed to receive marketing email
  • When each order was placed
  • The customer who placed the order
  • What they bought (product and quantity), to make the email personal (optional)
  • When the customer was last sent a win-back email, if the project keeps it (optional)

You'll choose

  • When to run · default 0 9 * * 1Every Monday at 9:00 by default
  • Time zone · default Europe/London
  • Days since last order · default 90Customers whose last order is at least this old
  • Ignore after (days) · default 365Customers gone longer than this are left alone
  • Cooldown (days) · default 180Never email the same customer again within this many days
  • Emails per run · default 25The most customers drafted in one run; the rest wait for next week
  • The offer · default no discountWhat the email may offer, e.g. "free shipping on the next order"; it never invents one
  • Language · default English

Works best with

The agent offers to set these skills up too, or to use ones you already have.

Example output

Run summary: customer win-back, Monday 24 November

31 customers are due. Drafted 25 (the weekly limit); 6 wait for next week. 4 more were skipped because they do not accept marketing email. 25 emails are waiting for approval. Offer used: free shipping on the next order.


Draft email to tom.h@example.com, waiting for approval

Subject: New colours of your favourite tote

Hi Tom,

Your Waxed Canvas Commuter Bag has probably seen a lot of mornings by now. It’s back in two new colours, olive and slate, and the matching Leather Card Holder is in stock again too.

Free shipping is on us for your next order.

Have a look: northlinegoods.example/new

Northline Goods

Show the instructions

Customer win-back

Find customers who have drifted away and draft a personal email that gives them a reason to come back. Nothing goes out without approval, and nobody is emailed twice within {{cooldownDays}} days.

1. Find the customers

A customer is due for a win-back email when all of these are true:

  • Their most recent order was at least {{inactiveDays}} and at most {{maxInactiveDays}} days ago. Count only orders that were paid and not fully refunded or cancelled.
  • They accept marketing email. A customer with no consent value, or who unsubscribed, is never emailed. This rule has no exceptions.
  • They have a valid email address and are not marked as a test, staff, wholesale or blocked account.
  • They have not had a win-back email in the last {{cooldownDays}} days. Check the customer’s last win-back date when the project keeps one, and your automation memory of who you emailed (name each customer by id there, with the date).

Take the most valuable customers first (more past orders, then higher total spend), up to {{weeklyLimit}}. If nobody is due, end the run as skipped (Finish Run with status skipped).

2. Draft each email

Write in {{language}}. When a brand voice or customer communication skill is loaded, follow it.

  • Subject: under 50 characters, personal, no clickbait or fake urgency (“We miss you” alone is weak; mention what they liked).
  • Body: three to five short sentences. Greet them by first name when known. Mention what they bought before in a natural way, then one or two things they may like now: new or restocked products in the same category, or the next item people who bought the same thing usually buy. Only suggest products that are published and in stock.
  • The offer: {{offer}}. Mention exactly that, or no offer at all when it is “no discount”. Never invent a discount code, an expiry date or a price.
  • End with one link or call to action and the store’s name. Do not mention how long it has been since they ordered, or any internal figure.

3. Send for approval

  • With Resend: propose one email per customer. Never send without approval, and never send an email twice.
  • With Klaviyo (and no Resend): the email is sent by the team’s Klaviyo flow, which handles consent and unsubscribes. Find each customer’s Klaviyo profile by email; if there is none, or it is not subscribed to email marketing, skip the customer and count them in the summary, and never subscribe anyone. Propose updating the profile’s properties: win_back_date (today), win_back_products (the one or two products the email suggests), win_back_product_urls (their links) and win_back_offer (the offer, or empty when it is “no discount”). The team’s flow, triggered by that date, sends the email; the drafted text in the run summary helps the team keep the flow’s email current.
  • With neither: put the list of customers and the drafted emails in the run summary.

After an email is sent or a profile is updated, record the date on the customer (when the project keeps a win-back date) and in your memory.

4. Report

Summarise: how many customers were due, how many were drafted, how many were left for next week because of the limit, and how many were skipped for missing consent. Flag the run when emails are waiting for approval.