Lead Segmentation
Analyzes a lead and assigns them to the most suitable segment based on available data.
POST /api/agents/dataAnalyst/leadSegmentation
Request Body
{
"lead_id": "123e4567-e89b-12d3-a456-426614174000",
"site_id": "123e4567-e89b-12d3-a456-426614174000",
"auto_assign": true
}| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | string | Yes | The UUID of the lead to segment. |
site_id | string | Yes | The UUID of the site. |
auto_assign | boolean | No | Whether to automatically update the lead’s segment (default: true). |
Response
Returns the recommended segment, confidence score, and reasoning.
Last updated on