Skip to content

Commit

Permalink
{{customer.number}} in dynamic variables doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilro committed Nov 30, 2024
1 parent 9589328 commit 1bf5726
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions fern/assistants/dynamic-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1bf5726

Please sign in to comment.