Database Quick Reply Buttons Action
Last updated
Last updated
Use this action to display multiple dynamic buttons based on a Xenioo Database collection query.
The action uses the following settings:
Setting
Description
Payload
The unique identifier of the button that can be retrieved when the user clicks it.
Text
The text of the quick reply button. This is the text of the button.
Alternate Text
Text to be used on any text-only channel (e.g. WhatsApp)
Expression
Standard Xenioo expression that can be used to trigger this button from standard users message
Image
The url of the image that will be displayed on the button
This action will display as many buttons as the records returned by the current Database Query.
The dynamic contents of each button can be set using standard dynamic parsing variables referencing the cursor_current_record variable. If, as an example, we would like to display the field "ButtonText" of our current collection query inside the Text of our buttons we would just specify it like this:
Any other current variable is of course supported in all parsed fields.
As the user clicks any of the buttons created by this action, the last_command variable will be set with the Payload value or, if empty, with the Text value.
Telegram does not allow buttons to be displayed without any preceding text. Please make sure to have at least one text bubble before any quick button or no button will be displayed.
On Click. This action will trigger any child operation as the user clicks the associated chat button.
This action produces the following variables after being triggered:
Variable
Description
last_command
The parsed content of the Button Title setting
Channel specific availability follows the table below:
Channel
Availability
Fully Available. A maximum of 11 buttons can be displayed at once.
Fully Available.
Telegram
Web
Fully Available
Alexa
Not Available
Google Assistant
Available only on Screen enabled devices.Other devices will ignore the content.
Slack
Fully Available
API
Fully Available
This action can be used only inside interactions and not as child of other actions. Any account can use this action regardless of subscription level.
Fully Available. Can only be displayed after a has been displayed.