- 16 Jul 2025
- 1 Minute to read
- Print
- PDF
Message Template
- Updated on 16 Jul 2025
- 1 Minute to read
- Print
- PDF
The Message Template connector enables to create and use static message templates for commonly used messages in Recipes. You can use message templates to generate HTML, text, JSON, and XML messages.
Templates allow you to separate the message composition logic (what the message looks like) from the message generation logic (when the message is sent). This separation enables you to change the message format without changing the Recipe that sends the message.
Message Templates are logic-less. This means that flow logic such as loops and conditional statements (including if and else) is not supported within templates. However, templates support Mustache tags for variable substitution, conditional blocks, and list iteration. Create tags by wrapping text in double curly brackets ({{ }}).
Each Message Template has an associated input schema that defines the variables that must be passed to the Template’s tags. The Recipe developer must provide values for the input schema when using the message template within a recipe.
To create a New Message Template, perform the following steps:
Navigate to Integration Hub > Users > Tools > Message Template.
The Message Templates list page is displayed.
Click Creating a New Template.
The New Template page appears.
Enter the description in the Template Body field.
Note
Input parameters must be surrounded by {{ and }}. For example, use {{name}} to insert a value from the input.
Variables must be added in the Template input field. JSON can be used, or variables can be created manually. Template variables support both scalar data types string, integer, date, number, time, and boolean and complex data types such as object and list. Values for template variables can be defined in recipes using the Create message action.
In the Template Input