Skip to main content

What are extraction categories?

Extractions is the Bolna feature that automatically captures structured data from call transcripts after every call. A category is a named set of dispositions evaluated together in a single LLM pass — one category means one LLM call per conversation. Each disposition is a single question inside its category.
The category owns the model used for its pass: every disposition in the category is evaluated by the category’s model in one call. A category belongs to the agent it was created for, and that agent runs every disposition the category holds.

Endpoints

Dispositions are created and placed into categories through the Dispositions API: pass category_id (preferred) or a category name on create or update — at most one of the two per payload. A category name that does not match one of the agent’s categories creates a fresh category.

Category object

All five rule fields are always present on category responses. See Run rules.

Supported models

A category’s model must be one of: Any other value is rejected with a 422 error. GET /dispositions/models returns the same list. A category created implicitly by a category name on a disposition takes that disposition’s model, falling back to gpt-4.1-mini.

Azure OpenAI models

An azure/ model runs on Bolna’s Azure OpenAI resource, like every other model on this list. To run a category on your own Azure resource instead, connect your Azure account and set the category’s managed_by to "user". When a category runs on your Azure resource:
  • Deployment names: your resource needs a deployment named after the model without the azure/ prefix, for example gpt-4.1-mini for azure/gpt-4.1-mini. Bolna does not use the deployment name saved on the connection.
  • API version: extractions use the Azure OpenAI Responses API, which needs API version 2025-03-01-preview or later. If the version saved on your connection is older, extractions use 2025-04-01-preview. Your agents’ calls keep the saved version.
  • Region: the Responses API and each model are available only in some Azure regions. Check Azure OpenAI model availability for your resource’s region.
If a deployment is missing or your key is rejected, the category’s extractions come back empty for that call. Your agents’ calls are not affected.

Run rules

Five fields on the category decide when it runs. Send them on create or update; they are returned on every category response. A category is one of two kinds:
  • Starting category — parent_disposition_id is null. Runs first, on every call that passes its start rule: min_duration_s (integer, 1 to 86400) skips calls shorter than that many seconds, measured as the duration shown in call history, and skip_voicemail: true skips calls that ended on voicemail, caught by Bolna’s voicemail detection or the carrier’s answering-machine detection. A call must pass every condition set; with none set the category runs on every call.
  • Follow-up — parent_disposition_id, match_mode and match_values, always together. Runs after the category that holds the parent disposition, when the parent’s objective answer is (in) or is not (not_in) one of match_values, where a listed value also covers the sub-options under it. A follow-up never runs when the parent’s category was skipped or failed or the parent’s answer is null, in either mode. A follow-up can’t set min_duration_s or skip_voicemail: true.
For a follow-up:
  • The parent must be an objective disposition (is_objective: true) in another of the agent’s categories.
  • Every match_values entry must be one of the parent’s objective_options values, sub-options included, matched exactly. An answer of a sub-option also matches the value above it.
  • A category has one parent. A category can be the parent of any number of follow-ups, at any depth, but the chain can’t loop.
For a follow-up, POST to /agent/{agent_id}/extraction-categories:
Create a follow-up
On PATCH, only the fields you send change, and an explicit null clears a rule field. To switch a category from one kind to the other, clear the old fields in the same request:
Categories at the same step run in parallel, so each step of follow-ups adds one LLM call’s wait before the post-call webhook. A skipped category makes no LLM call and is not billed; its dispositions still appear in extracted_data with status: "skipped" and a status_reason (see Result status). Rule changes apply to calls that end after the change; past results are not re-extracted. Test dispositions follows follow-ups, but start rules always pass there.

Refused changes

A change that would break a rule is refused with 400 and a message naming the category that carries the rule. The same response comes back from Update disposition, Delete disposition and Delete category when the change would break a follow-up. The message is written to be shown to a user as is.

Lifecycle rules

  • Move a disposition between categories: update the disposition with the new category_id (see Update Disposition). There is no separate move endpoint.
  • Renaming a category rewrites the category label on all of its dispositions in the same transaction, so extraction results stay grouped consistently.
  • Deleting a category deletes its dispositions. The category owns them. Historical call execution results are not affected. A delete that would leave a follow-up without its parent is refused (see Refused changes).
  • Empty categories are removed automatically: when a move or delete removes a category’s last disposition, the category itself is deleted.
  • Category names are per agent. Two agents can each have a category named Sales; these are independent categories.
  • An update must change something. PATCH accepts any of name, model, managed_by and the five run-rule fields, but an empty body is rejected with a 422 error.
For a full walkthrough of the Extractions feature, answer types, output format, and best practices, see the Using Extractions guide.