Use dynamic variables in Apple Messages templates
By using dynamic variables, the content you send can be personalized with relevant information. This feature is ideal for situations where the information, such as item lists, may change in size or content, ensuring recipients receive the most up-to-date information.\
What you'll need
A 'Time picker' message template that supports variables
An array of objects formatted correctly for use as dynamic variables
Step-by-step instructions
In Flows, use the 'Set variables' action to retrive a list of times from your appointment booking system.
Add a 'Send template message to conversation' step, and select the time picker message template that you want to use.
Pick your array and map an object key to each field as follows:
Items Path: Specify the array that contains the relevant objects.
Duration: Indicate the object field that contains the duration of each timeslot.
Start Time: Define the start time for each event.
Select the predefined timeslots variable, and map the slotLength and start keys from your object array.
Run a test, nd you will receive a message with the appointment slots as defined in the variable above.
Click Publish to set your flow live.
Last updated