Attach metadata to your call sessions for personalized conversations
start
method. The third parameter, include_metadata_in_prompt
, determines whether the metadata should be included in the agent’s system prompt.
agentId
or a temporary agent configuration.include_metadata_in_prompt
, which controls whether the metadata is used by the agent during the conversation.initiate
method payload.
start_outbound_call
API. You can also specify whether to include the metadata in the agent’s prompt.
from_phone
: One of your agent’s phone numbers.to_phone
: The phone number of the call recipient.metadata
: Optional. Any extra data you want to attach to the session.include_metadata_in_prompt
: Optional. Set to true
to include metadata in the agent’s prompt. Defaults to false
.{variableName}
syntax.
For example, if you add metadata like:
{userName}
or {userType}
in various places during the call.
For detailed information about using variables, including syntax and examples, see our Variables documentation.