Commit da269f6
authored
docs: enrich dynamic-variables table and document function.parameters tool support (#1037)
Two related additions surfaced by an FDE conversation about progressive
authentication, where customers asked which Liquid variables are
available and which tools support customer-defined function.parameters.
fern/assistants/dynamic-variables.mdx:
- Add 5 new rows to the Default Variables table:
- phoneNumber.number (the Vapi number that received/placed the call)
- phoneNumber.name (display name set on the number)
- call.id (Vapi-generated call UUID — useful for log correlation)
- call.type (inboundPhoneCall / outboundPhoneCall / webCall)
- transport.callSid (provider-side CallSid, useful for BYOT)
- Tweak the {{now}} description to point at the Advanced date and time
usage section for non-UTC timezones (the LiquidJS "now" | date filter
is the only correct pattern; the bag's {{now}} is hardcoded UTC).
- Add a callout linking to /tools/static-variables-and-aliases for the
trust-tier framing and the within-assistant tool-chaining pattern.
fern/tools/custom-tools.mdx:
- Add a new section 'Other tool types that accept custom function
parameters' with a matrix showing where customer-defined
function.parameters works (function, apiRequest, code, handoff) vs.
where the schema is Vapi-controlled (transferCall, endCall, dtmf,
voicemail, sms, slack, GHL/Google integrations, mcp, make, and the
Anthropic-native bash/computer/textEditor tools).
- Includes a follow-on pointer to /tools/static-variables-and-aliases
for the static-parameters pattern.
Variables intentionally NOT exposed (judgment call):
- phoneNumber.id, phoneNumber.provider — internal IDs / infra
fingerprints; no clear customer use case in prompts.
- call.status, call.startedAt, call.assistantId — internal state
that is confusing if surfaced in customer prompts.
- assistant.id, assistant.name — encourages brittle customer code
that hardcodes behavior on assistant identity.
- currentDateTime — redundant with {{now}}.
- transport.provider — internal-infra fingerprint.1 parent 8d316d4 commit da269f6
2 files changed
Lines changed: 35 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
84 | 93 | | |
85 | 94 | | |
86 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
122 | 136 | | |
123 | 137 | | |
124 | 138 | | |
| |||
0 commit comments