AI HelpCenter | YourGPT

Find answers to your questions

Sync WooCommerce with YourGPT Using Webhooks
Automatically Update Product and Customer Data Between Your WooCommerce Store and YourGPT

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

  1. Navigate to the YourGPT integration section and connect to WooCommerce.

Enable WooCommerce integration

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
product-sync-webhook

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
customer-sync-webhook

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

  1. From your WordPress Dashboard, go to:
    WooCommerce → Settings → Advanced → Webhooks

webhook-setting
  1. Click “Add Webhook”.

📝 Fill in Webhook Details

For each webhook (Product and Customer), enter the following:

Name

Product Update

Status

Active

Topic

Product created, Product updated / Customer created, etc.

Delivery URL

Paste the appropriate webhook URL

Secret

(Optional, can be left blank if using pre-authenticated URLs)

add-your-webhook
  1. Click “Save Webhook”.

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

Webhook-webhook-create

🧪 Testing the Integration

Once webhooks are created:

  1. Create or update a product in WooCommerce → Products

  2. Monitor if YourGPT reflects the new data

  3. Similarly, register or update a customer in WooCommerce

  4. Validate that YourGPT updates customer profiles accordingly

Verification Tip: Use a webhook monitoring plugin or WooCommerce logs to inspect delivery status and response codes.

Was this article helpful?
©2025
Powered by YourGPT