Woocommerce

Introduction

WooCommerce seamlessly connects with the WordPress REST API, enabling users to perform various operations such as creating, reading, updating, and deleting data on their WooCommerce store. This includes handling coupons, orders, customers, products, refunds, and more. A comprehensive overview of the WooCommerce API is available here.

Utilizing Aissist's Integration and Smart Action capabilities, our AI can access WooCommerce's REST API to retrieve necessary data tailored to your requirements. Below are the instructions for integrating the WooCommerce API with Aissist.

WooCommerce Integration

Generate WooCommerce API Key

Navigate to your WooCommerce dashboard and select 'Settings', followed by 'Advanced', and then 'REST API'. Here, you have the option to create an API key. Remember to copy both the key and secret, as they will not be displayed again once you leave the page. Below is an example of generating a key.

Create WooCommerce integration on aissit.io

Sign in to your aissist.io account and select 'Integration' from the side panel. Then choose 'WooCommerce' from the available options. A window will pop out, enter a name, your WooCommerce API URL, and your consumer key and secret for authentication. Here's an example:

Smart Actions

There are several smart actions that automatically come with the WooCommerce integration. You can modify when they will be called.

It is okay to choose both "run at session start" and "run at interaction" one specific action.

Those actions come with pre-definied description and parameters. You can change those pre-defined definition by following customized smart action.

Customized Smart Actions

The WooCommerce integration comes with default Smart Action which can satisfy majority of needs. However, you can create customized Smart Actions if there is a need to do so.

To do this, head to your Aissist dashboard and click on 'Integration' in the side panel, then choose "customized action", followed by 'add action'. When creating a new action, a Smart Action Builder window will pop up. Here, you need to input a name and description for the action, select the WooCommerce integration, and then choose a method. Currently, there are three methods available: getOrder, getCustomer, and getCustomerOrders. The getOrder method allows you to obtain comprehensive details of an order using its ID. The getCustomer method can fetch all information related to a customer using their email. Lastly, getCustomerOrders can retrieve a customer’s entire order history using their email.

Test Smart Action

After the Smart Action is added, you can test its functionality on the debug panel.

Last updated