How the agent builds a schema
When you create a workflow with Kadoa’s agent, it builds the schema for you.- If you name the fields in your prompt, for example “extract title, price, and rating”, the agent uses exactly those.
- If you don’t, the agent recommends fields based on the source.
If your workflow uses a template, the template manages its schema. Edit the schema in the template instead.
Field kinds
Every field gets its value in one of three ways.
In the SDK and API, each kind has its own shape:
Function fields
A function field holds a value Kadoa computes instead of reading it from the page. Each function has an output data type. Functions marked AI use a model on every record.- Custom categories puts each record into one of the categories you define, for example sentiment or priority.
- Unique ID gives each record a stable identifier. It works well as a key field.
Custom categories is available to every team. Other functions depend on your team. The editor lists only the functions your team can use.
Source fields
A source field keeps raw page content next to the extracted data. It holds the page URL, the full HTML, or the full Markdown of each page. The schema editor does not add source fields. Add them with the SDK or API, as shown in Add a source field. Every schema has key fields that identify a record across runs.Transformations
Some workflows transform data after extraction, for example to categorize records or compute derived fields. A transformation reads input fields as context and produces output fields. Each output field has a summary of how it is computed, when one is available. To review a workflow’s transformation:- In the dashboard, open the Pipeline panel.
- With the API, read the
transformationobject from Get workflow by ID.
Create or edit fields
- Dashboard
- SDK & API
- MCP
To edit a field:
- Open the workflow and select the Schema tab.
- Select the field to see its details.
- Select the pencil icon to open the inline edit form.
- Change the field and select Done.
- Select Save changes.
- In the Schema tab, select Add field.
- Select a data type for a value the agent reads from the page.
- Enter the Field name, Description, and Example, then select Done.
- Select Save changes.
Add a function field
- Dashboard
- SDK & API
- In the Schema tab, select Add field.
- Select a function, such as Custom categories or Unique ID. Each function shows its output type. Functions marked AI use a model on every record.
- Configure the function and select Done.
- Select Save changes.
Add a source field
You add source fields with the SDK or API. The dashboard schema editor does not add them. Add aSCHEMA field with params.sourceKey instead of an extraction instruction. These source keys are supported:
Reuse a schema
- Dashboard
- SDK & API
- MCP
To reuse a schema across workflows, save it in a template. A template packages a prompt, schema, data quality rules, and notification settings into one versioned unit.
- Open Templates and select Create template.
- Define your fields in the Schema tab.
- When you create a workflow, select the template to pre-fill its schema.
Manage saved schemas
You manage saved schemas with the SDK or API.Get a schema
Retrieve an existing schema by ID:Update a schema
Change a schema’s name, entity, or fields:Delete a schema
Remove a schema you no longer need:Deleting a schema does not affect existing workflows or extractions created with it.
Data types
Each extracted field has a data type. Kadoa uses it to extract and validate the value.Data type formats
Some data types return structured values:The
amount field is always in the smallest currency unit, for example cents for USD and pence for GBP.