Skip to content

Commit b9893c8

Browse files
authored
{{customer.number}} in dynamic variables doc (#72)
1 parent 9589328 commit b9893c8

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

fern/assistants/dynamic-variables.mdx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,26 @@ To leverage dynamic variables during phone calls, follow these steps:
5151
}
5252
```
5353

54+
**Note:** You will need to add the `{{variableName}}` in this format in all your prompts, whether it is the first message or anywhere else you want to use it.
55+
56+
5457
## Default Variables
5558

5659
By default, the following variables are automatically filled based on the current (UTC) time,
5760
meaning that you don't need to set them manually in `variableValues`:
5861

59-
| Variable | Description | Example |
60-
| ----------- | --------------------------- | -------------------- |
61-
| `{{now}}` | Current date and time (UTC) | Jan 1, 2024 12:00 PM |
62-
| `{{date}}` | Current date (UTC) | Jan 1, 2024 |
63-
| `{{time}}` | Current time (UTC) | 12:00 PM |
64-
| `{{month}}` | Current month (UTC) | January |
65-
| `{{day}}` | Current day of month (UTC) | 1 |
66-
| `{{year}}` | Current year (UTC) | 2024 |
62+
| Variable | Description | Example |
63+
| ----------------------- | --------------------------------- | ------------------------- |
64+
| `{{now}}` | Current date and time (UTC) | Jan 1, 2024 12:00 PM |
65+
| `{{date}}` | Current date (UTC) | Jan 1, 2024 |
66+
| `{{time}}` | Current time (UTC) | 12:00 PM |
67+
| `{{month}}` | Current month (UTC) | January |
68+
| `{{day}}` | Current day of month (UTC) | 1 |
69+
| `{{year}}` | Current year (UTC) | 2024 |
70+
| `{{customer.number}}` | Customer's phone number | +1xxxxxxxxxx |
71+
| `{{customer.X}}` | Any other customer property | |
72+
6773

68-
**Note:** You will need to add the `{{variableName}}` in this format in all your prompts, whether it is the first message or anywhere else you want to use it.
6974

7075
## Advanced Date and Time Usage
7176

0 commit comments

Comments
 (0)