Button and quick reply types

There are six types of buttons and quick replies: url, action, flow_next, component_next, static, and text. The Meya platform infers the type of the button by evaluating which properties have been set. For example, if the url property is specified, it will be assigned the url button type.

🚧

Not all properties are compatible with a given button type. See the table below for a list of compatible properties.

Property compatibility

The order the button types are listed in the table below is also the order of precedence during type evaluation, meaning if the url and result properties are both set, the url property takes precedence and the button will be inferred as a url button.

Button type

Inferred when...

Compatible

Incompatible

url

the url property is set.

text, icon, context, url

result, data, javascript, button_id, action, magic

action

the action property is set.

text, icon, button_id, context, javascript, action

url, result, data

flow_next

the result or data properties are set.

text, icon, button_id, context, javascript, and either
result or data (but not both)

url, action

static

the javascript or button_id properties are set.

text, icon, javascript, button_id, context

action, result, data, magic, url

text

none of the above types are inferred.

text, icon, context

result, data, javascript, button_id, action, magic, url