The Coupons tool lets you store discount codes and assign one unique code to each customer through a Flow. Use it for new-customer offers, giveaways, or time-limited promotions. Every group of codes lives inside a Topic Coupon, which acts as a labeled container for all the codes belonging to a single promotion.
Understanding Topic Coupons and Coupons
You must create a Topic Coupon first, then import codes into it. The Set up Coupon Action in a Flow then assigns an available code from that Topic to the current customer.
Create a Topic Coupon
Open Coupons
Select Tools from the left menu, then click the Coupons card.
Open the Topic Coupon tab
Select the Topic Coupon tab. The list shows each Topic’s name, Coupon count, validity period, and Actions menu.
Click Create New
Click + Create New to open the Topic Coupon creation dialog.
Enter topic information
Enter a Name, select a Validity period if the promotion expires, and add a Description if needed.
Save the topic
Click Create to save. If no validity period is selected, the column displays Unlimited.
To edit or archive a Topic Coupon later, open the three-dot menu in the Actions column and choose Edit or Archive. An archived Topic cannot assign new Coupons. Use the Archive tab to restore or delete Topics you no longer need.
Import Codes into a Topic
Prepare the Import File
Download the import template from the Download import template link in the import dialog. The CSV file uses a single column named coupon:
Each row must contain one unique code. Remove duplicate codes and empty rows before uploading.
Import Codes
Open the Coupon tab
On the Coupons page, select the Coupon tab. This page includes Topic, Status, and Usage filters and a Search code field.
Click Import coupons
Click Import coupons to open the import dialog.
Select a Topic
In the Topic field, select the Topic Coupon that will receive the new codes.
Upload the CSV file
Select your prepared CSV file.
Confirm
Click Confirm to import the codes. After import, the Coupon table displays Topic, Code, Status, Usage, and Created At columns.
Use the All topics, All statuses, and All usage filters together with the Search code field to locate specific codes. Click Download Coupon List to export the list with its current statuses.
Distribute Coupons in a Flow
Add a Topic Coupon Action
Open Send Message
Create or open a Send Message block in Flow Builder.
Open Actions
Click Create, then select Actions.
Select Topic Coupon
Open the Tools group and select Topic Coupon.
Select a Type
In the Type field, choose the appropriate action: Select a Topic and continue
In the Topic field, select the Topic Coupon to use, then click Continue to add the Action to the block.
Always run Set up Coupon before sending the Coupon field in a message. If no code has been assigned yet, ChatbotX cannot insert a value into the message.
Send a Coupon Code in a Message
Add Send Text
Add or open Send Text content in the Send Message block.
Write the message
Enter the fixed message text, such as Your discount code:.
Insert the Coupon property
Click the </> icon in the editor. Under the Coupons group, select the Topic Coupon you want to insert. ChatbotX replaces this property at runtime with the code assigned to the customer.
Check a Coupon with a Condition
Use a Condition node to branch the Flow based on a customer’s Coupon status.
Open Add Condition
In the Condition node, click Add Condition.
Select a Topic Coupon field
In the field list, open the Topic coupon group and select the Topic you want to check.
Select an operator
Choose an operator based on what you need to check: Set a comparison value and save
When using Is, select the comparison value in the third field, then click Save.
Track Coupons by Customer
In Contacts, open the filter panel, click Add Condition, and select a Topic Coupon field. Choose Has any value, Used, or Is to generate the list you need. Click Save to apply the filter.
View Coupons in Inbox
Open Inbox, select a customer’s conversation, and expand the Coupons section in the contact profile on the right. Each Coupon card shows the Topic name, the assigned code, and the usage status. Not used yet means the code has not been marked as used.
Example: Distribute a Welcome Coupon to New Customers
You have a Topic named New Customer Welcome - 10% Off with 30 imported codes (WELCOME10001 to WELCOME10030). The Flow starts with an offer message and a Get Coupon button.
Customer clicks Get Coupon
The customer taps the button in your offer message.
Check for existing Coupon
A Condition node uses Has any value to check whether this customer already has a code from the Topic.
Send existing code if already assigned
If the condition matches, the Flow sends the customer’s saved code again so they are not assigned a second one.
Assign a new code if none exists
If the condition does not match, the Flow runs Set up Coupon to assign a new code from the Topic.
Send the assigned code
The Flow sends a message containing the Coupons > New Customer Welcome - 10% Off property, which resolves to the customer’s code.
A Topic Coupon in Archive cannot assign new codes. Confirm that your Topic is active and has enough available codes before starting a campaign.