WooCommerce
Put the AI chatbot on your WooCommerce store and let it check orders, prices and stock, and send checkout and payment links.
- Direction
- In and out
- Sign-in
- A WooCommerce REST API key, saved as a Username and password credential
- Time to set up
- About twenty minutes for the first action
What this does
WooCommerce runs on WordPress, so the WordPress plugin puts the chat widget on every page of your store. The AI chatbot answers from your product pages once it has read your website. Conversation Actions then call WooCommerce's REST API during a website chat, text conversation or phone call, so the AI receptionist can:
- Tell a customer the status of their order, after checking the email on it.
- Give the carrier and tracking number of a shipped order.
- Say the price of a product and whether it is in stock, with a link to its page.
- Send a checkout link with the products already in the cart.
- Create the order in the chat and send the link to pay for it.
A WooCommerce webhook can also start a workflow when an order changes, for example to text the customer when their order is completed.
Before you start
- An administrator login for your WooCommerce store, on
https://. - Settings › Permalinks in WordPress set to any option other than Plain. The REST API address
/wp-json/needs it. - The order and product actions below use the AI chatbot's Conversation Actions. Create an action covers the editor.
Put the chatbot on your store
- Install the plugin
In WordPress, open Plugins, add Small Business Chatbot and activate it. Then open SBC Chatbot and connect your account. WordPress has every screen.
- Let it read your store
Connecting starts a scan of the site, so the AI chatbot can answer from your product, shipping and returns pages. Train the chatbot on your website covers adding pages it missed.
- Turn on Website Research
On Conversation Actions, switch on Website Research. The AI chatbot then searches your store for a product detail it does not have yet, and can link to the product's page. Website Research has the details.
Create a REST API key
- Open REST API keys
In WordPress, open WooCommerce › Settings › Advanced › REST API and click Add key.
- Fill in the key details
- Generate it
Make one key with Read for the lookups and a second with Read/Write for creating orders, so each action has only the access it needs.
Save the key in Small Business Chatbot
- Start a credential
In an action's Send an API request step, under Credential, click New credential.
- Fill it in
Type a Name, such as WooCommerce store. Pick Username and password as the Type. Paste the Consumer key in Username and the Consumer secret in Password.
- Create it
Click Create credential. It is saved for your workspace, encrypted, and every action and workflow can pick it.

The step sends the key as HTTP Basic authentication, which is how WooCommerce takes a key over https://.
In the examples below, replace shop.example.com with your store's address.
Check an order's status
The customer gives their order number and the email they used at checkout. The action reads the order and answers only when the email matches.
| Setting | Value |
|---|---|
| Name | Check order status |
| When to use it | When a customer asks where their order is or what its status is. Ask for the order number and the email used at checkout. |
| Parameters | order_number (Text), email (Text) |
| Step type | Send an API request |
| Step name | find_order |
| Method | GET |
| Address | https://shop.example.com/wp-json/wc/v3/orders/{{parameters.order_number}} |
| Credential | WooCommerce store |
| Fields to keep | status as status, date_created as ordered_on, total as total, billing.email as billing_email |
| Only answer if | billing_email matches email, compare as Text |
| What the agent gets back | status, ordered_on, total |
| What to do with the result | Tell the customer the order status and the date it was placed. |

status is one of pending, processing, on-hold, completed, cancelled, refunded or failed. Text ignores capital letters, so [email protected] matches [email protected]. An order number with no order, or an email that does not match, ends as "not found", and the AI receptionist asks the customer to check what they gave. Verify the customer covers the check.
By default a WooCommerce order number is its ID, so the address above finds it. If a plugin gives your orders their own numbers, use the address https://shop.example.com/wp-json/wc/v3/orders with the query parameter search set to {{parameters.order_number}}, and keep the fields from the first result: 0.status, 0.date_created, 0.total and 0.billing.email.
Give the tracking number
This uses WooCommerce's Shipment Tracking extension, which stores the carrier and tracking number on each order. Make it a second action so a customer whose order has not shipped still gets their order status from the first.
- Copy the order check
Create an action named Get tracking number, with the same parameters and the same
find_orderstep as Check an order's status. The email check stays on the first step. - Add the tracking step
Add a second Send an API request step named
tracking: Method GET, Addresshttps://shop.example.com/wp-json/wc-shipment-tracking/v3/orders/{{parameters.order_number}}/shipment-trackings, Credential WooCommerce store. - Keep the tracking fields
The reply is a list with one entry per shipment. Keep
0.tracking_providerascarrier,0.tracking_numberastracking_numberand0.tracking_linkastracking_link, and tick all three under What the agent gets back.
tracking_link is a whole link on its own, so the AI receptionist can send it to the customer.
Answer price and stock questions
| Setting | Value |
|---|---|
| Name | Check price and stock |
| When to use it | When a customer asks the price of a product or whether it is in stock. |
| Parameters | product_name (Text) |
| Method | GET |
| Address | https://shop.example.com/wp-json/wc/v3/products |
| Query parameters | search = {{parameters.product_name}}, per_page = 3 |
| Credential | WooCommerce store |
| Fields to keep | 0.name as name, 0.price as price, 0.stock_status as stock_status, 0.stock_quantity as stock_quantity, 0.permalink as product_link |
| What the agent gets back | All five |
| What to do with the result | Give the price and say whether it is in stock. Share the product link so they can order. |
stock_status is instock, outofstock or onbackorder. stock_quantity is filled in when the product's stock is managed. To look a product up by its SKU instead, name the parameter sku and use the query parameter sku = {{parameters.sku}}. product_link is the product's own page, with its Add to cart button.
Send a checkout link
WooCommerce opens a checkout link with the products already in the cart:
https://shop.example.com/checkout-link/?products=THROW-LIN-01:2
products takes a product ID or SKU and a quantity, joined by a colon, with a comma between products. Add &coupon=CODE to apply a coupon. The link empties the shopper's cart, adds the products and opens checkout.

To send these links in a conversation, keep them in a lookup table:
- Make the CSV
One row per product, with the SKU as the key and the full link in its own column.
- Add the action
Create an action named Send a checkout link with the parameter
sku, and a Look up in a table step on that table with Value to look up{{parameters.sku}}. - Pass the link
Tick
checkout_linkandnameunder Columns to return and under What the agent gets back.
sku,name,checkout_link
THROW-LIN-01,Linen Throw Blanket,https://shop.example.com/checkout-link/?products=THROW-LIN-01:1
LAMP-CER-02,Ceramic Table Lamp,https://shop.example.com/checkout-link/?products=LAMP-CER-02:1
The AI receptionist sends a link only when it is the whole value of a returned field, so each link sits in a column of its own.
To add a product without emptying the cart, use WooCommerce's add-to-cart link instead: https://shop.example.com/cart/?add-to-cart=123&quantity=1, where 123 is the product ID. WooCommerce checks stock first and shows a notice when the product is out of stock.
Take the order in the chat
With a Read/Write key, an action creates the order in WooCommerce and gets back its payment link. The customer opens the link and pays on your store's own payment page.
| Setting | Value |
|---|---|
| Name | Start an order |
| When to use it | When a customer wants to buy a product in the chat. Ask for the SKU or product, the quantity, their first name and their email. |
| Parameters | sku (Text), quantity (Number), first_name (Text), email (Text) |
| Method | POST |
| Address | https://shop.example.com/wp-json/wc/v3/orders |
| Credential | A Read/Write WooCommerce key |
| Body | JSON, below |
| Fields to keep | id as order_number, total as total, payment_url as pay_link |
| What the agent gets back | All three |
| What to do with the result | Give the order number and total, and send the pay link. |
{
"status": "pending",
"billing": {
"first_name": "{{parameters.first_name}}",
"email": "{{parameters.email}}"
},
"line_items": [
{ "sku": "{{parameters.sku}}", "quantity": {{parameters.quantity}} }
]
}
WooCommerce answers with the new order and its payment_url, such as https://shop.example.com/checkout/order-pay/13/?pay_for_order=true&key=wc_order_…. The order holds the products and the billing name and email. Add shipping and shipping_lines to the body to charge shipping. A shopper who is not signed in may be asked to confirm the order's email on the payment page.
An action that sends POST changes something, so the limits on those runs apply.
Text the customer when an order changes
A WooCommerce webhook sends each order change to a workflow's own URL.
- Make the workflow
In Workflows, create a workflow with the Inbound Webhook trigger, copy its URL and publish it. Inbound webhooks shows each screen.
- Add the webhook in WooCommerce
In WordPress, open WooCommerce › Settings › Advanced › Webhooks and click Add webhook. Type a Name, set Status to Active and Topic to Order updated, paste the workflow's URL in Delivery URL, leave API Version at WP REST API Integration v3, and click Save webhook.

WooCommerce › Settings › Advanced › Webhooks, December 2026 - Capture a sample
Change the status of a test order. In the trigger, click Fetch sample requests. The body is the whole order.
- Map the fields
Add mapping rules:
billing.phonetocontact.phone,billing.first_nametocontact.first_name,billing.emailtocontact.email,statustoorder.statusandnumbertoorder.number. - Branch on the status
Add an If step: Left side
{{trigger.order.status}}, Operator Equals, Right sidecompleted. - Send the text
On the TRUE branch, add a Send Text step, such as "Hi {{trigger.contact.first_name}}, your order {{trigger.order.number}} is complete."
Order updated fires on every change to an order, so the If step picks the change you want. Use Order created for a new order.
If something goes wrong
| What you see | Why | What to do |
|---|---|---|
| Your system answered with status 401. in a test | The key or secret is wrong or was revoked, or the credential's type isn't Username and password | Check the credential, or generate a new key and save it under Edit selected |
| Status 401 with a key you know is right | Your host removes the Authorization header before WordPress sees it | Ask your host to pass the Authorization header through to WordPress |
Status 404 with the code rest_no_route |
Settings › Permalinks is set to Plain, or the address has a typo | Pick any other permalink option and check the address |
| "The API key provided does not have write permissions." when creating an order | The key has Read permission | Use a key with Read/Write |
| "Not found" for an order that exists | A plugin gives orders their own numbers | Use the search query parameter in the tip under Check an order's status |
| The tracking address returns 404 | The Shipment Tracking extension is not active | Install and activate it |
| A checkout link opens a 404 page | The store runs an older WooCommerce | Update WooCommerce, or use the add-to-cart link |

