Personas
update persona
Changed onUpdate a persona by id
put/v1/personas/{id}
Request
- Base URLhttps://api.anam.ai
- URLhttps://api.anam.ai/v1/personas/{id}
- AuthHTTP bearer
Path parameters
idstring required
Persona id
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"
],
"widgetConfig": {
"callToAction": "Chat with our assistant",
"allowedOrigins": [
"https://example.com",
"https://app.example.com"
]
}
}Response
Successfully updated 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
- info
added the non-success response with the status
- info
- info
added the new
cara-4.1-expressenum value to the request property
- info