This article will guide you through using the Woocommerce Action template.
By using this template, you can easily connect with your Woocommerce database, and have your chatbot respond to questions regarding your products. This template is prefilled with all necessary information, enabling you to retrieve products and product information seamlessly. However, you will need to fill out some information yourself, to be able to connect to your specific database.
Using the Woocommerce Action Template
Step 1: Access the template
In your chatbot in Pulse, navigate to Actions. Here you can find and select the Woocommerce template. This template includes prefilled information necessary for retrieving products and product information from your Woocommerce database.Step 2: Fill in the required fields
- Base URL: Enter the base URL for your Woocommerce API. This is the endpoint where the action will send requests to retrieve product information.
You can find the Base URL by following these steps- Log in to your Woocommerce admin panel.
- Go to WooCommerce > Settings > Advanced > REST API.
- Here, you will find the base URL. The base URL typically follows this format:
https://yourdomain.com/wp-json/wc/v3/
- Example of a Base URL:
https://example.com/wp-json/wc/v3/
- Authentication: Fill out the necessary credentials: 'consumer_key' and 'your_value'. These you can find using your Woocommerce API documentation.
Step 3: Update the schema
The template already has a filled-in schema, so you can use it right away. If you want, you can change the schema to fit other purposes.
Step 4: Validating your action
After filling in the required details and schema:
- Validate: Click the "Validate" button to check for any errors in your schema. Correct any issues that are identified.
- Available Actions: Once validated, the available actions will be displayed.
You can use this article to help you save, publish and unpublish the action and test and use the action.