REFERENCE
Developer Reference
Authentication, APIs, SDKs, Flow Agent processors and parameter resolution, in full.
Action Object — Message
A Message action sends a given text message on the user's behalf.
Basic usage
A Message action makes tapping a button send text to the bot, exactly as if the user had typed it. It supports plain text.
Examples
To send a button with a Message action from Push Message:
- Choose
Expressionin the Template field's dropdown. - Enter the following JavaScript in the editor.
A support menu
(() => {
return {
type: 'BUTTON',
title: 'Support',
text: 'Which service do you need?',
buttons: [
{
label: 'Order status',
action: {
type: 'MESSAGE',
text: 'I want to check my order',
},
},
{
label: 'Book a table',
action: {
type: 'MESSAGE',
text: "I'd like to book a table",
},
},
],
};
})()- Choose