Discount Codes in Chat for WooCommerce

By Alva Chew 5 min read Updated November 11, 2026

Yes. AeroChat handles WooCommerce discount codes in the chat. It reads your synced WooCommerce coupons, tells the shopper which one applies and why a code did not work, such as a minimum spend or an expiry date. Where your rules allow it, it creates a new single-use coupon through WooCommerce’s REST API, limited to the shopper’s email, on WhatsApp and every other channel. It never invents an offer.

This recipe answers “do you have a code?” and “why isn’t my code working?” with the coupons you actually run. Part of connecting WooCommerce to WhatsApp and AI chat.

What happens today

Discount questions are some of the most common messages a store gets: “any codes today?”, “my code says invalid”, “I forgot to use my code”. Each one means opening WooCommerce, finding the coupon and reading its rules. Shoppers who don’t get an answer abandon the cart or buy at full price and ask for a refund of the difference later.

The flow that works

  1. The shopper asks about a discount, or says a code did not work.
  2. AeroChat reads your synced WooCommerce coupons: the code, the type, the amount and the expiry date.
  3. For “any codes?”, it mentions only an offer that is running and that the shopper qualifies for.
  4. For a code that failed, it checks the coupon’s rules: expiry, minimum or maximum spend, products and categories it covers or excludes, usage limits and email restrictions. It tells the shopper the exact reason.
  5. If your rules allow a new code, such as a first-order or birthday code, AeroChat creates a single-use coupon in WooCommerce limited to the shopper’s email and sends it.
  6. If the shopper wants to buy in the chat, it applies the code to the order it creates and sends the payment link.

What it looks like on WhatsApp

Customer: My code SPRING15 isn’t working. (example)

AeroChat: SPRING15 needs a cart of $60 or more, and yours is $48 (example). Add $12 more and it will work. The Cotton socks 3-pack at $14 would do it.

Customer: Is there anything for a first order?

AeroChat: Yes. Here’s your own first-order code, WELCOME-K7Q2 (example), for 10% off. It works once, with the email you check out with, until 30 November.

In WooCommerce: a new coupon WELCOME-K7Q2 (example) is created for 10% off, usage limit 1, restricted to the shopper’s email, expiring 30 November.

The recipe

Copy this into AeroChat

When a customer asks about discounts or says a code did not work, follow these steps.

  1. Check our active WooCommerce coupons. Only mention an offer that is running now.
  2. If a code did not work, check its rules: expiry date, minimum and maximum spend, the products or categories it covers or excludes, its usage limits and any email restriction. Tell them the exact reason and how to meet it, if they can.
  3. If they ask for a code and this is their first order, create a coupon in WooCommerce for 10% off (example), usage limit 1, restricted to their email, expiring in 14 days. Send it to them.
  4. If they are not eligible for a new code, say so plainly. Never make up a code.
  5. If they want to order in the chat, create the order with the code applied and send an Airwallex payment link.

Never give a code we have not set up in our rules. Reply in the customer’s language.

Change the first-order discount and add any other codes AeroChat may issue, such as a birthday code, to step 3 before you paste it.

What to connect

  • WooCommerce orders. In WooCommerce, go to Settings, Advanced, REST API, and add a key with read and write access. Copy the consumer key and consumer secret, and paste them in when AeroChat asks. Coupons with their rules, usage limits and email restrictions are documented at woocommerce.github.io/woocommerce-rest-api-docs.
  • WooCommerce catalog. Built in. The AeroChat WordPress plugin syncs your products, variants, prices and stock, and your coupons with their type, code and expiry.
  • Airwallex. Built in. Connect your Airwallex account in the AeroChat dashboard. Airwallex confirms each payment to AeroChat, so the shopper never has to tell you they paid. Payment links are on Growth and above.

After you paste the recipe, AeroChat builds the workflow as a draft and shows a checklist: connect WooCommerce, connect Airwallex if you take orders in chat, then switch it on. If it built the connection from WooCommerce’s public documentation, the checklist asks you to check it once against the current docs.

Using a different system? If it has a public API, it connects to AeroChat the same way: describe what you want, paste in its key, and it runs.

Can’t find your tool? Message us in the chat on this page and we’ll tell you how it connects.

What you still decide

  • Which codes AeroChat may create on its own, and their value and expiry.
  • Whether it mentions offers before the shopper asks.
  • What it says when a shopper asks for a discount they don’t qualify for.

The result to expect

Shoppers get a straight answer on discounts at the moment they are about to buy, and failed codes are explained instead of abandoned.

Measure it with your own numbers: discount questions answered without handover, and carts completed after a code question, for a month before and after.

Next: see the discount code workflow across every channel and abandoned cart recovery for WooCommerce.

Works on every chat channel

This workflow runs the same way on WhatsApp, Instagram, Facebook Messenger, Telegram, the chat on your website and email, with the same WooCommerce connection behind it. See what each channel does on the WooCommerce integration page.

Channel versions: Instagram discount codes.

Answer your first discount question in chat

Connect WooCommerce, paste the recipe, and try one of your own codes with too small a cart.

Start your 7-day free trial. No credit card needed.

Sign up for an annual plan on Growth or above and we’ll set up your workflows and connect WooCommerce for you, free. See plans.