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-YOUR
with 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.