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

Ask your AI assistant to create coupons, adjust store credit, issue gift cards, check what your store owes on gift cards and look up loyalty points, without clicking through one admin screen at a time. If you work with an assistant like Claude or ChatGPT, you can connect it to your store and let it do that work for you.

The abilities come from Advanced Coupons, Advanced Coupons Premium, Advanced Gift Cards for WooCommerce and Advanced Loyalty Program. Each plugin adds its own set, and your assistant can use them once it is connected to your store with an administrator or shop manager account.

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.
  • Optional: Advanced Gift Cards for WooCommerce 1.4.5 or newer. This adds 9 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 on the MCP Abilities sub-tab with the Advanced Coupons source selected. Read only abilities, including List Gift Cards, Get Gift Card and Get Gift Card Liability, are switched on and the abilities that make changes are switched off.
StoreAgent > Settings > MCP > Abilities: the Advanced Coupons source lists the abilities from Advanced Coupons and its add-ons together. This image shows the first page of the list.

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 40 abilities: 18 are Read only and 22 make changes. The Ability column uses the label your assistant shows for each ability, so some labels are capitalised differently, for example List coupons and List Gift Cards. Your assistant may also 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

Advanced Gift Cards

AbilityNameType
List Gift Cardsadvanced-coupons/list-gift-cardsRead only
Get Gift Cardadvanced-coupons/get-gift-cardRead only
Get Gift Card Liabilityadvanced-coupons/get-gift-card-liabilityRead only
List Giftable Productsadvanced-coupons/list-giftable-productsRead only
Issue Gift Cardadvanced-coupons/issue-gift-cardMakes changes
Adjust Gift Card Balanceadvanced-coupons/adjust-gift-card-balanceMakes changes
Disable Gift Cardadvanced-coupons/disable-gift-cardMakes changes
Resend Gift Card Emailadvanced-coupons/resend-gift-card-emailMakes changes
Update Giftable Productadvanced-coupons/update-giftable-productMakes 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”, “who are my top 10 loyalty customers?”, or “how much outstanding gift card balance do we have?”. 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. The gift card abilities work the same way: they use the same process as the gift card screens in your admin, so the same delivery emails are sent.

How the gift card abilities behave

Some of these abilities use the gift card statuses Pending, Redeemed, Invalid and Expired. You can see and set these statuses on each gift card in your admin. See How to manually create a gift card.

  • Issue Gift Card needs an amount greater than zero and a valid recipient email address. It can also set the recipient’s name, a personal message, a specific code, the customer account, an expiry date and an internal note. The card is created with the Pending status and the delivery email is sent straight away.
  • Adjust Gift Card Balance adds or subtracts an amount from the current balance, for example -5 on a $25 card leaves $20. Every adjustment needs a reason, which is saved as the gift card’s note. An adjustment that would take the balance below zero is refused.
  • Disable Gift Card stops the card from being redeemed but keeps its balance. Its status shows as Invalid in your admin.
  • Resend Gift Card Email sends the delivery email again to the recipient saved on the card.
  • Update Giftable Product changes a gift card product’s amount, custom amount options, expiry, delivery date option and email design. Only the settings you mention are changed. Gift card products with variations are not supported.
  • Get Gift Card Liability reports the total value of Pending gift cards, which is the amount your store still owes, with counts and totals for each status.

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 40 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, Gift Cards or Loyalty abilities are missing

Check that the plugin is active and up to date: Advanced Coupons Premium 4.0.9 or newer, Advanced Gift Cards for WooCommerce 1.4.5 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.”

The assistant cannot update a gift card product

Update Giftable Product only works on gift card products without variations. Open the product in Products and set the amount and gift card options on each variation instead.

The assistant cannot resend a gift card email

The gift card has no recipient email address saved. Check the gift card in Coupons > Advanced Gift Cards. To send it to a new address, ask your assistant to issue a new gift card to that address and disable the old one.

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, the gift card abilities show recipient names and email addresses, 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, and the gift card abilities include “gift-card” or “giftable”, so they are easy to find.

Can my assistant delete a gift card?
No. There is no delete ability for gift cards. To stop a gift card from being used, ask your assistant to disable it. The card and its history stay in your records.

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' );

Advanced Gift Cards for WooCommerce:

define( 'AGCFW_DISABLE_ABILITIES', true );

// Or use the filter:
add_filter( 'agcfw_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