Lookup: create a segment from a description
Lookups (Chrome extension)
Lookup: create a segment from a description
Natural-language description → applied filter segment
POST
Lookup: create a segment from a description
Creates a segment from a natural-language description. Used by the Chrome extension’s “Create stream from search” flow.
The AI pipeline maps the description to canonical filter labels via the audit-079 auto-approve workflow (LLM-proposed labels are materialized into the controlled vocabulary, then re-mapped, in one call).
Body
| Field | Type | Description |
|---|---|---|
description | string (required) | Natural-language description, max 1000 chars |
trackedAccountId | number | Optional - assign the new segment to this tracked account via the default-stream chokepoint |
Response
assignment is null when trackedAccountId was not supplied. assignError is populated on cap-exceeded / not-found / account-inactive.
Errors
| Code | HTTP | When |
|---|---|---|
no_filters_matched | 400 | LLM couldn’t extract any filters from the description |
cap_exceeded (in assignError) | - | Tier cap of segments-per-account exceeded |