docs: enrich dynamic variables table and document function.parameters tool support#1037
Merged
dhruva-reddy merged 1 commit intomainfrom Apr 29, 2026
Merged
Conversation
… tool support
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.
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Contributor
|
🌿 Preview your docs: https://vapi-preview-1624bb5c-320a-4117-b6d6-cb32da125e7d.docs.buildwithfern.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
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{{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 customers{{now}}row's description to point at Advanced date and time usage below (since{{now}}is hardcoded UTC and the LiquidJS"now" | date: "...", "TZ"form is the only way to get other timezones)./tools/static-variables-and-aliasesfor the trust-tier framing and the within-assistant tool-chaining pattern.fern/tools/custom-tools.mdxfunction.parametersworks (function,apiRequest,code,handoff) vs. where the schema is Vapi-controlled or auto-derived (transferCall,endCall,dtmf,voicemail,sms,slack-send-message, GHL/Google integrations,mcp,make, and the Anthropic-nativebash/computer/textEditortools)./tools/static-variables-and-aliasesfor the static-parameters pattern that pairs withfunction.parameters.Judgment calls — variables intentionally NOT exposed
{{phoneNumber.id}},{{phoneNumber.provider}}{{call.status}},{{call.startedAt}},{{call.assistantId}}{{assistant.id}},{{assistant.name}}{{currentDateTime}}{{now}}; adds confusion ("which one?") for zero gain.{{transport.provider}}Testing Steps
fern check-- 0 errorscustom-tools.mdxrenders correctly with column wrappingSkipped
Related