You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/assistants/dynamic-variables.mdx
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,21 +51,26 @@ To leverage dynamic variables during phone calls, follow these steps:
51
51
}
52
52
```
53
53
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
+
54
57
## Default Variables
55
58
56
59
By default, the following variables are automatically filled based on the current (UTC) time,
57
60
meaning that you don't need to set them manually in `variableValues`:
|`{{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
+
67
73
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.
0 commit comments