This node helps to create a list of a maximum of 10 Items(channel limitation) that can be put into sections/categories. But with the new Enhanced Version of list Node exclusively on Gupshup Bot Studio you can send up to 100 dynamic items using the list node. More on this below.

List message contains of multiple elements such as a message body, List expand button title, List section and rows, description for each row and a footer message:

List Node Elements

List Message has the following fields:

  1. Main Message (Body)
  2. List expand button (To open the list)
  3. Footer Field (To add short supporting text)
  4. Sections (To add categories)
  5. Rows (To add items)
  6. Dynamic List Payload Toggle Button

The elements rows and section titles can be filled dynamically as well from a JSON variable at run-time and an example is given below.

When to use

Send a small catalog of 10 items to your customers over WhatsApp.
You can define categories and subcategories in the list. A description can be added to the products, however, it is optional to add.

Limitations

  1. Message can’t be empty
  2. The button title can’t be empty (1 button mandatory)
  3. Row title can not be empty (1 row mandatory)
  4. Elements and their respective character limits:
Element NameCharacter Limit
Message1024 characters
Footer60 characters
Button Title20 character
Row Description72 characters
Row title24 characters
Section Title20 characters
  1. When dynamically populating the section and row titles, the JSON should contain values adhering to channel limitations of character limit. If the character limit is exceeded, the node will not execute properly on the channel.
  2. Applicable for WhatsApp channel

How to use List Node

Adding the Message title, Button title and Footer

List Node elements - section titles and row titles - can be filled statically at design time or dynamically at run-time based on values contained a JSON.

Define the List Node static section and row titles

On Canvas -

On Whatsapp Channel -

Video of static population in list node:


Define the List Node section and row titles dynamically

Dynamic population of the section and row titles can be done if JSON structure is known at design time. The JSON can be defined by a user or be obtained from an API response. At run-time, the section and row titles will be fetched from JSON used.

Sample JSON

For the given JSON, the values in key "name" are to be populated in Section titles and the values in key "items" are to be populated in row titles at run-time. Let's see how to design this dynamic journey and the execution during run-time.

On Canvas -

The "response" variable stores the JSON.

Configuration on List Node - Section Title

The iterable key "categories" is selected as the "section_element". Please note that "categories" is an array of items. In the given example, the titles that need to be populated in section titles are - Men's Clothes and Accessories. Hence, "section_element.name" is mentioned in the section titles. Here "section_element.name" corresponds to response.categories.name in the original JSON.

Configuration on List Node - Row Title

Row elements are used to populate row titles. Row element can be selected again from the dropdown, or section element can be re-used as the row element.

On Whatsapp Channel -

VIDEO COMING SOON


What’s Next