WooCommerce Integration Template
Tool 1: Check Stock
Configuration in the Famulor Interface
- Tool Details
| Name* |
WooCommerce Lagerbestand |
| Function Name* | check_woo_stock |
| HTTP Method | GET |
| Endpoint* | https://{{WOO_SITE_URL}}/wp-json/wc/v3/products/{product_id} |"{{productName}}: {{#if stockQuantity}}{{stockQuantity}} pieces available{{else}}{{stockStatus}}{{/if}}, price: {{price}}€"
Tool 2: Customer Search
Configuration in the Famulor Interface
- Tool Details
| Name* |
WooCommerce Kundensuche |
| Function Name* | search_woo_customer |
| HTTP Method | GET |
| Endpoint* | https://{{WOO_SITE_URL}}/wp-json/wc/v3/customers |"Customer found: {{firstCustomer.first_name}} {{firstCustomer.last_name}}, {{firstCustomer.orders_count}} orders, customer since {{firstCustomer.date_created}}"
Tool 3: Create Order
Configuration in the Famulor Interface
- Tool Details
| Name* |
WooCommerce Bestellung |
| Function Name* | create_woo_order |
| HTTP Method | POST |
| Endpoint* | https://{{WOO_SITE_URL}}/wp-json/wc/v3/orders |"Order #{{orderNumber}} created. Total amount: {{total}}€. The customer will receive a confirmation email."

