If you can live with the limitations of quick responses (mostly that all the buttons disappear as soon as one is clicked), you can have up to 13 quick responses buttons - the following is an example code snippet from Python custom actions.
Preformatted text message5 = {
"text": "What do you want next?",
"quick_replies": [
{
"content_type": "text",
"payload": mess4_payload_plot,
"title": " ",
"image_url":"https://github.com/ryanmark1867/chatbot/raw/master/images/thumb_up.jpg"
},
{
"content_type": "text",
"payload": mess4_payload_stars,
"title": " ",
"image_url":"https://github.com/ryanmark1867/chatbot/raw/master/images/thumb_down.jpg"
},
{
"content_type": "text",
"payload": mess4_payload_director,
"title": "click to get *director*"
},
{
"content_type": "text",
"payload": mess4_payload_plot,
"title": "click to get *plot2*"
},
{
"content_type": "text",
"payload": mess4_payload_stars,
"title": "click to get stars2"
},
{
"content_type": "text",
"payload": mess4_payload_director,
"title": "click to get director2"
},
{
"content_type": "text",
"payload": mess4_payload_plot,
"title": "click to get plot3"
},
{
"content_type": "text",
"payload": mess4_payload_stars,
"title": "click to get stars3"
},
{
"content_type": "text",
"payload": mess4_payload_director,
"title": "click to get director3"
},
{
"content_type": "text",
"payload": mess4_payload_plot,
"title": "click to get plot4"
},
{
"content_type": "text",
"payload": mess4_payload_stars,
"title": "click to get stars4"
},
{
"content_type": "text",
"payload": mess4_payload_director,
"title": "click to get director4"
},
{
"content_type": "text",
"payload": mess4_payload_rating,
"title": "click to get rating"
}
]
}
Preformatted textdispatcher.utter_custom_json(message5)
result looks like this:
