Making Your Workflow Dynamic with Variables
$Input.<variable_name>
syntax.
Example:
"Hello $Input.first_name, your appointment is scheduled for $Input.appointment_date"
You can use this text in a Fixed message or an AI-Driven message in the Workflow Editor.
If you syntax is correct and the variable exists, you should see the value of the variable in the message.
date
or date-time
, you can use special formatting functions:
Variable Format | Function | Description |
---|---|---|
date or date-time | formatDayOfWeek | Returns the day of the week |
date or date-time | formatShortDate | Returns the short date in the format 12 March |
date or date-time | formatLongDate | Returns the full date in the format 12 March 2025 |
date-time | formatLocalizedTime | Returns localized time in the format 10 AM (localised in the language of the workflow) |
$Input.<variable_name>.formatDayOfWeek
These functions help utilise a single variable such as appointment_date_and_time to create a message that is more understandable for end users.