Give a Discount Code in Chat with Attentive

By Alva Chew 5 min read Updated November 12, 2026

Yes. AeroChat works directly with Attentive. When a shopper asks for a discount code, AeroChat checks in Attentive whether they get your texts or emails, gives them the code you approved, and sends the request to Attentive as a custom event your journeys can use.

This recipe answers “do you have a code?” in WhatsApp, Instagram or web chat, and turns non-subscribers into subscribers on the way. Part of connecting Attentive to WhatsApp and AI chat.

What happens today

A shopper with a full cart asks in chat if there is a code. If nobody answers quickly, they search coupon sites, find an expired code and leave. If someone does answer, they often hand out a code to everyone who asks, and your subscriber offer stops meaning anything.

The flow that works

  1. The shopper asks for a discount code.
  2. AeroChat looks them up in Attentive by phone or email.
  3. If they get your marketing texts or emails, it gives them your subscriber code.
  4. If they do not, it offers to sign them up with clear consent, then gives the code.
  5. It sends a custom event to Attentive, so a journey you built can follow up if the code is not used.

What it looks like on WhatsApp

Customer: Hi, is there a discount code? (example)

AeroChat: Our subscribers get 10% off their order. You’re not on our text list yet. Would you like to join? You’ll get recurring marketing texts from Fernwood Home, message frequency varies, and you can reply STOP at any time.

Customer: Sure

AeroChat: Welcome. Your code is WELCOME10 (example). Enter it at checkout for 10% off. A confirmation text from us is on its way.

In Attentive: a marketing text subscription is created through the chat sign-up unit, and a “Chat discount requested” custom event is recorded with the code.

The recipe

Copy this into AeroChat

When a shopper asks for a discount, coupon or promo code, follow these steps.

  1. Look them up in Attentive by the phone number they are messaging from or the email they give.
  2. If they already get our marketing texts or emails, give them the code WELCOME10 (example) and say it gives 10% off at checkout.
  3. If they do not, tell them subscribers get the code and offer to sign them up. Give the consent wording and only continue on a clear yes.
  4. Subscribe them to marketing texts in Attentive through our chat sign-up unit, then give the code.
  5. Send a custom event called “Chat discount requested” to Attentive with the code.

If they do not want to subscribe, tell them politely the code is for subscribers. Never invent a code, change the amount or give a bigger discount. Reply in the customer’s language.

Replace the example code and amount with your own offer before you paste it. You can build an Attentive journey triggered by the “Chat discount requested” event, for example a reminder text if no order follows.

What to connect

  • Your Shopify store. Built in. Install AeroChat from the Shopify App Store and connect your store in the dashboard. Create the discount code in Shopify, so it works at checkout.
  • Attentive. On the Integrations page in Attentive, click Create App, set Subscribers and Custom Events to Write, and copy the API key. Copy your chat sign-up unit ID from the Sign-up Units tab. Paste both in when AeroChat asks.

After you paste the recipe, AeroChat builds the workflow as a draft and shows a checklist: connect Attentive, then switch it on. If it built the connection from Attentive’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 code AeroChat gives, how much it is worth and who gets it.
  • Whether non-subscribers can get a code at all.
  • What your Attentive journey sends after the code is given.

The result to expect

Shoppers who ask for a code get the right one in seconds, and the ones who are not on your list join it to get it. Your subscriber offer stays a subscriber offer.

Measure it with your own numbers: chat sign-ups in Attentive and orders that used the chat code, for a month before and after.

Next: see every Attentive workflow, including taking text sign-ups.

Works on every chat channel

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

Give your subscriber code in chat

Install AeroChat, paste the recipe with your own code, add your Attentive key, and ask your own chat for a discount.

Install AeroChat on Shopify

7-day free trial.