Milly Software
Insights›Leads›Single-Use Discount Codes From Chat That Keep Your Discount's Limits
Leads··4 min read

Single-Use Discount Codes From Chat That Keep Your Discount's Limits

When your chat hands a shopper a discount code, it should apply to exactly what you meant. How Milly Chat copies a Shopify discount's products, collections and minimum purchase into a unique single-use code, and when it issues no code rather than a broader one.

V
Viet Le
co-founder · Milly Software

Say you set up a discount in Shopify for one product line: 15% off accessories, $50 minimum. You pick it as the template for the codes your chat hands out. A shopper signs up for your newsletter in the chat and gets a code. What should that code apply to?

What the template applies to: accessories, 15%, $50 minimum. Not your whole store. This post covers what a code from Milly Chat copies from its template, what it doesn't, and the cases where no code is issued. Single-use codes that keep their template's limits shipped on September 30, 2026.

How chat discount codes work

In Configure → Lead Capture, turn on Coupon Reward, set the coupon source to Shopify discount template, and pick a code discount you've already set up in Shopify admin.

When the assistant captures a promotional sign-up, such as a shopper asking for a discount or joining your newsletter, we create a new discount in your store from that template. It gets its own unique code, it can be used once, and it expires seven days after it's issued. The shopper gets the code in the conversation. A support hand-off or a general question doesn't get one, even with the coupon reward on.

Lead capture and the coupon reward are separate switches.

What the code keeps from your template

  • The value: a percentage off, or a fixed amount off, including whether the amount applies to each eligible item.
  • What it applies to: all items, specific products and variants, or specific collections.
  • Purchase type: if your template covers subscriptions only, so does the code, along with how many recurring payments the discount lasts.
  • The minimum purchase: a minimum subtotal or a minimum quantity.

Two things don't carry over, by design. Your template's own start and end dates and its usage limit are replaced: each code from chat is good for one use and seven days, even if the template itself has ended. The template is a shape to copy, not a promotion with its own schedule.

One thing isn't copied: the template's Combinations settings. A code issued from chat is created with Shopify's default, which is that it doesn't combine with other discounts, whatever the template allows. If you rely on stacking a chat code with another offer, test one at checkout before you turn it on.

When no code is issued

Some templates can't be copied into a one-time code with all their limits. When that happens, no code is created. That's deliberate: a code that applies more widely than you meant costs margin, and a missing code costs one shopper a discount. The cases:

  • Automatic discounts, buy X get Y, and free shipping. These discount types can't be copied into a one-time code.
  • A discount limited to specific customers, segments or markets. Copying those limits needs permissions the app can't rely on having, so no code is issued rather than a partial copy.
  • A list of more than 100 products, variants or collections. Limit it by collection instead.
  • An empty list, because the eligible products or collections on it were deleted.

What you see in Configure

You shouldn't have to find out about a refused template from a shopper. The template picker lists only code discounts available to all customers, so most of the cases above can't be picked. If you paste an ID, or if a template you saved earlier has one of these problems, a note appears under the picker as soon as you open the page. It says what's wrong, what to pick instead, and that no code is issued until it's fixed.

If you set up a coupon reward a while ago, it's worth opening Lead Capture once to check there's no note there.

A template that copies cleanly

  1. In Shopify admin, create an amount-off code discount (off products or off the order).
  2. Make it available to all customers.
  3. Limit it to the products or collections you want, preferring a collection when the list would be long.
  4. Set the minimum purchase, if you want one.
  5. Pick it in Configure → Lead Capture and check that no note appears under the picker.

This shipped in v2.11.2. If a promotion you run doesn't fit one of these shapes, tell us what it looks like. That's how we decide what to support next.

Frequently Asked Questions

What does a discount code from Milly Chat apply to?

It copies the Shopify discount you picked as its template: the same percentage or amount off, the same eligible products, variants or collections, the same one-time or subscription purchase types, and the same minimum purchase. Each code is unique, can be used once, and expires seven days after it is issued, whatever the template's own dates. The template's combination settings are not copied.

Which Shopify discounts can I use as a template?

A code discount (amount off products or amount off order) that is available to all customers. Automatic discounts, buy X get Y and free-shipping discounts can't be copied, and neither can a discount limited to specific customers, segments or markets, so the picker doesn't list them.

What happens if my template can't be copied exactly?

No code is created. A code is issued only when the template has no customer, segment or market restriction and its product, variant and collection limits can be copied into it. Its dates are its own: each code gets a 7-day window, whatever the template's start and end dates. The Lead Capture page shows a note under the template picker saying what the problem is and what to pick instead.

Try Milly Chat

Want to see how this fits your store?
We'll set up a working session.

Get it on Shopify →Talk to sales →