Loading...
Loading...
Compare original and translation side by side
curl -X POST https://tavusapi.com/v2/conversations \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"replica_id": "rfe12d8b9597",
"persona_id": "pdced222244b"
}'{
"conversation_id": "c123456",
"conversation_url": "https://tavus.daily.co/c123456",
"status": "active"
}conversation_urlcurl -X POST https://tavusapi.com/v2/conversations \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"replica_id": "rfe12d8b9597",
"persona_id": "pdced222244b"
}'{
"conversation_id": "c123456",
"conversation_url": "https://tavus.daily.co/c123456",
"status": "active"
}conversation_urlrfe12d8b9597re8e740a42pdced222244bp24293d6rfe12d8b9597re8e740a42pdced222244bp24293d6curl -X POST https://tavusapi.com/v2/personas \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"persona_name": "Sales Coach",
"pipeline_mode": "full",
"system_prompt": "You are a friendly sales coach helping reps practice cold calls. Ask probing questions and give constructive feedback.",
"context": "Focus on B2B SaaS sales scenarios.",
"default_replica_id": "rfe12d8b9597"
}'{
"persona_id": "p123456",
"persona_name": "Sales Coach"
}curl -X POST https://tavusapi.com/v2/personas \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"persona_name": "Sales Coach",
"pipeline_mode": "full",
"system_prompt": "You are a friendly sales coach helping reps practice cold calls. Ask probing questions and give constructive feedback.",
"context": "Focus on B2B SaaS sales scenarios.",
"default_replica_id": "rfe12d8b9597"
}'{
"persona_id": "p123456",
"persona_name": "Sales Coach"
}curl -X POST https://tavusapi.com/v2/conversations \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"persona_id": "p123456",
"conversation_name": "Practice Session"
}'curl -X POST https://tavusapi.com/v2/conversations \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"persona_id": "p123456",
"conversation_name": "Practice Session"
}'{
"persona_id": "p123456",
"replica_id": "rfe12d8b9597",
"conversation_name": "Demo Call",
"conversational_context": "User is interested in enterprise pricing.",
"custom_greeting": "Hi! I'm excited to help you today.",
"callback_url": "https://your-webhook.com/tavus",
"properties": {
"enable_recording": true,
"max_duration": 600
}
}{
"persona_id": "p123456",
"replica_id": "rfe12d8b9597",
"conversation_name": "Demo Call",
"conversational_context": "User is interested in enterprise pricing.",
"custom_greeting": "Hi! I'm excited to help you today.",
"callback_url": "https://your-webhook.com/tavus",
"properties": {
"enable_recording": true,
"max_duration": 600
}
}curl -X POST https://tavusapi.com/v2/conversations/{conversation_id}/end \
-H "x-api-key: YOUR_API_KEY"curl -X POST https://tavusapi.com/v2/conversations/{conversation_id}/end \
-H "x-api-key: YOUR_API_KEY"| Concept | What it is |
|---|---|
| Replica | The visual avatar (face, appearance) |
| Persona | Behavior, voice, LLM config, system prompt |
| Conversation | A live WebRTC session combining replica + persona |
| 概念 | 定义 |
|---|---|
| Replica | 虚拟形象(面部、外观) |
| Persona | 行为、语音、LLM配置、系统提示词 |
| Conversation | 结合Replica与Persona的实时WebRTC会话 |
fullechoaudiofullechoaudio