Passer au contenu principal
POST
/
api
/
agents
Créer un agent
curl --request POST \
  --url https://api.example.com/api/agents

Requête

curl -X POST https://app.orova.ai/api/agents \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Support Agent",
    "llm_provider": "openai",
    "llm_model": "gpt-4o-mini",
    "tts_provider": "elevenlabs",
    "tts_voice_id": "VOICE_ID",
    "stt_provider": "deepgram",
    "system_prompt": "You are a helpful support agent...",
    "first_message": "Hi! How can I help you today?",
    "recording_enabled": true,
    "workspaceId": "WORKSPACE_ID"
  }'

Paramètres

ChampTypeRequisDescription
namestringOuiNom d’affichage de l’agent
llm_providerstringOuiopenai, claude, azure
llm_modelstringOuiNom du modèle
tts_providerstringOuielevenlabs, cartesia, azure
tts_voice_idstringNonID de la voix issue du fournisseur TTS
stt_providerstringOuideepgram, azure, elevenlabs, openai
system_promptstringNonInstructions de l’agent
first_messagestringNonMessage d’accueil
recording_enabledbooleanNonActiver l’enregistrement des appels
ambience_enabledbooleanNonActiver l’ambiance sonore d’arrière-plan
workspaceIdstringOuiID de l’espace de travail

Réponse

{
  "_id": "agent_id",
  "name": "Support Agent",
  "llm_provider": "openai",
  "llm_model": "gpt-4o-mini",
  "tts_provider": "elevenlabs",
  "stt_provider": "deepgram",
  "system_prompt": "You are a helpful support agent...",
  "first_message": "Hi! How can I help you today?",
  "recording_enabled": true,
  "workspaceId": "WORKSPACE_ID",
  "createdAt": "2025-01-01T00:00:00.000Z"
}