Personas
create persona
Changed onCreate a new persona
post/v1/personas
Request
- Base URLhttps://api.anam.ai
- URLhttps://api.anam.ai/v1/personas
- AuthHTTP bearer
Request body
Example request
{
"name": "Cara",
"avatarId": "071b0286-4cce-4808-bee2-e642f1062de3",
"avatarModel": "cara-4",
"voiceId": "de23e340-1416-4dd8-977d-065a7ca11697",
"llmId": "a7cf662c-2ace-4de1-a21e-ef0fbf144bb7",
"systemPrompt": "You are a helpful assistant",
"initialMessage": "Hi there! I'm excited to chat with you today.",
"maxSessionLengthSeconds": 600,
"voiceDetectionOptions": {
"endOfSpeechSensitivity": 0.5,
"silenceBeforeSkipTurnSeconds": 5,
"silenceBeforeSessionEndSeconds": 60,
"silenceBeforeAutoEndTurnSeconds": 5,
"speechEnhancementLevel": 0.8,
"sttProvider": "anam"
},
"languageCode": "en",
"voiceGenerationOptions": {
"stability": 0.5,
"speed": 1
},
"toolIds": [
"tool-id-1",
"tool-id-2"
]
}Response
Successfully created persona
Example response
{
"voiceDetectionOptions": {
"endOfSpeechSensitivity": 0.5,
"silenceBeforeSkipTurnSeconds": 5,
"silenceBeforeSessionEndSeconds": 60,
"silenceBeforeAutoEndTurnSeconds": 5,
"speechEnhancementLevel": 0.8,
"sttProvider": "anam"
},
"voiceGenerationOptions": {
"stability": 0.5,
"speed": 1
}
}Changes
- warning
the
request property's maxLength was set to191 - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- warning
- info
added the non-success response with the status
- info