Connect WooCommerce to ChatGPT

Connect your WooCommerce store to ChatGPT with the Windsor.ai plugin.

Ask ChatGPT about orders, net sales, refunds, coupons and stock in plain English, without exporting reports from the WordPress admin. With a Read/Write API key, ChatGPT can also update products, change order statuses, add order notes and create coupons.

No code required.

Free forever plan No credit card needed
logo connect
Windsor.ai is your proven WooCommerce to ChatGPT connector
google cloud
meta partner
google partner
snowflake
users love us
medal
soc2
google cloud
meta partner
google partner
snowflake
users love us
medal
soc2

Ask ChatGPT about your WooCommerce store

With the Windsor.ai plugin, ChatGPT reads your WooCommerce orders, order items, order attribution, refunds, coupons, products and customers.

Report sales by week

Ask ChatGPT for WooCommerce net sales, discounts, shipping and order count by week for orders created in the last 30 days. List WooCommerce refunds in a separate question.

Find best sellers and low stock

List the WooCommerce products with the highest total sales next to their stock quantity to find best sellers with only a few units left.

Compare sales with ad spend

Connect Google Ads and Meta Ads as well, then ask ChatGPT to show WooCommerce net sales next to each platform’s spend for the same days, with net sales divided by spend. Keeping three sources connected after your first 30 days needs a paid plan, from $19/month billed annually.

Find returning customers

Group WooCommerce orders by billing email to see who has bought more than once, what they bought and when they last ordered. Questions that look back further than 30 days need a paid plan.

How ChatGPT reads your WooCommerce data through Windsor.ai

Supported fields: 73 metrics352 dimensions

You add a WooCommerce REST API key and your store’s domain in Windsor.ai once. Windsor.ai can then read your orders, order items, order attribution, refunds, coupons, products and variations, customers and product reviews. The WooCommerce field reference lists every field.

Net sales on an order is the order total minus shipping and tax, with discounts already taken off. Refunds are a separate table and are not taken off net sales, so ask for them in a separate question. Each order has a created, paid, completed and modified date. Name the one you want in your prompt, such as the created date for sales by order date. On our test store, orders were dated by when they were last modified when the prompt named no date.

Through Windsor.ai, ChatGPT can run four write actions in WooCommerce, listed below. They need an API key with Read/Write permission.

ChatGPT shows WooCommerce net sales, discounts and shipping by week through the Windsor.ai plugin

Available actions


Update Product

Update a product in the connected WooCommerce store. product_id is the numeric ID from the Products table. Only the fields provided are changed, with one exception: if regular_price is set at or below the current sale price, WooCommerce clears sale_price and the sale ends. Prices are decimal strings with a dot, for example '19.99'. Send sale_price '' to end a sale. stock_quantity takes effect only when manage_stock is true. Variable products keep their prices and stock on their variations, which this action does not change. To revert, run update_product again with the previous values, including sale_price.

Parameters
product_idintegerRequiredregular_pricestringsale_pricestringstock_quantitystringmanage_stockstringstock_statusstringstatusstringnamestringdescriptionstringshort_descriptionstring
Update Order Status

Change the status of an order in the connected WooCommerce store. order_id is the numeric ID from the Orders table. WooCommerce sends its usual emails for the new status, for example the 'order completed' email to the customer. Status 'refunded' records a full refund in WooCommerce but does not return money through the payment gateway. A later status change keeps that refund, so delete the refund in the store admin to undo it. For any other status, run update_order_status again with the previous status to revert.

Parameters
order_idintegerRequiredstatusstringRequired
Add Order Note

Add a note to an order in the connected WooCommerce store. order_id is the numeric ID from the Orders table. A note with customer_note false is private to the store staff. With customer_note true, WooCommerce shows the note to the customer and emails it to them. Each call adds a new note. Delete a note in the store admin.

Parameters
order_idintegerRequirednotestringRequiredcustomer_noteboolean
Create Coupon

Create a coupon in the connected WooCommerce store. Customers can use it at checkout as soon as it exists. discount_type 'percent' takes amount as a percentage, 'fixed_cart' as a sum off the cart, 'fixed_product' as a sum off each product. amount is a decimal string with a dot, for example '10' or '5.50'. The coupon stops working at 00:00 store time on date_expires. WooCommerce refuses a code that already exists. Change or delete the coupon in the store admin.

Parameters
codestringRequireddiscount_typestringRequiredamountstringRequireddate_expiresstringusage_limitstringindividual_usestringexclude_sale_itemsstring
Join 40,000+ businesses that trust Windsor.ai to streamline WooCommerce to ChatGPT integration
audi logo
colgate
asics
roche
novo nordisk logo
UBS
unicef
verisure
wpp
club med
skoda
heineken
puma
audi logo
colgate
asics
roche
novo nordisk logo
UBS
unicef
verisure
wpp
club med
skoda
heineken
puma

How to connect WooCommerce to ChatGPT with Windsor.ai

Watch the video and follow the step-by-step guide to connecting WooCommerce to ChatGPT to add your store and the Windsor.ai plugin.

1

Connect WooCommerce in Windsor.ai

In your WordPress admin, go to WooCommerce > Settings > Advanced > REST API and click Add Key. Choose Read for reports, or Read/Write if ChatGPT should also make changes, then click Generate API Key. Open the WooCommerce connector page in Windsor.ai, enter the consumer key as Customer Key, the consumer secret as Customer Secret and your store’s domain as Shop Name, and select Add Account.

Connect WooCommerce to Windsor.ai with a consumer key, consumer secret and shop domain
Connect Windsor.ai pop-up in the ChatGPT Plugins page
ChatGPT lists WooCommerce orders by created date through Windsor.ai

FAQs

How do I connect WooCommerce to ChatGPT?

Create a REST API key under WooCommerce > Settings > Advanced > REST API. Add the consumer key, consumer secret and your store’s domain in Windsor.ai and select Add Account. Then open Plugins in the ChatGPT sidebar, search for Windsor.ai, install the plugin and sign in. Type @Windsor.ai in a chat to ask about your store.

Tired of manual WooCommerce data exports? Try Windsor.ai today to automate your reporting

Access your data from various sources in one place. Get started for free.
g logo
fb logo
big query data
youtube logo
power logo
looker logo