Sync WooCommerce with YourGPT Using Webhooks
Keep your WooCommerce store in perfect sync with YourGPT. If you're integrating AI with a WooCommerce-powered store, maintaining real-time data synchronization is essential.
This recipe explains how to set up webhook URLs that trigger updates whenever product or customer data changes โ ensuring YourGPT always has the most current information from your store.
๐ ๏ธ Prerequisites
Before you begin, ensure the following:
โ You have a WooCommerce store installed and active (version 5.0 or later)
โ You have Administrator access to your WordPress dashboard
โ You have your YourGPT webhook integration ID (replace
wc-10-YOURwith your actual ID)
Configuration in YourGPT
Navigate to the YourGPT integration section and connect to WooCommerce.

Step 1: Product Synchronization
To sync WooCommerce products with YourGPT in real-time (title, description, pricing, inventory, etc.), set up the following webhook:
Webhook URL for Product Sync
https://api.yourgpt.ai/chatbot/v1/woocommerce/product-sync/webhook/wc-12-YOUR
This URL listens for events such as:
Product Created
Product Updated
๐ง Tip: Create separate webhooks for each event type (
created,updated) for more granular control.
Step 2: Customer Synchronization
To ensure YourGPT stays updated with customer profiles (name, email, history), use this webhook:
Webhook URL for Customer Sync
https://api.yourgpt.ai/chatbot/v1/woocommerce/customer-sync/webhook/wc-10-YOUR
This URL should be triggered on:
Customer Created
Customer Updated
๐ Security Note: Webhooks are pre-authenticated using your unique integration ID. Keep your URL private.
Configure Webhooks in WooCommerce
Follow the steps below to add each webhook to your WooCommerce store.
Go to WooCommerce Webhook Settings
From your WordPress Dashboard, go to:
WooCommerce โ Settings โ Advanced โ Webhooks

Click โAdd Webhookโ.
๐ Fill in Webhook Details
For each webhook (Product and Customer), enter the following:
Name | Product Update |
Status |
|
Topic |
|
Delivery URL | Paste the appropriate webhook URL |
Secret | (Optional, can be left blank if using pre-authenticated URLs) |

Click โSave Webhookโ.
Repeat for all necessary event types (e.g., one for product created, one for product updated).

๐งช Testing the Integration
Once webhooks are created:
Create or update a product in WooCommerce โ Products
Monitor if YourGPT reflects the new data
Similarly, register or update a customer in WooCommerce
Validate that YourGPT updates customer profiles accordingly
โ Verification Tip: Use a webhook monitoring plugin or WooCommerce logs to inspect delivery status and response codes.
Related Articles
How to Install the YourGPT Chatbot on WooCommerce?
Add the YourGPT AI chatbot to your WooCommerce store in a few steps. WooCommerce runs on WordPress, so you have two options โ use our WordPress plugin, or paste the widget script into your site.
How to Generate WooCommerce API Keys for Chatbot Studio?
If you want to pull data from WooCommerce inside your chatbot's Studio flows โ for example, to look up an order's status โ you'll need a Consumer Key and Consumer Secret.
How to Use AI Copilot Actions for WooCommerce
If your website runs on WooCommerce, your chatbot can turn into a real shopping assistant โ searching your catalog, showing product cards, and adding items to a shopper's actual cart, all without leaving the chat.
