Quick Replies node provide a way to present buttons to the user in response to a message in Facebook Messenger.

Quick Replies appear prominently above the composer, with the keyboard less prominent. When a quick reply is tapped, the message is sent in the conversation with developer-defined metadata in the callback.

After the user taps one, they are dismissed, which prevents the scenario where users could tap on buttons attached to old messages in a conversation.

Only three types of buttons can be specified here:

The text message can be passed through the payload by the upstream node:

return {  
  ...msg,
  message: 'Select one',  
  buttons: [    
		{ type: 'quick-reply', label: 'Test 1', value: 'test1' },    
    { type: 'quick-reply', label: 'Test 2', value: 'test2' }  
];

Available parameters for the msg.payload

Name Type Description
message string The text above the quick replies
buttons [buttons] The quick-reply button

The button object

Name Type Description
type string Type of quick reply button: quick-reply, email, phone
label string The label of the button (only for quick-reply)
value string The value returned when clicked (only for quick-reply)
image_url string The image for the button (only for quick-reply)