Skip to main content

How to add Dynamic Coupon codes to your Campaigns, Flows and Magic Links

Create unique dynamic discount codes and add them to Icebreakers, Flows and Magic Links; where the Coupons page codes come from; fixed Shopify codes on the checkout link; why Klaviyo coupon codes cannot be used; ending a code.

Written by Coco team

Dynamic Discount codes are a great way to provide an incentive to shoppers and not have to worry about the discount code you're using leaking onto a coupon site. This article also covers the Shopify codes listed on your Coupons page, fixed codes on the checkout link, and Klaviyo coupon codes.

About Coco AI Dynamic Discount Codes

Coco AI dynamic discount codes let you include unique, single-use offers in campaigns and flows. You can offer a % off, fixed amount or a shipping discount with your Dynamic Discount Codes.

Coco AI discount codes automatically flow through to Shopify. You do not need to activate them: they're live and ready for your customer to redeem.

How Coco AI Coupons Benefit You

  • Create unique personalized discount codes that are sent to the shopper when the message is sent.

  • Create a VIP experience with codes unique to specific messages and subscribers.

  • Offer flexible, unique codes with or without expiration dates and minimum purchase amounts.

  • Limit discount codes to specific collections or products.

How to Create a Coco AI Dynamic Discount

  1. Navigate to the Coupons section of the Coco AI dashboard.

  2. Enter the Name (what you'll see in the Coco dashboard) and Prefix (what the customer will see before their custom code).

  3. Select the type of code you want to provide (Fixed amount, Percentage off, Free Shipping).

  4. Select if the discount applies to: The Entire Order, Specific Products, or Specific Collections.

  5. If you select Specific Products, make sure to select the Products or Collection from the Drop Down. You can select more than 1.

  6. Select a Start and End date, and a limit to the number of times a discount can be used in total. You can set the end date to "Never Expires".

  7. Select how many codes you want to create. New codes will also be generated once you have used through the original amount.

Add Dynamic Discount Code to a Message (In Flows or Campaigns)

  1. On the Template editor page, open the drop down right above the Body section of the editor.

  2. Select the Coupon you'd like to enter into the message.

  3. You will see the dynamic value "shopify.dynamic_discount" appear in the Body Template editor and a preview on the right side.

  4. Finish building your message, then click Save.

Keep at least one word before and after the discount code in the message body. Meta rejects a template whose text starts or ends with a variable.

Add Dynamic Discount Code to a Magic Link

  1. In the Magic link editor, click the Discount code drop down menu.

  2. Select the discount code you'd like to add to the Magic Link.

  3. You will see a "{code}" variable in the message: this is the placeholder for where the code will appear.

  4. Preview how the code will appear in the message to customers.

  5. Click Save.

Where do the discount codes on my Coupons page come from?

The Coupons page shows the discount codes CoCo pulls in from your Shopify store, so you can include them in your messaging if you want to. CoCo updates the list when a discount code is created, changed or deleted in Shopify. The Coupons page is also where you create CoCo dynamic discounts, as described above.

How do I add a fixed Shopify code that applies automatically at checkout?

  1. Create the discount code in Shopify and make sure it is active.

  2. Open the message in the template editor and enter the code in the Checkout discount code field. The field takes up to 64 characters.

  3. Save the template.

When you save, CoCo checks the code with Shopify. If it shows "Discount code ... was not found in Shopify" or "is not active in Shopify", fix the code in Shopify or correct its spelling, then save again.

The code is added to the cart recovery button of the message, so a customer who taps it arrives at checkout with the discount applied. A message without a cart recovery button, such as a typical Icebreaker that links to your home page or a collection, does not carry the code on its link. In that case, write the code in the message text, or use a dynamic discount.

Can I use a coupon code generated by Klaviyo in a WhatsApp message?

No. Klaviyo's unique coupon codes are generated inside Klaviyo, and CoCo cannot import them. CoCo's dynamic discount codes are created in Shopify independently of Klaviyo. For a WhatsApp message, use a fixed Shopify code that every recipient shares, or a CoCo dynamic discount that gives each recipient their own code.

If the same offer also goes out in a Klaviyo email with its own coupon, a customer who is on both channels receives a separate code in each.

Can a Utility message include a discount?

No. A Flow set to Utility cannot contain promotional wording, discounts or checkout discount codes. Keep the Flow as Marketing when it carries an offer.

How do I stop a code from working when a promotion ends?

  • Dynamic discount: set the Start and End date and the total usage limit when you create it. "Never Expires" is one of the end date options, so pick an end date for a time-limited offer.

  • Fixed Shopify code: the code lives in Shopify. Change or delete it there, and CoCo updates its Coupons list.

To switch off codes from a dynamic discount that customers have already received, contact CoCo support from the chat in your dashboard.

Related articles

Did this answer your question?