Skip to main content
POST
/
v2
/
ai-agents
/
{ai_agent_id}
/
postcall-analysis
Create a new post-call analysis configuration
curl --request POST \
  --url https://api.example.com/v2/ai-agents/{ai_agent_id}/postcall-analysis/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "type": "<string>",
      "name": "<string>",
      "description": "<string>",
      "analysis_prompt": "<string>",
      "temperature": 0.1,
      "model": "gpt-4o",
      "response_format": {}
    }
  ]
}
'
{
  "items": [
    {
      "type": "<string>",
      "name": "<string>",
      "description": "<string>",
      "analysis_prompt": "<string>",
      "temperature": 0.1,
      "model": "gpt-4o",
      "response_format": {}
    }
  ],
  "created_by_user_id": "<string>",
  "ai_agent_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Path Parameters

ai_agent_id
string
required

Body

application/json
items
(StringAnalysisItem · object | EnumAnalysisItem · object | BooleanAnalysisItem · object | NumberAnalysisItem · object)[]
required

List of analysis items to configure for post-call analysis. Each item defines what should be analyzed and how

Response

Successful Response

items
(StringAnalysisItem · object | EnumAnalysisItem · object | BooleanAnalysisItem · object | NumberAnalysisItem · object)[]
required

List of analysis items configured for post-call analysis

created_by_user_id
string
required

Identifier of the user who created this analysis configuration

ai_agent_id
string
required

Identifier of the AI agent this analysis configuration is associated with

created_at
string<date-time>

Timestamp when this analysis configuration was created, in UTC

updated_at
string<date-time> | null

Timestamp when this analysis configuration was last modified, in UTC. Null if never modified