1. Home
  2. Knowledge Base
  3. Advanced Coupons
  4. Integrations
  5. How to use AI abilities in Advanced Coupons

How to use AI abilities in Advanced Coupons

Managing coupons, store credit and loyalty points usually means clicking through one admin screen at a time. If you work with an AI assistant like Claude or ChatGPT, you can ask it to do that work for you. This article shows the AI abilities in Advanced Coupons, Advanced Coupons Premium and Advanced Loyalty Program, who can use them, and how to connect your assistant.

What you’ll need

  • WordPress 6.9 or newer, where the Abilities API is built in, or an earlier version with the Abilities API feature plugin active.
  • WooCommerce and Advanced Coupons 4.7.4 or newer. This adds 8 abilities.
  • Optional: Advanced Coupons Premium 4.0.9 or newer. This adds 9 more abilities.
  • Optional: Advanced Loyalty Program 1.9.3 or newer. This adds 14 more abilities.
  • A connection between your AI assistant and your store. The easiest route is StoreAgent 1.1.9 or newer, connected, with MCP turned on. See How to connect ChatGPT or Claude to your store with MCP. You can also use an MCP adapter plugin (see the WordPress MCP adapter guide).
  • An administrator or shop manager account. Your assistant acts as that signed-in user.

What AI abilities are

An ability is an action that a plugin lets an AI assistant take in your store, through the WordPress Abilities API. Some abilities only read data, such as listing your coupons. Others make changes, such as creating a coupon or adjusting a customer’s store credit. All Advanced Coupons abilities share one Advanced Coupons source, so your assistant finds them in one place.

Connect your AI assistant

Step 1: Connect the assistant to your store

  1. Follow How to connect ChatGPT or Claude to your store with MCP to connect Claude or ChatGPT through StoreAgent.
  2. In your assistant, ask what it can do with your coupons.
  3. Start with a read-only request, such as “list my active coupons”, to confirm the connection works.

If you use an MCP adapter plugin instead of StoreAgent, follow that adapter’s own connection steps, then ask your assistant what it can do with your coupons.

Step 2 (optional): Let the assistant make changes

Two settings in StoreAgent decide whether your assistant can make changes. Both must allow it.

Your connection must be approved as Read and write. If you approved it as Read-only, choose Revoke on the assistant’s row on the Connections sub-tab, then connect again and approve Read and write. A Read-only connection never sees the abilities that make changes.

Then switch on the abilities that make changes:

  1. Go to StoreAgent > Settings > MCP and open the Abilities sub-tab.
  2. In Ability allowlist, select the Advanced Coupons source.
  3. Switch on each Makes changes ability that you want your assistant to use.
StoreAgent Ability allowlist with the Advanced Coupons source selected. The Read only abilities are switched on and the abilities that make changes are switched off.

Read only abilities from the Advanced Coupons source are on by default. Each ability that makes changes stays off until you switch it on.

What your assistant can do

Advanced Coupons and its add-ons register 31 abilities: 14 are Read only and 17 make changes. Your assistant may show an ability by its technical name, shown in the Name column.

Advanced Coupons

AbilityNameType
List couponsadvanced-coupons/list-couponsRead only
Get couponadvanced-coupons/get-couponRead only
Get coupons summaryadvanced-coupons/get-coupons-summaryRead only
Create couponadvanced-coupons/create-couponMakes changes
Update couponadvanced-coupons/update-couponMakes changes
Delete couponadvanced-coupons/delete-couponMakes changes
Set coupon URL triggeradvanced-coupons/set-coupon-urlMakes changes
Set coupon scheduleadvanced-coupons/set-coupon-scheduleMakes changes

Advanced Coupons Premium

AbilityNameType
List store creditsadvanced-coupons/list-store-creditsRead only
Get store credit ledgeradvanced-coupons/get-store-credit-ledgerRead only
Export couponsadvanced-coupons/export-couponsRead only
Create cashback couponadvanced-coupons/create-cashback-couponMakes changes
Create add products couponadvanced-coupons/create-add-products-couponMakes changes
Set shipping overrideadvanced-coupons/set-shipping-overrideMakes changes
Set recurring scheduleadvanced-coupons/set-recurring-scheduleMakes changes
Set auto applyadvanced-coupons/set-auto-applyMakes changes
Adjust store creditadvanced-coupons/adjust-store-creditMakes changes

Advanced Loyalty Program

