Get Products

How to Use the "Get Products" Feature in UChat

The "Get Products" feature allows you to search and manipulate the products listed in your e-commerce store. Below is a step-by-step guide on how to set up this feature:

  1. Access the "Get Products" Action


In your automation flow, add a new action node, then select "Ecommerce." From the options, choose "Get Products" to start the configuration.

 

2.Edit the Action
Next, click "Edit Action" to customize the call parameters.

  1. Configure the Call Parameters


In the configuration window, you can adjust the following parameters:

  • Limits: Set the limit for the number of products to be returned in the query.

  • Sort by: Choose how you want the products to be sorted (e.g., by price or bestsellers).

  • Filters: Select the filters you want to apply, such as by category or availability.

  • Custom Fields: Choose or create custom fields that will be populated with the product information.

  1. Configuration Example


Here is an example of how you can set up the parameters to retrieve products with a specific filter and populate custom fields.

 

  1. View the Generated JSON

After configuring the parameters, the example JSON for the call will be automatically generated in the custom field you chose. This JSON can be viewed in a message or action node, for example, returning the products according to the defined settings. You can manually select the JSON data you want to work with.

 

 

 

  1. Publish and Test the Configuration

Once all configurations are completed, click "Publish", then test the flow to ensure the products are returned as expected.

 

If you need further assistance, please submit a ticket at ticket@uchat.com.au

Show Products

 

In a Send Message step, find "Ecommerce"(1), "Product"(2) and then click "Edit"(3). Buttons added at area 4 will show under each product. And don't forget to put prompt at area 5 in case no product matched.

 

WARNING - Due to the fact that Facebook allows only 10 cards displayed at one time, you might need to apply a filter to narrow down the products.

 

  1. choose how many products to show from 1 to 10

  2. select a sorting condition according to the user's choice

  3. set a filter with as many conditions as needed.