Checking For Coupon Code Abuse Using ChatGPT

To check for coupon code abuse, set up a workflow that triggers on order creation and saves order information to Mesa data store. Then, run a query to group data by day, comparing total price spent on orders and total discounts for each day. 

Use the GPT-4 API to analyze the results and determine if the most recent day’s discount rate is higher than usual. If the answer is “yes,” an email will be triggered to notify you of potential coupon code abuse, allowing you to take appropriate action.

Watch The Demo

Workflow 1: Save Order Discount Data

Workflow 2: Check For Coupon Code Abuse

How do I use this demo file?

  1. Add MESA from the Shopify App Store. Enjoy a 7-day free trial to start.
  2. Import this download to My Workflows. Navigate to your automations then follow the prompt to import a workflow. Upload the downloaded ZIP file from this demo.
  3. That's it! Personalize any step if you want. You got this.
  4. Questions? Shoot me an email: [email protected]
We literally wrote the book on Shopify automation

Learn how to make Shopify work easier with your business processes.

Get the playbook - Free!

shopify automation playbook PDF