Conversation
…nd chat Explains how variableValues work when using sessions with the Chat API: - Variables are substituted at session creation and "baked in" - Subsequent chat requests cannot override with new variableValues - Fresh templates must be provided to use different values Includes code examples, quick reference table, and best practices. VAP-11219 Co-Authored-By: Claude <noreply@anthropic.com>
VAP-11219 Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
🌿 Preview your docs: https://vapi-preview-6fa05ddf-4266-45c0-8553-d30c6125cc1c.docs.buildwithfern.com |
- Changed all examples from gpt-4o-mini to gpt-4.1
- Added note explaining that Vapi uses LiquidJS for variable substitution
- Clarified that {{ }} syntax follows Liquid template language conventions
VAP-11219
Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
🌿 Preview your docs: https://vapi-preview-71aede7e-ac42-48aa-bd62-e224b4fc2586.docs.buildwithfern.com |
Remove TypeScript and Python code examples, keeping only cURL for cleaner documentation. VAP-11219 Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
🌿 Preview your docs: https://vapi-preview-8afac9b4-d6a2-49b8-ad33-37c41b92b209.docs.buildwithfern.com |
Replace placeholder IDs with proper UUID format examples. VAP-11219 Co-Authored-By: Claude <noreply@anthropic.com>
stevenbdf
approved these changes
Jan 15, 2026
Contributor
|
🌿 Preview your docs: https://vapi-preview-804c426d-094d-4aa4-9521-d110e112bbc5.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.
Summary
fern/chat/variable-substitution.mdx) explaining howvariableValuesbehave when using sessions with the Chat APIfern/docs.ymlto add the new page to the Chat section navigationWhat this documents
This page explains a critical behavior that developers need to understand:
assistantOverrides.variableValuesinPOST /session, the template placeholders (e.g.,{{name}}) are immediately substituted and the pre-substituted assistant is storedsessionIdautomatically use the stored values{{}}placeholders no longer exist in the stored assistant{{}}placeholders along with newvariableValuesContent includes
Test plan
Closes VAP-11219
🤖 Generated with Claude Code