How to use the Woocommerce Action template

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
    1. Log in to your Woocommerce admin panel.
    2. Go to WooCommerce > Settings > Advanced > REST API.
    3. 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 comes with a prefilled schema, giving you an example, but you may need a developer to adjust it according to your specific requirements. 

Step 4: Validating your action

After filling in the required details and schema:

  1. Validate: Click the "Validate" button to check for any errors in your schema. Correct any issues that are identified.
  2. 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.