# 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](/applications/content/message-templates/how-to/apple-messages-for-business/create-a-time-picker-apple-messages-template.md) that supports variables
* An array of objects formatted correctly for use as dynamic variables

### Step-by-step instructions

1. In Flows, use the 'Set variables' action to retrive a list of times from your appointment booking system.&#x20;
2. Add a 'Send template message to conversation' step, and select the time picker message template that you want to use.
3. 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.
4. Select the predefined timeslots variable, and map the slotLength and start keys from your object array.
5. Run a test, nd you will receive a message with the appointment slots as defined in the variable above.
6. Click **Publish** to set your flow live.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bird.com/applications/content/message-templates/how-to/apple-messages-for-business/use-dynamic-variables-in-apple-messages-templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
