官术网_书友最值得收藏!

Buttons

Buttons are a way to let users respond to the chatbot in an unambiguous manner. You can add buttons to text, gallery, and list cards. Buttons have a label and a payload. The label is what the user gets to see. Payload is what happens in the backend when the user clicks the button:

A button can take one of four types of payloads: next block, URL, phone number, or share. The next block is identified by the name of the block. This will tell the chatbot which block to execute when the button is pressed. The URL can be specified, if the chatbot is to open a web page on the embedded web browser. Since the browser is embedded, the size of the window can also be specified. The phone number can be specified, if the chatbot is to make a voice call to someone (for example, call to reserve a table). And finally, the Share option can be used in cards such as lists and galleries to share the card with other contacts of the user.  

主站蜘蛛池模板: 绥宁县| 武威市| 宁城县| 衡东县| 越西县| 唐河县| 什邡市| 灌阳县| 临安市| 盖州市| 五台县| 隆安县| 寿阳县| 南召县| 黔南| 鄂托克前旗| 仪征市| 广州市| 土默特右旗| 北安市| 宜川县| 温宿县| 通州市| 毕节市| 台东县| 东莞市| 四会市| 汶上县| 方城县| 安达市| 白山市| 开原市| 丹江口市| 依安县| 江安县| 罗定市| 乐亭县| 马关县| 化隆| 元阳县| 会东县|