OptionalcallGen?: stringGeneration handle of the call-active window this mint stamped (0.41.0). Self-plumbed integrations: pass it to endSession({ callGen }) at call end so the server clears exactly this call's window — a stale handle's late teardown then can't clear a newer call's window. connectCall() handles this automatically.
OptionalfirstMessage?: stringFirst-message override ('' = suppress the canned greeting so the call opens in-character / context-aware). Pass as overrides.agent.firstMessage.
Pass as overrides.agent.prompt.prompt when starting the EL session.
Optionallanguage?: stringServer-resolved agent language (ISO 639-1, e.g. 'zh'). Pass as overrides.agent.language so the call opens in the user's language.
EL conversation token (open WebRTC with @elevenlabs/client).
Optionalvoice?: stringServer-resolved EL voice id (the user's cloned/localized voice). Pass as overrides.tts.voiceId so the call isn't a stock default voice.
OptionalvoiceToolToken?: stringCall-scoped bearer the agent's memory webhook tool presents back to us
mid-call (0.45.0). Self-plumbed integrations: pass it to
Conversation.startSession under BOTH dynamic variable names
(0.47.0) —
dynamicVariables: { [VOICE_TOOL_VARIABLE]: creds.voiceToolToken, [VOICE_TOOL_VARIABLE_PLAIN]: creds.voiceToolToken }.
ElevenLabs IGNORES a client-supplied secret__ variable, so the plain
twin is the one that arrives; it reaches the tool as a request-body
property the platform fills, never as prompt content the LLM sees.
Passing only the first name raises no error — it just leaves the
companion unable to recall anything. connectCall() handles this
automatically.
ABSENT, not empty, when the session cannot read memory: a client with no memory grant has nothing to pass, rather than something that fails inside a live call. Omitting it does not break the call — recall just answers "no stored memory".
OptionalcallGen?: stringSee the elevenlabs-convai branch — same window-generation handle.
Ephemeral client secret (ek_…); open WebRTC directly to OpenAI.
Voice-plane credentials, discriminated by provider (see startCall).