Templates

Replenishment reminder

Automation template · Marketing ·View source

Sign in to use

Learns how often customers rebuy each consumable product, such as coffee, candles or skincare, and reminds them just before they run out, with Klaviyo or a Resend email you approve.

How it works

Trigger
Every morning
Learns
Each consumable product's typical time between repeat orders, from your order history
Finds
Customers about to run out, who accept marketing email and have not reordered
Reminds
Through a Klaviyo flow, or a short Resend email you approve
Remembers
Who was reminded for which order, so nobody is reminded twice

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 each order contained (product and quantity)
  • Marks the products people use up and rebuy; without it, setup asks which products count (optional)
  • How many days one unit usually lasts, when the store knows it (overrides the learned interval) (optional)
  • The product's page on the store, for the reorder link

You'll choose

  • When to check · default 0 9 * * *Every day at 9:00 by default
  • Time zone · default Europe/London
  • Remind this many days early · default 5The reminder goes out this many days before the customer is expected to run out
  • Repeat orders needed to learn · default 10A product needs at least this many repeat purchases before its interval is trusted
  • Reminders per run · default 20The most reminders in one run; the rest wait for tomorrow
  • Where customers replyThe address for replies when sending with Resend, e.g. hello@northline.example
  • 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

7 customers are due today; 6 reminders are waiting for approval. 1 customer was skipped because their Klaviyo profile is not subscribed to email.

CustomerProductsRuns out
Hannah (hannah@example.com)Kiln Roast Coffee, 250 g1 Dec
Luis (luis@example.com)Beeswax Candle, Large; Linen Spray2 Dec
…

Learned intervals this week: Kiln Roast Coffee 250 g, 19 days (84 repeat purchases); Beeswax Candle Large, 41 days (37); Linen Spray, 63 days (12). Not enough history yet: Wool Wash (4 repeat purchases).


Proposed Klaviyo profile update, waiting for approval

hannah@example.com


Or, with Resend: draft email to luis@example.com, waiting for approval

Subject: Running low on your beeswax candle?

Hi Luis,

It’s about the time our beeswax candles start burning down, and the linen spray usually runs out soon after. If you’d like more, here they are:

Questions, or rather not get these reminders? Just reply to hello@northline.example.

Northline Goods

Show the instructions

Replenishment reminder

Remind customers to reorder a product they use up, a few days before they are likely to run out. One reminder per purchase, only to customers who accept marketing email, and never after they have already reordered.

1. Learn each product’s interval

Do this for the products marked as consumable (or the products named in these instructions at setup). Relearn once a week, not every run; keep the results in your automation memory with the date.

  • When the product has its own usage time (how many days one unit lasts), use it as the interval.
  • Otherwise learn it from paid orders of the last 18 months: for each customer who bought the product more than once, take the days between one purchase and the next, divided by the quantity of the earlier purchase. The product’s interval is the median of those gaps. Ignore gaps under 7 days (top-ups and gifts) and over 365 days.
  • Trust a learned interval only when it rests on at least {{minRepeatOrders}} repeat purchases. A product with fewer has no interval yet: leave it out and list it in the weekly summary.

2. Find the customers who are due

For each purchase of a product with an interval, the customer runs out on the purchase date plus the interval times the quantity. A purchase is due for a reminder when today is {{leadDays}} days before that date or later, but not more than 7 days after it. All of these must also be true:

  • The customer accepts marketing email. A customer with no consent value, or who unsubscribed, is never reminded. This rule has no exceptions.
  • The customer has not bought the same product since that purchase, and has no open order containing it.
  • The purchase was paid and not refunded, returned or cancelled.
  • The customer has not been reminded about this purchase before (check your memory, keyed by order id and product id) and has had no replenishment reminder for any product in the last 14 days.
  • The account is not a test, staff, wholesale or blocked account.

Group the due products per customer, so a customer gets one reminder covering everything they are running out of. Take the earliest run-out dates first, up to {{dailyLimit}} customers. If nobody is due, end the run as skipped (Finish Run with status skipped).

3. Remind them

With Klaviyo connected, the email is sent by the team’s Klaviyo flow, which handles consent and unsubscribes:

  • For each customer, find their Klaviyo profile by email. If there is none, or the profile is not subscribed to email marketing, skip the customer and count them in the summary; never subscribe anyone.
  • Propose updating the profile’s properties: replenishment_due_date (the run-out date), replenishment_products (the product names) and replenishment_product_urls (their links). The team’s flow, triggered by that date, sends the email.

With Resend and no Klaviyo, draft one short email per customer and propose it for approval:

  • Write in {{language}}; follow a brand voice skill when it is loaded.
  • Subject: name the product, e.g. “Running low on Kiln Roast coffee?”. No fake urgency.
  • Body: two to four sentences. Greet them by first name when known, say it has been about the usual time since their last order of the product, and give a direct link to each product. Do not mention exact order dates, quantities or anything that reads as tracking them.
  • End with where to reply: {{replyTo}}, and a line saying they can unsubscribe by replying. If the reply address is empty, flag the run and draft nothing.

With neither, put the due customers and their products in the run summary.

After a profile is updated or an email is sent, record the customer, order and product ids with the date in your memory.

4. Report

Summarise how many customers were due, how many were reminded, how many were skipped for consent or a missing Klaviyo profile, and how many wait for tomorrow because of the limit. Once a week, add the learned interval per product and the products that do not have enough repeat orders yet. Flag the run when reminders are waiting for approval.