The persona configuration
Every persona is defined by a single configuration object:
You can also extend a persona with a Knowledge Base for document-grounded answers, and Tools for taking actions during a conversation. Personas aren’t limited to your own app either: you can invite them to join your video meetings.
Persona lifecycle
1
Configure
Define the persona’s appearance, voice, and personality in a configuration object.
2
Create a session token
Your server exchanges the persona configuration and your API key for a short-lived session token.
3
Stream
The client uses the session token to start the avatar stream and begin the conversation.
4
Conversation
Real-time back-and-forth between the persona and the user.
5
Session end
The conversation ends and the session is cleaned up.
Experimenting in the Lab
The easiest way to try different avatars, voices, and LLMs is the playground in Anam Lab. From the build page you can swap components, preview over 400 voices, and copy IDs into your own code when you’re happy with the result.Next steps
Prompting Guide
Write system prompts that produce natural, conversational personas.
Session Options
Configure session duration, voice detection, and greeting behavior.

