REFERENCE
Developer Reference
Authentication, APIs, SDKs, Flow Agent processors and parameter resolution, in full.
Common features — Text
Text is how a message template carries written content.
Basic usage
The text property is the core text carrier of every message template. It supports plain text, multiple lines and special characters. Its role differs between template types, but the handling rules stay the same.
How to use it
To send a message containing text from Push Message:
- Choose
Expressionin the Template field's dropdown. - Enter the following JavaScript in the editor.
(() => {
return {
type: 'TEXT',
text: 'Your order has been created.\nOrder number: #12345\nExpected delivery in 3 to 5 working days.',
};
})()Once configured, the text appears in the chat, with line breaks and formatting preserved.
- Choose