Connect WooCommerce to your Wiro AI agent
Products, orders, coupons and customers in your WooCommerce store.
Set up a 15% win-back coupon: one use per customer, $40 minimum spend, valid for two weeks.
No coupon named COMEBACK15 existed yet, so I created it on Tallow & Pine once you said yes: 15% off the cart, $40 minimum spend, one use per customer, expiring December 8. It works from now on. If it should reach only lapsed buyers, I can limit it to their email addresses.
Overview
What WooCommerce does for your agent
Talks to your store's REST API with a consumer key and secret made in WooCommerce's advanced settings. The agent creates and edits products and their variations, changes order status and details, adds order notes, records refunds, creates coupons, and reads customers along with sales and top-seller reports. The store must answer on a public HTTPS address, and a host or security plugin that blocks REST API calls or strips the authorization header breaks the connection.
Use cases
What your Wiro agent can do with WooCommerce
- 01
Weekly sales report with the top-selling products
Every Monday a Scheduled Task reads last week's WooCommerce sales report, with orders, items, refunds, discounts and shipping day by day, adds the top-selling products, and posts the summary in Chat with the change from the week before.
- 02
Email tracking numbers and complete shipped orders
Give the agent order numbers with their tracking numbers. It adds a customer note with the tracking to each order, which WooCommerce emails to the buyer, then sets the order to completed. Both steps wait for your approval in Chat unless you allow them.
- 03
A win-back coupon for lapsed customers
Ask for a 15% coupon that expires in 14 days, can be used once per customer and needs a minimum spend. The agent checks that the code is free, creates it, and can limit it to the email addresses of the customers you want back.
- 04
Morning list of out-of-stock and backordered products
Each morning a Scheduled Task lists the products that are out of stock or on backorder, with SKU, stock count and sales count, and posts it in Chat so you can reorder before the weekend rush.
- 05
Partial refunds that restock the items
Tell the agent which items to refund on an order and why. It records the refund, sends the money back through the payment gateway only when you say so, and can put the refunded items back in stock. Refunds cannot be undone, so each one asks for your approval in Chat by default.
- 06
New product lines with categories and variations
Describe a new range and the agent adds any missing categories, tags or attribute values, then creates each product as a draft with images, prices and variations such as size and color, ready for you to publish.
How it works
How WooCommerce works with Wiro
- 01
Connect WooCommerce
Deploy an agent, open its Connectors tab, choose WooCommerce and paste what the Connect dialog asks for.
- 02
Choose what each action may do
Set each WooCommerce action to Allow, Ask or Block, in Chat and in Scheduled Tasks. By default, read-only actions run, and the rest ask first in Chat.
- 03
Ask in Chat or schedule it
Ask your agent for WooCommerce work in Chat, or put it on a Scheduled Task that runs on its own.
- Where it runsInside your agent. Its requests go straight from the agent to WooCommerce.
- Where its data goesThe site you connect
- How it signs inPaste a key. It is stored encrypted and never shown again.
What it can do
Actions your Wiro agent can take in WooCommerce
By default, read-only actions run, and the rest ask first in Chat and run in Scheduled Tasks. Each agent can set any action to Allow, Ask or Block.
Read-only 9 actions
Looks things up in WooCommerce and changes nothing.
List WooCommerce products
Lists the store's products, newest first by default: id, name, type, status, SKU, prices, sale, stock, number of variations, categories, sales count and link.
Chat AllowScheduled Tasks Allow
Get a WooCommerce product
One product with everything needed to edit it.
Chat AllowScheduled Tasks Allow
List WooCommerce orders
Lists orders, newest first: number, status, dates, total, currency, customer id, payment method, the items with quantities and refunds.
Chat AllowScheduled Tasks Allow
Get a WooCommerce order
One order with its line items (ids for refunds), shipping, fees, coupons, totals, payment method and refunds.
Chat AllowScheduled Tasks Allow
List WooCommerce coupons
Lists coupons with their code, discount type and amount, expiry, usage and limits, and restrictions.
Chat AllowScheduled Tasks Allow
List WooCommerce customers
Lists customers (store users) with id, email, name, user name, role and whether they have paid for an order.
Chat AllowScheduled Tasks Allow
Get a WooCommerce report
A store report.
Chat AllowScheduled Tasks Allow
List WooCommerce categories, tags, attributes or shipping classes
Lists product categories, tags, global attributes, an attribute's values or shipping classes, with ids, names, slugs and product counts.
Chat AllowScheduled Tasks Allow
Read other WooCommerce data
Reads what the actions above do not cover, straight from the WooCommerce API.
Chat AllowScheduled Tasks Allow
Create and send 4 actions
Creates or sends something new in WooCommerce, such as a post, a message or an email.
Create a WooCommerce product
Creates a product, as a draft unless status says otherwise (publish puts it on sale).
Chat AskScheduled Tasks Allow
Add a note to a WooCommerce order
Adds a note to an order.
Chat AskScheduled Tasks Allow
Create a WooCommerce coupon
Creates a coupon: its code, a percent, fixed cart or fixed product discount, and optional expiry, usage limits, minimum and maximum spend, products, categories and allowed emails.
Chat AskScheduled Tasks Allow
Create a WooCommerce category, tag, attribute value or shipping class
Creates a product category, tag, attribute value or shipping class, and returns its id.
Chat AskScheduled Tasks Allow
Change and delete 4 actions
Changes or deletes what is already in WooCommerce.
Update a WooCommerce product or variation
Changes a product, or one of its variations.
Chat AskScheduled Tasks Allow
Update a WooCommerce order
Changes an order's status, customer note, or billing and shipping details.
Chat AskScheduled Tasks Allow
Refund a WooCommerce order
Records a refund on an order: an amount, a reason, and optionally which line items and quantities.
Chat AskScheduled Tasks Allow
Make other WooCommerce changes
Sends any other change straight to the WooCommerce API.
Chat AskScheduled Tasks Allow
How to connect
Connect WooCommerce to Wiro
Open the agent's Connectors tab, choose WooCommerce and paste what it asks for. Values are stored encrypted and never shown again.
What the Connect dialog asks for
| Field | About |
|---|---|
| Store URLRequired | Enter the public HTTPS base URL of the WooCommerce store, including any WordPress subdirectory and without
|
| Consumer KeyRequired |
|
| Consumer SecretRequired | Copy the consumer secret generated with the REST API key. It is shown only once. Keep it separate from the store URL; authentication is sent with HTTPS Basic Auth and never as URL query parameters. |
Troubleshooting
Troubleshooting WooCommerce
What to check when WooCommerce stops working for your agent.
- An invalid or expired key If WooCommerce refuses the key, for example after it was deleted or expired, the agent's WooCommerce actions fail. Create a new key in WooCommerce, then open the agent's Connectors tab, choose WooCommerce and paste it in place of the old one.
- Limits set by WooCommerce WooCommerce limits how much an account can do, such as how many requests it takes in a minute. An action over a limit fails until the limit resets: wait and ask again, or check your WooCommerce plan.
For developers
Connect WooCommerce from your own product
Every call is a POST to the Wiro API with your project's API key. On a sign-in, your customers see your own app's name.
- 01
Read the connector
Detail answers without a session: what the connector needs and the tools it gives an agent.
POST /AgentConnector/Detail { "slug": "woocommerce" }Response { "result": true, "errors": [], "agentconnectors": [ { "slug": "woocommerce", "title": "WooCommerce", "category": "commerce", "authtype": "fields", "credentialfields": [ { "name": "storeurl", "label": "Store URL", "required": true, "secret": false, "format": "url" }, { "name": "consumerkey", "label": "Consumer Key", "required": true, "secret": true, "format": "password" }, { "name": "consumersecret", "label": "Consumer Secret", "required": true, "secret": true, "format": "password" } ], "tools": [ { "name": "list_products", "readonly": true }, { "name": "get_product", "readonly": true } ] } ] } - 02
Connect with the values
Send what the person typed in your form. A value you leave out keeps what the connection holds; an empty one clears it.
POST /UserAgent/ConnectorConnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "woocommerce", "values": { "storeurl": "https://example.com", "consumerkey": "YOUR_SECRET", "consumersecret": "YOUR_SECRET" } }Response { "result": true, "errors": [], "status": "connected", "applied": 1, "restart": "scheduled" } - 03
Read the status
connected, pending (a sign-in not finished), reauth (sign in again) or error. Values and tokens never come back.
POST /UserAgent/ConnectorList { "useragentguid": "YOUR_AGENT_GUID" }Response { "result": true, "errors": [], "useragentconnectors": [ { "slug": "woocommerce", "title": "WooCommerce", "authtype": "fields", "status": "connected", "accounts": {}, "savedvariables": [ "consumerkey", "consumersecret", "storeurl" ], "lasterror": null } ] } - 04
Disconnect
Revokes a sign-in where the vendor allows it, deletes what the connection holds and removes the connector from the running agent.
POST /UserAgent/ConnectorDisconnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "woocommerce" }Response { "result": true, "errors": [], "removed": true, "revoked": false, "restart": "scheduled" }
Questions
WooCommerce and Wiro FAQ
What can a WooCommerce AI agent do for my store?
It reads products and variations, orders, coupons, customers and store reports, and it can create and edit products, change an order's status or details, add order notes, record refunds, create coupons and add categories, tags, attribute values and shipping classes. For the rest of the WooCommerce REST API, such as store settings or moving a product to the trash, it can send the request itself. Webhooks, payment gateways and system status tools are left alone.
How do I connect WooCommerce to an AI agent?
In WordPress, open WooCommerce → Settings → Advanced → REST API and add a key for a store user, choosing Read/Write if the agent should make changes. Copy the consumer key and secret while they are on screen, since WooCommerce shows them only once. Then choose WooCommerce on the agent's Connectors tab, or ask the agent in Chat to add it, and paste your store's HTTPS address with the two values. There is no sign-in window: the key is how WooCommerce connects.
What does my store need for the connection to work?
A public HTTPS address with the WooCommerce REST API reachable. Plain HTTP, localhost and private network addresses are refused. The key travels in an HTTPS authorization header, so if your host or a security plugin strips that header or blocks REST API calls, the connection check fails until it lets them through. A key made for a dedicated user with only the permissions you need keeps the agent's reach small.
Can the agent refund orders or email customers without approval?
In Chat it asks first: product edits, order changes, notes, refunds and new coupons all wait for approval by default. In Scheduled Tasks those actions run unless you set them to Ask or Block, and each action has its own setting for Chat and for Scheduled Tasks on the agent's Connectors tab. WooCommerce also sends its own emails: a note marked for the customer is emailed, a status such as completed can email the buyer, and a refund moves money only when the agent is told to use the payment gateway.
Where are my WooCommerce API keys stored?
The consumer key and secret are kept encrypted and sent only to your store over HTTPS, never inside the address. The AI model never sees them. To cut the agent off at once, revoke the key under the REST API settings in WooCommerce, then disconnect WooCommerce on the Connectors tab.
Do I need a WooCommerce MCP plugin or server?
No. The WooCommerce MCP connector runs inside your agent and talks to the REST API that WooCommerce already includes, so there is no WordPress plugin to install and no server to run. The REST API key is all it needs.
Does it cost extra to automate WooCommerce with an agent?
No. Connectors come at no extra cost on every agent plan. The requests run against your own hosting, so your host's limits apply, and a large catalog or order history is read in pages rather than in one request.
Access
Revoke WooCommerce access
In WordPress, open WooCommerce → Settings → Advanced → REST API, hover over the key and click Revoke: requests with it fail at once. Then disconnect it here.
Related connectors
More commerce connectors for your Wiro agent
Put WooCommerce to work with Wiro
Deploy an agent and connect WooCommerce from its Connectors tab. Every agent plan includes it: Starter $5, Pro $30 and Max $100 a month.