# Win back inactive retailers

> Retailers or customers who haven't ordered in 60 days get a WhatsApp offer with their own code, then a call from an AI agent if they don't respond.

URL: https://docs.lemuai.com/recipes/win-back-inactive-retailers
For: Everyone
Checked against LemuAI app version 1.0.12
Related: [Calculated fields](https://docs.lemuai.com/segments/calculated-fields), [Offers](https://docs.lemuai.com/offers/overview), [AI, Data and Ticket Steps](https://docs.lemuai.com/automation/more-steps), [Repeat buyers in Delhi](https://docs.lemuai.com/recipes/repeat-buyers-segment)

At the end you'll have a journey that notices when a regular buyer (for example a retailer who orders from you every month) hasn't ordered in 60 days, sends them a WhatsApp offer with a unique code, and has an AI agent call the ones who don't respond. Orders that follow are credited to the journey.

## Before you start

- Orders reaching LemuAI as `Purchase` events, or as records of an orders record type (for distributors: invoices or bills).
- A [calculated field](https://docs.lemuai.com/segments/calculated-fields) `last_order_date` (**Date of the most recent time**, `Purchase`) and `orders_total` (**Number of times**, `Purchase`, ever).
- An [offer](https://docs.lemuai.com/offers/overview) with an offer head, key `winback`, for example "5% extra margin on your next order" with **Unique codes Lemu makes**.
- An approved WhatsApp **Marketing** template: "Hi {{1}}, we miss your orders! Use code {{2}} for {{3}} on your next order, valid this week."
- A voice agent for the follow-up call (telephony and **Voice minutes**).

## Steps

**Step: Segment of inactive regulars**

**Audience → Segments → New segment** `Inactive retailers 60d`:
- **Contact property** `orders_total` **≥** `3` (they were regulars),
- **and** **Contact property** `last_order_date` **not in the last** `60` days.

**Step: Journey trigger**

**Engage → Journeys → New Journey**, trigger **Enters or leaves a segment** → `Inactive retailers 60d` (enters). Leave **Exit when the contact leaves the segment** on, and add exit event `Purchase`.

**Step: WhatsApp offer**

Add a **WhatsApp** step: `{{1}}` = first name, `{{2}}` = `{{ offer.winback.code }}`, `{{3}}` = `{{ offer.winback.headline }}`.

**Step: Wait for a reaction**

**Wait for reaction**: events `link_clicked`, `Purchase`, timeout 3 days. **reacted** → **End**.

**Step: Call the rest**

On **no_reaction**: a **Call** step with your agent. In its **Start Call**, add the `winback` offer under **Offers**, so the agent can mention it and read out the caller's own code.

**Step: Go live**

Set **Allowed hours**, check **Track link clicks** is on (the default), then **Go live**. Everyone already in the segment enters too.

**Tip:** Let LemuAI pick the channel and offer per person instead: replace the WhatsApp and Call steps with **Choose channel, time and offer** (see [AI, conversation, data and ticket steps](https://docs.lemuai.com/automation/more-steps)). It gives a bigger offer to at-risk big spenders and calls only the ones worth a call.

## Check it worked

- The segment's member count matches your expectation (open a few members' **Timeline**).
- **Journey Runs** shows runs at the Wait for reaction step.
- **Engage → Offers → Codes** shows codes **Given out**, and **Used** after orders with the code.
- The journey's report shows orders and revenue credited to it.

## Common problems

| What you see | Fix |
|---|---|
| The message has no code | The offer head had no live offer, or the code pool is empty. See [Offers](https://docs.lemuai.com/offers/overview) |
| Some contacts skipped: frequency cap | They already got your marketing limit this week. See [Journeys troubleshooting](https://docs.lemuai.com/troubleshooting/journeys) |
| The agent doesn't mention the offer | Add the offer to the step's **Offers** and mention it in the prompt |
