WooCommerce Integration
Connect your WooCommerce store to provide AI-powered support with e-commerce context.
Overview
The WooCommerce integration provides:
- Product catalog synchronization
- Order status and history
- Customer data sync
- Real-time updates via webhooks
Prerequisites
- WordPress site with WooCommerce
- WooCommerce REST API enabled
- Admin access to create API keys
- HTTPS enabled (required for webhooks)
Step 1: Generate API Keys
Create API Credentials
- Log in to WordPress Admin
- Go to WooCommerce → Settings → Advanced → REST API
- Click Add key
- Fill in details:
- Description: "Fyncall Integration"
- User: Select admin user
- Permissions: Read/Write
- Click Generate API key
- Copy the Consumer Key and Consumer Secret
caution
Save the Consumer Secret immediately! It won't be shown again.
Step 2: Connect in Fyncall
- Go to Settings → Integrations → WooCommerce
- Click Connect WooCommerce
- Enter your details:
- Store URL:
https://yourstore.com - Consumer Key:
ck_xxxx... - Consumer Secret:
cs_xxxx...
- Store URL:
- Click Connect
- Verify connection status
Step 3: Configure Webhooks
Automatic Setup
Fyncall can create webhooks automatically:
- In integration settings, click Configure Webhooks
- Fyncall will create necessary webhooks
- Verify webhooks in WooCommerce settings
Manual Setup
If automatic setup fails:
- Go to WooCommerce → Settings → Advanced → Webhooks
- Create webhooks for each event:
| Name | Topic | Delivery URL |
|---|---|---|
| Order Created | order.created | https://api.fyncall.com/api/v1/webhooks/woocommerce |
| Order Updated | order.updated | https://api.fyncall.com/api/v1/webhooks/woocommerce |
| Product Created | product.created | https://api.fyncall.com/api/v1/webhooks/woocommerce |
| Product Updated | product.updated | https://api.fyncall.com/api/v1/webhooks/woocommerce |
| Customer Created | customer.created | https://api.fyncall.com/api/v1/webhooks/woocommerce |
| Customer Updated | customer.updated | https://api.fyncall.com/api/v1/webhooks/woocommerce |
Step 4: Configure Sync
Products
| Setting | Description |
|---|---|
| Sync Products | Import product catalog |
| Include Variations | Sync variable products |
| Product Status | Published only, or include drafts |
| Categories | Sync product categories |
Orders
| Setting | Description |
|---|---|
| Sync Orders | Import order data |
| Order Statuses | Which statuses to sync |
| History Limit | How far back to import |
Customers
| Setting | Description |
|---|---|
| Sync Customers | Import customer data |
| Guest Orders | Include guest customers |
| Match by Email | Link to existing customers |
Synced Data
Products
| Field | Synced |
|---|---|
| Name | ✓ |
| Description | ✓ |
| Short description | ✓ |
| Regular price | ✓ |
| Sale price | ✓ |
| Images | ✓ |
| Categories | ✓ |
| Tags | ✓ |
| SKU | ✓ |
| Stock status | ✓ |
| Stock quantity | ✓ |
| Attributes | ✓ |
| Variations | ✓ |
Orders
| Field | Synced |
|---|---|
| Order ID | ✓ |
| Order number | ✓ |
| Status | ✓ |
| Date created | ✓ |
| Total | ✓ |
| Line items | ✓ |
| Shipping | ✓ |
| Billing address | ✓ |
| Payment method | ✓ |
| Customer note | ✓ |
Customers
| Field | Synced |
|---|---|
| ✓ | |
| First name | ✓ |
| Last name | ✓ |
| Billing address | ✓ |
| Shipping address | ✓ |
| Username | ✓ |
AI Capabilities
With WooCommerce connected:
Product Lookup
Customer: "Is the premium widget in stock?"
AI: "Yes, the Premium Widget is in stock.
We have 23 available. Price: $79.99"
Order Tracking
Customer: "What's the status of order 5678?"
AI: "Order #5678 is currently being processed.
Items: Premium Widget (x1), Basic Widget (x2)
Total: $189.97"
Customer History
Customer: "What did I order last time?"
AI: "Your last order was #5432 on January 15th:
- Deluxe Widget Pack ($149.99)
- Express Shipping ($9.99)"
Widget Installation
Manual Installation
Add the widget script to your theme:
- Edit
footer.phpor use a plugin - Add the script before
</body>
<script async src="https://cdn.fyncall.com/widget/loader.js"
data-fyncall-widget="fw_your_widget_id"></script>
Plugin Installation
Use a code snippets plugin like "Insert Headers and Footers":
- Install the plugin
- Add script to footer section
- Save changes
Troubleshooting
Connection Failed
- Verify store URL includes
https:// - Check API keys are correct
- Ensure REST API is enabled
- Check for firewall blocking API
Webhooks Not Working
- Verify HTTPS is working
- Check webhook delivery URL
- Review webhook logs in WooCommerce
- Test webhook manually
Products Not Syncing
- Check product is published
- Verify API permissions
- Check for plugin conflicts
- Review error logs
Orders Missing
- Check order status filter
- Verify date range
- Check customer email matching
- Try manual sync
Performance Considerations
Large Catalogs
For stores with 10,000+ products:
- Enable incremental sync
- Sync during off-peak hours
- Monitor API rate limits
API Rate Limits
WooCommerce may rate limit API requests:
- Default: No hard limit
- Hosting may impose limits
- Monitor 429 responses
Security
API Key Best Practices
- Use dedicated API key for Fyncall
- Grant minimum required permissions
- Rotate keys periodically
- Monitor API key usage
Webhook Security
Fyncall verifies webhooks using:
- WooCommerce webhook secret
- Source IP validation
- Timestamp validation