From 1bf5726f23732edff7de14c7804fafac08dda919 Mon Sep 17 00:00:00 2001 From: Nikhil Gupta Date: Sat, 30 Nov 2024 14:57:42 -0800 Subject: [PATCH] {{customer.number}} in dynamic variables doc --- fern/assistants/dynamic-variables.mdx | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/fern/assistants/dynamic-variables.mdx b/fern/assistants/dynamic-variables.mdx index 5149971..cc534b9 100644 --- a/fern/assistants/dynamic-variables.mdx +++ b/fern/assistants/dynamic-variables.mdx @@ -51,21 +51,26 @@ To leverage dynamic variables during phone calls, follow these steps: } ``` +**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. + + ## Default Variables By default, the following variables are automatically filled based on the current (UTC) time, meaning that you don't need to set them manually in `variableValues`: -| Variable | Description | Example | -| ----------- | --------------------------- | -------------------- | -| `{{now}}` | Current date and time (UTC) | Jan 1, 2024 12:00 PM | -| `{{date}}` | Current date (UTC) | Jan 1, 2024 | -| `{{time}}` | Current time (UTC) | 12:00 PM | -| `{{month}}` | Current month (UTC) | January | -| `{{day}}` | Current day of month (UTC) | 1 | -| `{{year}}` | Current year (UTC) | 2024 | +| Variable | Description | Example | +| ----------------------- | --------------------------------- | ------------------------- | +| `{{now}}` | Current date and time (UTC) | Jan 1, 2024 12:00 PM | +| `{{date}}` | Current date (UTC) | Jan 1, 2024 | +| `{{time}}` | Current time (UTC) | 12:00 PM | +| `{{month}}` | Current month (UTC) | January | +| `{{day}}` | Current day of month (UTC) | 1 | +| `{{year}}` | Current year (UTC) | 2024 | +| `{{customer.number}}` | Customer's phone number | +1xxxxxxxxxx | +| `{{customer.X}}` | Any other customer property | | + -**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. ## Advanced Date and Time Usage