Create your own personas
Create your own persona using the Anam API
Learn how to create and customize your own Anam persona
Creating Custom Personas with the API
You can create your own custom personas using the Anam API’s /v1/personas
endpoint. Custom personas allow you to define specific characteristics and behaviors for your use case.
Required Parameters
Persona Parameters
Parameter | Description |
---|---|
name | The name for the persona. Used as a human-readable identifier. |
description | A brief description of the persona’s role (optional). Not used by the LLM. |
personaPreset | Defines the face and voice of the persona from available presets. |
brain | Configuration for the persona’s LLM ‘brain’. |
Brain Parameters
Parameter | Description |
---|---|
systemPrompt | The prompt used for initializing LLM interactions. |
personality | A short description of the persona’s character traits. |
fillerPhrases | Phrases used to enhance interaction response times. |
Implementation Example
Here’s how to create a custom persona using the API:
The API will respond with the created persona’s details, including its ID:
Using Your Custom Persona
Once created, you can use your custom persona with the SDK:
For production use, always use the secure client creation method with session tokens instead of API keys.
Was this page helpful?