Skip to Content

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:

PropertyRule
name1–64 characters, unique within the object
typestring, integer, number, boolean, enum, or array
requiredDefaults to false
enum_valuesEnums only: 1–100 values
item_typeArrays 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:

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.

See also

Calls · Analysis boards · Webhook payloads

On this page