{{variable_name}} placeholders in your agent’s system prompt or first message and supply values when you create the session. Substitution happens once, when the published configuration is assembled for the session.
System prompt
[A-Za-z][A-Za-z0-9_]* (no hyphens or dots), string values are capped at 1,000 characters, and a request can carry at most 50 variables — violations reject session creation with 422:
Session records never store dynamic variable values.
{{placeholders}} render inside overridden text too.
Who supplies the values
Where variable values come from depends on the session’s access mode:
In
sessionToken mode the SDK’s dynamicVariables option has no effect — the session already exists by the time the token reaches the browser. Attach personalization server-side instead:
Backend (sessionToken mode)
Going further
Agent configuration
The fields your placeholders act on.
Overrides
Replace whole configuration fields for one session.
Versions & publishing
Sessions assemble the published configuration.
Web SDK
Every
AgentSession.start() option.