AbilityNameType
Get Loyalty Points Balanceadvanced-coupons/get-loyalty-balanceRead only
List Top Loyalty Customersadvanced-coupons/list-top-loyalty-customersRead only
Get Loyalty Points Ledgeradvanced-coupons/get-loyalty-points-ledgerRead only
List Loyalty Earn Rulesadvanced-coupons/list-loyalty-earn-rulesRead only
Get Loyalty Redemption Settingsadvanced-coupons/get-loyalty-redemption-settingsRead only
Get Loyalty Program Overviewadvanced-coupons/get-loyalty-program-overviewRead only
Get Loyalty ROI Reportadvanced-coupons/get-loyalty-roi-reportRead only
Get Expiring Loyalty Pointsadvanced-coupons/get-expiring-loyalty-pointsRead only
Adjust Loyalty Pointsadvanced-coupons/adjust-loyalty-pointsMakes changes
Create Loyalty Earn Ruleadvanced-coupons/create-loyalty-earn-ruleMakes changes
Update Loyalty Earn Ruleadvanced-coupons/update-loyalty-earn-ruleMakes changes
Toggle Loyalty Earn Ruleadvanced-coupons/toggle-loyalty-earn-ruleMakes changes
Update Loyalty Redemption Settingsadvanced-coupons/update-loyalty-redemption-settingsMakes changes
Issue Loyalty Bonus Pointsadvanced-coupons/issue-loyalty-bonus-pointsMakes changes

You can ask your assistant things like “show me every coupon expiring this month”, “create a 15% off coupon called SPRING15 that expires in 30 days”, “give [email protected] 20 dollars of store credit for the late delivery”, or “who are my top 10 loyalty customers?”. It uses the matching ability to answer or act.

When your assistant creates or updates a coupon, it uses the same save process as the Advanced Coupons edit screen. Coupons made this way behave the same as coupons you create by hand.

Abilities that need a module

Some abilities work only when their module is turned on under Coupons > Settings > Modules. If the module is off, the ability returns a message and makes no change.

  • Set coupon URL trigger needs the URL Coupons module (see How to apply a coupon with a URL).
  • Set coupon schedule and Set recurring schedule need the Scheduler module (see How to schedule coupons).
  • Set auto apply needs the Auto Apply module.
  • Create cashback coupon, List store credits, Get store credit ledger and Adjust store credit need the Store Credits module.

Who can use each ability

All 31 abilities need an administrator or shop manager account, including the Read only ones. Customer and subscriber accounts cannot use any of them.

The abilities that make changes are marked as destructive. Your assistant may ask you to confirm before it runs one. Whether it asks is up to the assistant.

Troubleshooting

The assistant does not list any Advanced Coupons abilities

Update Advanced Coupons to 4.7.4 or newer, and check that you run WordPress 6.9 or newer, where the Abilities API is built in, or an earlier version with the Abilities API feature plugin active. If they still do not appear, ask your developer to check that no disable switch is set. See “Turn abilities off (for developers)” below.

The assistant cannot create or change anything

Approve the StoreAgent connection again as Read and write, then switch on the ability for the Advanced Coupons source on the Abilities sub-tab. Both are needed.

The Premium or Loyalty abilities are missing

Check that the plugin is active and up to date: Advanced Coupons Premium 4.0.9 or newer, or Advanced Loyalty Program 1.9.3 or newer.

The assistant says a module is not enabled

Turn on that module under Coupons > Settings > Modules, then ask again. The message names the module, for example “The Store Credits module is not enabled.”

Frequently asked questions

Which AI assistants does this work with?
Any assistant that supports MCP, such as Claude or ChatGPT, once you connect it to your store through StoreAgent or an MCP adapter.

Can my AI assistant see customer or order data through this?
Yes, some abilities do. The Store Credits and Loyalty abilities show customer balances and details, and Get coupons summary shows discount and revenue totals. That is why every ability needs an administrator or shop manager account.

Will coupons my assistant creates behave differently from ones I make manually?
No. They are saved through the same process as the coupon edit screen, so they behave the same.

Do I need to write any code to use this?
No. You only need WordPress 6.9 or newer, WooCommerce, Advanced Coupons, and StoreAgent or an MCP adapter. Code is involved only if you want to turn the abilities off.

Why do all the abilities use the advanced-coupons name?
Advanced Coupons and its add-ons share one name, so your assistant sees one set of abilities across all the plugins. The Loyalty abilities include “loyalty” in their names, so they are easy to find.

Turn abilities off (for developers)

Each plugin has its own switch. A switch only turns off the abilities of its own plugin. Add the constant to wp-config.php, or use the filter in code. You need only one of the two.

Advanced Coupons:

define( 'ACFWF_DISABLE_ABILITIES', true );

// Or use the filter:
add_filter( 'acfwf_disable_abilities', '__return_true' );

Advanced Coupons Premium: the constant starts with ACFW_, not ACFWP_.

define( 'ACFW_DISABLE_ABILITIES', true );

// Or use the filter:
add_filter( 'acfwp_disable_abilities', '__return_true' );

Advanced Loyalty Program:

define( 'LPFW_DISABLE_ABILITIES', true );

// Or use the filter:
add_filter( 'lpfw_disable_abilities', '__return_true' );

Need help?

If you have a question or run into any issues, we’re here to help.

Was this article helpful?

Related Articles

Complete Your Purchase