R
Smart COD for WooCommerce Content

Restrict by stock

Restrict by stock

What it does

Restrict by stock It is one of the abilities the Smart COD for WooCommerce plugin exposes, so an AI agent connected to your site can run it for you.

Input schema

FieldTypeRequiredDescription
input string Required What you want this ability to do, in plain language.

Output schema

FieldTypeDescription
result string The result produced by the ability.

Permissions

The agent's WordPress user needs these capabilities. Grant only what's listed here, never a full admin account.

πŸ”’ edit_posts

How an agent calls it

Agents call this ability by name and pass the inputs it needs. A call looks roughly like this:

wc-smart-cod.restrict-by-stock
{
  "ability": "wc-smart-cod.restrict-by-stock",
  "args": { "input": ... }
}

The agent runs the ability, then hands the result back for you to review before anything is published.

Keep exploring

More Smart COD for WooCommerce abilities

All Smart COD for WooCommerce abilities β†’
R
Restrict by cart amount range
Smart COD for WooCommerce
Restrict by cart amount range
R
Restrict by product weight
Smart COD for WooCommerce
Restrict by product weight
R
Restrict by customer
Smart COD for WooCommerce
Restrict by customer
R
Restrict by customer email
Smart COD for WooCommerce
Restrict by customer email
R
Restrict by customer phone
Smart COD for WooCommerce
Restrict by customer phone