Quick replies


 

quick_replies property of server response is optional. Quick replies cannot be used in dynamic block of a content node if there are other blocks exist afterwards. Quick reply description format is the same for buttons, it supports content, node, dynamic_block_callback types.

 

Go to node quick reply

{ "version": "v1", "content": { "messages": [ { "type": "text", "text": "simple text with button", "buttons": [ { "type": "url", "caption": "External link", "url": "https://uchat.com.au" } ] } ], "actions": [], "quick_replies": [ { "type": "node", "caption": "Show", "target": "My Content" } ] } }

target key should be linked to a node existing within executed flow. Node name can be found in its header, you need to use unique name for node connected with link. If there are multiple nodes with similar names inside of the same flow, transition behaviour would not meet expectations. Go to node quick replies are not supported in Public API.

 

Dynamic block callback quick reply

The "headers", "payload" properties are optional.

{ "version": "v1", "content": { "messages": [ { "type": "text", "text": "simple text with button", "buttons": [ { "type": "url", "caption": "External link", "url": "https://uchat.com.au" } ] } ], "actions": [], "quick_replies": [ { "type": "dynamic_block_callback", "caption": "Dynamic content", "url": "https://your-service.com/dynamic", "method": "post", "headers": { "x-header": "value" }, "payload": { "key": "value" } } ] } }

Â