WooCommerce Integration
Transform your Chatty AI bot into a high-converting 24/7 sales assistant for your WooCommerce store. The native WooCommerce integration allows Chatty to answer customer questions with real-time catalog data, display interactive product cards, check live inventory, and track customer orders securely inside the chat window.
Key Features
Live Product Discovery
Semantic vector search understands natural queries like "Do you have running shoes with extra arch support under $120?" and returns relevant, in-stock products.
Interactive Product Cards
Displays visual product cards with images, formatted store currency, current stock status, and direct Add to Cart or Checkout links.
Automated Order Tracking
Visitors can ask "Where is my order #12450?". Chatty securely validates their email or phone number, then displays carrier tracking, shipping status, and fulfillment updates.
Real-Time Catalog Sync
When products are added, updated, or marked out of stock in WooCommerce, Chatty automatically syncs via signed webhooks with zero manual re-indexing.
Connecting Your Store
Chatty supports both 1-Click OAuth Connection (recommended for non-technical store owners) and Manual API Key Setup (for staging, intranet, or custom WooCommerce deployments).
Method A: 1-Click OAuth Setup (Recommended)
- Open Chatty Dashboard → Bot Settings → Integrations → WooCommerce.
- Enter your store's public HTTPS URL (e.g.
https://mystore.com). - Click Connect with WooCommerce.
- You will be redirected to your WordPress admin screen asking to approve API permissions for Chatty.
- Click Approve. WooCommerce automatically provisions read/write keys and registers real-time webhooks back to Chatty.
Method B: Manual API Key Provisioning
If your WordPress server blocks OAuth callbacks or runs behind Cloudflare Access, configure keys manually:
- In WordPress WP-Admin, navigate to WooCommerce → Settings → Advanced → REST API.
- Click Add Key.
- Description:
Chatty AI Integration - User: Select an admin or shop manager user
- Permissions: Read/Write (required to auto-register webhooks and query live orders)
- Description:
- Click Generate API Key. Copy the Consumer Key (
ck_...) and Consumer Secret (cs_...). - In Chatty Dashboard, enter:
- Store URL:
https://mystore.com - Consumer Key:
ck_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - Consumer Secret:
cs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Store URL:
- Click Save & Test Connection.
SSL Certificate Required
WooCommerce REST API v3 strictly requires HTTPS. Ensure your store serves a valid SSL certificate; HTTP connections are rejected by WooCommerce core for security.
Bi-Directional Webhook Synchronization
Once connected, Chatty automatically registers the following webhook listeners on your WooCommerce store:
| Webhook Event | WooCommerce Topic | Chatty Action |
|---|---|---|
product.created | Product Created | Indexes new product title, description, attributes, variants, and price into bot knowledge base. |
product.updated | Product Updated | Updates pricing, stock status (instock / outofstock), sale prices, and description in real time. |
product.deleted | Product Deleted | Removes deleted or trashed products immediately from AI recommendations. |
order.created | Order Created | Caches order metadata for instant conversational tracking. |
order.updated | Order Updated | Updates fulfillment status (e.g. processing → completed), tracking number, and carrier info. |
Webhook Delivery Endpoint
WooCommerce sends signed payloads to your bot's dedicated ingestion route:
POST https://api.chatty.personaliai.com/api/integrations/woocommerce/webhook/{bot_id}Chatty verifies every delivery against the secret provisioned during connection setup. Webhooks that fail HMAC SHA-256 verification are dropped with 401 Unauthorized.
Conversational Shopping Experience
Product Recommendation Cards
When Chatty detects product inquiry intent, it formats store responses into visual product widgets inside the web chat or rich WhatsApp catalog messages:
{
"role": "assistant",
"content": "Here are our top waterproof trail running shoes:",
"products": [
{
"id": 1042,
"name": "Apex Waterproof Trail Runner",
"price": "$129.00",
"regular_price": "$149.00",
"on_sale": true,
"stock_status": "instock",
"permalink": "https://mystore.com/product/apex-trail-runner",
"add_to_cart_url": "https://mystore.com/cart/?add-to-cart=1042",
"thumbnail": "https://mystore.com/wp-content/uploads/apex-shoe.jpg"
}
]
}Direct Cart Actions
You can configure Chatty's CTA behavior in Widget Settings → Commerce:
- Direct Add to Cart: Clicking the button adds the item directly to the customer's cart via
/?add-to-cart={product_id}and opens checkout. - Product Page: Navigates the visitor to the full product detail page.
- WhatsApp Catalog Checkout: On WhatsApp channels, sends native Meta Catalog items allowing in-app cart collection.
Order Status & Security Verification
To prevent unauthorized order inspection, Chatty enforces a strict verification challenge before revealing order details:
- Visitor Prompt: "Where is my order #10842?"
- Identity Challenge: If the visitor is not logged into WordPress or their session email is unverified, Chatty prompts:
"To protect your privacy, please verify the email address or phone number used when placing order #10842."
- Validation: Chatty compares the user's input with the billing email/phone on the WooCommerce order.
- Order Summary: Upon a match, Chatty returns:
- Order Status (
Processing,Shipped,Completed,On hold) - Tracking Carrier & Tracking Number link (supports WooCommerce Shipment Tracking, ShipStation, AfterShip)
- Estimated Delivery Date
- Line items summary and total amount paid
- Order Status (
Customer Privacy Enforcement
Chatty will never reveal recipient physical addresses or payment credit card details over chat, regardless of authentication state.
WooCommerce Management API
Developers can manage WooCommerce store links programmatically via the Chatty REST API:
curl -X GET \
"https://api.chatty.personaliai.com/api/bots/{bot_id}/integrations/woocommerce" \
-H "Authorization: Bearer chatty_sk_..."