Wyler.metge (talk | contribs) (Reworked examples) |
Wyler.metge (talk | contribs) m (→Row of buttons) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
===== '''Row of buttons''' ===== | ===== '''Row of buttons''' ===== | ||
− | [[File:Chat widget - row of quick response buttons.png|border|center|frameless]] | + | <br>[[File:Chat widget - row of quick response buttons.png|border|center|frameless]]<br> |
To create a row of buttons, use the following format: | To create a row of buttons, use the following format: | ||
Line 20: | Line 20: | ||
For example: | For example: | ||
− | <code>Has your issue been resolved? /buttons [Yes] [No | + | <code>Has your issue been resolved? /buttons [Yes] [No]</code> |
− | The row of buttons may wrap onto multiple lines, depending on the width of the chat interface. | + | The row of buttons may wrap onto multiple lines, depending on the width of the chat interface. |
===== '''Column of buttons''' ===== | ===== '''Column of buttons''' ===== | ||
− | [[File:Chat widget - column of quick response buttons.png|border|center|frameless]] | + | <br>[[File:Chat widget - column of quick response buttons.png|border|center|frameless]]<br> |
To create a column of buttons, use the following format: | To create a column of buttons, use the following format: | ||
− | <code>/button-columns [Text of option on 1st line] [Text of option on 2nd line] [etc...]</code> | + | <code>Some leading text/button-columns [Text of option on 1st line] [Text of option on 2nd line] [etc...]</code> |
For example: | For example: |
Latest revision as of 12:34, 13 December 2024
Chat Directive: Buttons
The buttons directive sends quick reply buttons in chat interactions, allowing customers to respond to a question or statement by pressing a button corresponding to a set of answers provided by a scenario or by an agent through the Agent Desktop chat interface.
Usage
You may add a row of buttons or a column of buttons after a message by using a forward slash /
followed by the directive buttons or buttons-column and one or more button definitions enclosed in square brackets []
. No text may follow after the button definitions.
Note that best practice is to always include leading text to buttons directives in automated responses like SendMessage+ blocks in scenarios and canned Chat Responses in Agent Desktop for maximum compatibility with all messengers, because:
- Some messengers (like Viber, Telegram, and LINE) will only display quick reply buttons if there is leading text.
- Some messengers only display quick reply buttons on the mobile versions of their apps, not the desktop versions.
Row of buttons
To create a row of buttons, use the following format:
Some leading text /buttons [Text of 1st button] [Text of 2nd option] [Text of 3rd option] [etc...]
For example:
Has your issue been resolved? /buttons [Yes] [No]
The row of buttons may wrap onto multiple lines, depending on the width of the chat interface.
Column of buttons
To create a column of buttons, use the following format:
Some leading text/button-columns [Text of option on 1st line] [Text of option on 2nd line] [etc...]
For example:
What kind of issue are you having? /buttons-column [Can't log in] [Forgot my password] [Something else]
See also: