Dynamic Conversation
Learn how to customize your AI agent for each conversation & pass additional metadata to the agent.
Learn how to customize your AI agent for each conversation by adding personalized details and passing custom parameters. For example, greet users by their name, adjust responses based on account-specific data, or include metadata to enhance interactions.
What You’ll Need
- An ElevenLabs account
- A configured ElevenLabs Conversational Agent (create one here)
- Python 3.7+ or Node.js 16+
Agent Conversation Overrides
In ElevenLabs Conversational AI, you typically define a top-level agent with default settings. This feature allows you to create tailored voice experiences, without creating new agents.
The following steps will show you how to configure the prompt
& first_message
on setup to greet the user by their name.
Enable overrides
Go to the Security
tab in your agent settings and enable overrides for the first message and system prompt.
Ensure you have the latest Javascript/React SDK installed.
Start the session with custom overrides
Ensure you have the latest Javascript/React SDK installed.
Start the session with custom overrides
Ensure you have the latest Python SDK installed.
Define the Conversation Override
Start the Session
Ensure you have the latest Swift SDK installed.
Define the Conversation Override
Start the Conversation
With this agent override feature, you can now create a single agent and customize it with every customer conversation.
Troubleshooting
Configuration Issues
Configuration Issues
If the configuration override isn’t working:
- Verify the configuration structure matches the expected format
- Check that all required fields are present
- Ensure the config object is properly passed to the Conversation constructor