From Bright Pattern Documentation
Jump to: navigation, search
• 5.19

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.

An example of using buttons in Scenario Builder and the resulting quick reply buttons rendered in a chat interface.

Format

The buttons directive consists of a forward slash followed by the word buttons and one or more button definitions.

Buttons directive format
/buttons [Button 1] [Button 2] [Button 3]  


Info.40x40.png
  • Some messengers (like Viber, Telegram, and LINE) won't display quick reply buttons without leading text.
  • Some messengers only display quick reply buttons on the mobile versions of their apps, not the desktop versions.




Bulb-on.50x50.png
  • Add 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.
  • Prefix the buttons directive with leading text to make a statement or ask a question.



Examples

Yes No Unsure
Have you received your welcome package? /buttons [Yes] [No] [Unsure]
Today Tomorrow Next Week
When are you available for a fifteen minute consult? /buttons [Today] [Tomorrow] [Next Week]


See also: