Shortcode: ^buttons()

Adds buttons to your bot's response, giving them a list of pre-supplied options to choose from when continuing the conversation.

^buttons(label1, label2, label3...)

Sample Value Description
label1, label2, label3... "Operating Hours", "Services", "Prices" At least one label required. Comma-separated list of buttons to present to your user.

Example Usage

+ help
- How can I help you? ^buttons("Operating Hours", "Services", "Prices")
 
+ operating hours
- We are open 24/7.
 
+ services
- We provide a wide variety of services, ranging from doodads to thingamajigs.
 
+ prices
- Our policy is name-your-own-price!

Details

Platform Notes How It Looks
Facebook
  • Inserts Facebook Quick Replies
  • Each label can only have 20 characters
  • You can have 11 buttons max
  • Clicking a Quick Reply mimics the behavior of a user typing out the label message
Slack
  • Buttons are represented as keywords for your users to respond with
SMS/Twilio
Twitter
  • Inserts Twitter Quick Reply Options
  • Learn more about Twitter integrations

Details (SMS/Twilio)

There is no concept of "buttons" over text messaging, but as seen in the screenshot above, Dexter renders these in ALL CAPS preceded with a [1] number for your users' convenience. If you are building a bot with buttons and launching over SMS, we strongly recommend that you support these numerical shortcuts in your triggers as well.

If you wanted to support SMS as a platform in the example above, it could look like:

+ help
- How can I help you? \n\n Select from the following:\n
^buttons("Operating Hours", "Services", "Prices")
 
+ (1|operating hours)
- We are open 24/7.
 
+ (2|services)
- We provide a wide variety of services, ranging from doodads to
thingamajigs.
 
+ (3|prices)
- Our policy is name-your-own-price!
Learn more about using \n as line breaks.