# Offers

> Set up discount codes once and use them in emails, WhatsApp messages, journeys and voice agents, with unique codes per customer and rules for who gets what.

URL: https://docs.lemuai.com/offers/overview
For: Everyone
Checked against LemuAI app version 1.0.12
Related: [Templates](https://docs.lemuai.com/email/templates), [WhatsApp Messaging](https://docs.lemuai.com/messaging/whatsapp), [Journey Nodes & Triggers](https://docs.lemuai.com/automation/nodes-and-triggers), [Shopify](https://docs.lemuai.com/integrations/shopify)

**Engage → Offers** keeps your discounts in one place. Messages don't contain the code itself; they link to an **offer head** (like "Welcome offer"), and the offer head decides which offer and code each person gets. Change the offer under a head and every template, journey and agent that uses it follows.

## The three parts

| Part | What it is | Example |
|---|---|---|
| **Offer head** | The slot messages link to, by its **Key**. Picks the live offer. | Key `welcome`, used as `{{ offer.welcome.code }}` |
| **Offer** | What the customer is told: **Headline**, **Details**, **One line for WhatsApp**, **How a voice agent says it**, **Terms**, and where its code comes from. | "10% off your first order" |
| **Codes** | Where codes come from (see below). | `DIWALI20`, or one unique code per customer |

## Where codes come from

| Option | Use when |
|---|---|
| **No code** | The offer applies without a code, like free delivery this week |
| **One code for everyone** | Everyone gets the same code, like `DIWALI20` |
| **Unique codes you upload** | You upload a list from your store or billing system |
| **Unique codes Lemu makes** | LemuAI generates them (with an optional **Code prefix** like `WEL-`); download them and import them into your store |
| **Shopify discount codes** | LemuAI adds codes to a discount you set up in Shopify, and tops it up when it runs low. Needs your store connected with its own app and the **Shopify discount ID** (the number at the end of the discount's page address) |

Unique-code settings:

- **When someone already has a code:** **Give them the same code again** (one code per person across email, WhatsApp and calls), or **Give a new code if theirs was used or expired**.
- **Codes expire:** optional date; no codes are given out after it.
- **Warn when this many are left:** owners and admins get an email when the pool runs low (default 10% of all codes, at least 10) and when it's empty.

## Create an offer

**Step: Create the offer**

On **Engage → Offers**, add an offer. Pick the discount type (**Percent off**, **Amount off**, **Free shipping**, **Buy X get Y** or **Something else**), what it **Applies to** (**The whole order**, **Some products** or **Some categories**), any **Minimum order**, and the codes.

**Step: Write the lines**

Fill in **Headline** (main line in emails, like `10% off your first order`), **One line for WhatsApp** (no line breaks), and **How a voice agent says it** (as spoken: `ten percent off your first order`).

**Step: Create an offer head**

Give it a **Name** (`Welcome offer`) and a **Key** (`welcome`). The key can't change later, because messages link to it. Choose its **Offer** and what happens **When no offer can be used**: another **Fallback offer**, send without an offer, or skip the send.

**Step: Use it in messages**

In an email template or WhatsApp template value, use the insert offer button or type `{{ offer.welcome.code }}`. Voice agents get offers in the **Offers** section of a step.

## Rules: different offers for different people

An offer head can have rules, checked top to bottom. Each rule gives an offer when:

- **The message is about these products** (names or SKUs) **or products in these categories**, and/or
- **The contact is in segment** (or **Any contact**), and
- today is between **From** and **Until** (optional).

The first matching rule whose offer is live wins; otherwise the default offer; otherwise the fallback.

## Codes and redemptions

The **Codes** list shows every code with its status: **Not given out**, **Given out**, **Used** or **Stopped**, and who got it. Codes are marked used when an order with that code reaches LemuAI (Shopify, the tracking snippet, or the API). **Stop handing out unused codes?** stops codes nobody has yet (for example if a list leaked); codes people already have keep working in your store.

Codes are claimed only for real sends. Previews and test sends show `SAMPLE-CODE` for unique codes.

## Common problems

- **"No codes found" or the pool is empty:** upload or generate more codes. Until then the head's fallback applies.
- **A message showed no code:** the head had no live offer (outside its dates, or archived). Check the head's **Live offer** column.
- **Code marked unused but the customer used it:** the order didn't include the code, or didn't reach LemuAI. Check the order event in the [Event Log](https://docs.lemuai.com/event-log/overview).
