Hands-On Chatbots and Conversational UI Development
上QQ阅读APP看书,第一时间看更新

Quick replies

Quick replies is an array of buttons displayed horizontally. These can be used to obtain answers from the user in the same way as the buttons that are attached to text cards. The difference is that here you can have up to 10 buttons and they are not attached to a card. The buttons will also disappear once the user clicks one of them or types their request/response instead of clicking the buttons. This is extremely useful when you either have more than three response options or options that should not linger around after the turn as they will lose context.

To add an array of quick replies buttons, click Quick Reply, add the button names. For each button, you can specify the block it needs to lead to. If the responses are to be treated as answers, they can be stored as user attributes as well. We will examine user attributes further: