Extraction objects
Turn every finished call into structured data — a policy number, an incident type, a yes or no.
A transcript is hard to report on. An extraction object says what you want out of each call, as named typed fields, and we fill it in after every conversation.
curl -X POST https://api.kejue.co/v1/extraction-objects \
-H "Authorization: Bearer $KEJUE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: create-fnol-extraction-20260906-01" \
-d '{
"name": "FNOL summary",
"fields": [
{"name": "policy_number", "type": "string", "required": true},
{"name": "incident_type", "type": "enum",
"enum_values": ["collision", "theft", "weather", "other"]},
{"name": "injuries_reported", "type": "boolean"}
]
}'Over the API: POST /v1/extraction-objects.
Fields
1 to 100 fields per object:
| Property | Rule |
|---|---|
name | 1–64 characters, unique within the object |
type | string, integer, number, boolean, enum, or array |
required | Defaults to false |
enum_values | Enums only: 1–100 values |
item_type | Arrays only: string, integer, or number |
Prefer an enum over a string wherever you can. "collision" and "a
collision" and "car crash" are three values in a report and one in an enum.
Using the results
Attach the object to an agent's after-call configuration (see Agents) and every completed call gets a result. Ingested human calls can be extracted too.
The results show up in four places:
- On the call record.
- As a filter on the call list — find every call where
incident_typecame out astheft. - In the
extractionsarray of thecall.completedwebhook. - As a query source on analysis boards, which is where it becomes a chart.
Changing an object
A PATCH with fields replaces the whole schema. Calls that already ran
keep the schema they were extracted with, so your historical data doesn't
change shape under you.
An object attached to an active agent can't be archived; the error lists what to detach.