Analyze
Analyzes WhatsApp messages to extract insights, sentiment, and action items.
POST /api/agents/whatsapp/analyze
Request Body
{
"messageIds": ["msg_uuid1", "msg_uuid2"],
"agentId": "123e4567-e89b-12d3-a456-426614174000",
"site_id": "123e4567-e89b-12d3-a456-426614174000"
}| Parameter | Type | Required | Description |
|---|---|---|---|
messageIds | string[] | Yes | Array of message UUIDs to analyze. |
agentId | string | Yes | The UUID of the agent performing analysis. |
site_id | string | Yes | The UUID of the site. |
analysis_type | string | No | Type of analysis (default: ‘comprehensive’). |
lead_id | string | No | Associated lead UUID. |
conversation_id | string | No | Associated conversation UUID. |
Response
Returns a command ID for the asynchronous analysis task.
Last updated on