- A predefined OpenAPI schema for WooCommerce
- API key authentication
- Query parameters for your WooCommerce credentials
- A health check configuration
Set up the action
- Go to Agents in Watermelon and select the agent you want to add the action to.
- Select Actions in the left menu.
- In the Actions catalog, click Custom action.
- Click Create new Action.
- Fill in the fields below.
General details
Action nameWooCommerce product and order status
DescriptionThis action lets you get product information and use it in your chatbot when customers ask for it.
BaseURL[YOUR WOOCOMMERCE API URL]
Use your WooCommerce REST API URL, for example:
https://yourdomain.com/wp-json/wc/v3/
Authentication
For Authorization Header, select API key. For Auth Type, select Custom. For Add to, select Query parameters. Add the following query parameters: Query name #1consumer_key
Query value #1[YOUR CONSUMER KEY]
Query name #2consumer_secret
Query value #2[YOUR CONSUMER SECRET]
Replace these values with the Consumer Key and Consumer Secret from your WooCommerce REST API credentials.
This article explains how to generate your API keys in WooCommerce.
Health check
Health check URLhttps://www.yourdomain.com/health_check
Replace this URL with the health check endpoint you want Watermelon to use.
Instruction
You should respond with the following message or a similar variation: Sorry, something went wrong on our end. Can I assist you with anything else? Please let me know how I can help.
This can be left empty, if you do not have an URL to perform a health check.
Schema
Paste the WooCommerce schema into the Schema field:Example in Watermelon


