List Message
Send a custom interactive list menu through WhatsApp.
Basic Usage
Parameters
Everything inside platforms.meta_whatsapp
should be considered parameters for this notification. There are top level
parameters that describe the message type and other general message behaviours, and then there are nested parameters
dependent on the message type.
Only nested parameters for message_type: list
is explained here, for all top level parameters, see the top level
Whatsapp documentation
required string
message_type Indicates the type of message that is going to be sent. This also will determine what the contents of the params object should be.
Available message types are:
required object
params Contains the parameters for the message and will depend on the message_type
setting.
See the message_type
specific documentation above for the message type specific parameters.
Show child attributes
required object
list Object is required if the message_type
is list. This object should change to match what message_type
is set to.
Show child attributes
optional object
header Optional header that appears at the top of the list message.
Show child attributes
required string
type The header type. Currently only "text" is supported.
required string
text The header text that appears at the top of the list message.
required object
body The body content that will be displayed in the list message.
Show child attributes
required string
text The text content of the body that will be displayed in the list message.
required object
action Defines the interactive elements of the list message.
Show child attributes
required string
button The text displayed on the button that opens the list menu. Maximum length is 20 characters.
required array
sections Array of section objects that will be displayed in the list menu. You can include up to 10 sections.
Show child attributes
required string
title The title of the section. Maximum length is 24 characters.
required array
rows Array of row objects that represent menu items within a section. You can include up to 10 rows across all sections.
::summary
required string
id The unique identifier for the row. This value will be available in the data when the user selects this option.
The id
needs to be a string and can be up to 200 characters long.
required string
title The title text displayed for the row. Maximum length is 24 characters.
optional string
description Additional description text displayed below the title. Maximum length is 72 characters.
::
Row object example:
Result
When a user selects an option from the list, they will receive a confirmation message and the selected id
will be available in the response data.