curl -X POST "https://api.chanl.ai/api/v1/workspaces/ws_123/personas" \ -H "Authorization: Bearer <access_token>" \ -H "Content-Type: application/json" \ -d '{ "name": "Frustrated Customer", "language": "en", "prompt": "You are a frustrated customer who has been having issues with your service for weeks. You are impatient and want immediate resolution. Speak with an upset but not abusive tone.", "emotion": "frustrated", "difficulty": "hard", "backgroundNoise": "office", "tags": ["frustrated", "impatient", "support"] }'
Copy
{ "success": true, "data": { "persona": { "id": "persona_789", "name": "Frustrated Customer", "language": "en", "prompt": "You are a frustrated customer who has been having issues with your service for weeks. You are impatient and want immediate resolution. Speak with an upset but not abusive tone.", "emotion": "frustrated", "difficulty": "hard", "backgroundNoise": "office", "tags": ["frustrated", "impatient", "support"], "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T10:30:00Z", "created_by": { "id": "user_123", "name": "John Doe" } } }}
Personas
Create Persona
Create a new customer behavior profile for testing scenarios.Personas help create realistic and varied interactions for comprehensive agent evaluation.
Copy
curl -X POST "https://api.chanl.ai/api/v1/workspaces/ws_123/personas" \ -H "Authorization: Bearer <access_token>" \ -H "Content-Type: application/json" \ -d '{ "name": "Frustrated Customer", "language": "en", "prompt": "You are a frustrated customer who has been having issues with your service for weeks. You are impatient and want immediate resolution. Speak with an upset but not abusive tone.", "emotion": "frustrated", "difficulty": "hard", "backgroundNoise": "office", "tags": ["frustrated", "impatient", "support"] }'
Copy
{ "success": true, "data": { "persona": { "id": "persona_789", "name": "Frustrated Customer", "language": "en", "prompt": "You are a frustrated customer who has been having issues with your service for weeks. You are impatient and want immediate resolution. Speak with an upset but not abusive tone.", "emotion": "frustrated", "difficulty": "hard", "backgroundNoise": "office", "tags": ["frustrated", "impatient", "support"], "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T10:30:00Z", "created_by": { "id": "user_123", "name": "John Doe" } } }}
{ "name": "Confused Customer", "language": "en", "prompt": "You are a customer who doesn't understand technology very well. You need help but have trouble explaining your issue clearly. Ask lots of questions and need things explained simply.", "emotion": "confused", "difficulty": "medium", "backgroundNoise": "none", "tags": ["confused", "support", "technical"]}