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.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
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’smodel 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
Anazure/ 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 examplegpt-4.1-miniforazure/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-previewor later. If the version saved on your connection is older, extractions use2025-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.
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_idisnull. Runs first, on every call that passes its start rule:min_duration_s(integer,1to86400) skips calls shorter than that many seconds, measured as the duration shown in call history, andskip_voicemail: trueskips 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_modeandmatch_values, always together. Runs after the category that holds the parent disposition, when the parent’sobjectiveanswer is (in) or is not (not_in) one ofmatch_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 isnull, in either mode. A follow-up can’t setmin_duration_sorskip_voicemail: true.
- The parent must be an objective disposition (
is_objective: true) in another of the agent’s categories. - Every
match_valuesentry must be one of the parent’sobjective_optionsvalues, 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.
/agent/{agent_id}/extraction-categories:
Create a follow-up
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:
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 with400 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
categorylabel 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.
PATCHaccepts any ofname,model,managed_byand the five run-rule fields, but an empty body is rejected with a422error.
For a full walkthrough of the Extractions feature, answer types, output format, and best practices, see the Using Extractions guide.