Buttons
Button card
The button card can be used to link to another scenario, an URL or to assign a value to a variable. The conversation will be paused once a button card is active and will continue when the user has clicked on any button.

Syntax
[
{
"name": "<STATE_NAME>",
"component": "ebbot_url",
"properties": {
"description": "<TEXT_MESSAGE>",
"buttons": [
{
"label": "<BUTTON_TEXT>",
"type": "variable",
"name": "<VARIABLE_NAME>",
"value": "<VARIABLE_VALUE>"
},
{
"label": "<BUTTON_TEXTT>",
"url": "<URL>",
},
{
"label": "<BUTTON_TEXT>",
"type": "scenario",
"next": {
"scenario": "<SCENARIO_NAME>"
}
}
]
}
}
]Example Usage
If you have the button card in the middle the remaining cards will be played except if the user clicks on a button thats leads to another scenario or a state. Then the remaining cards in the previous scenario will be discarded.
You can always discard the remaining cards on a button click regardless of the type if you pass the stop property.
Property
Type
Description
stop
Boolean
Stop the remaining cards to be played. Default value: false
Example usage of stop property
Last updated
Was this helpful?

