curl -X POST https://api.thinnest.ai/v1/agents \
-H "Authorization: Bearer $THINNESTAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Support Agent with Escalation",
"model": "gpt-4o",
"instructions": "You are a customer support agent. Monitor the caller emotional state. If they become frustrated for multiple turns, acknowledge their feelings empathetically before escalating.",
"voiceEnabled": true,
"transcriber": { "provider": "deepgram", "model": "nova-2-conversationalai" },
"voice": { "provider": "deepgram", "voiceId": "aura-2-thalia-en" },
"sentimentEscalationEnabled": true,
"sentimentThreshold": 3,
"sentimentWindowTurns": 3,
"sentimentEscalationAction": "transfer",
"sentimentEscalationTarget": "+14155551234"
}'