Skip to main content
Templates let you define reusable configurations (prompt, schema, data validation rules, notification settings, and run frequency) that can be linked to multiple workflows and versioned over time.

Prerequisites

  • Kadoa account with API key
  • SDK installed: npm install @kadoa/node-sdk
Templates are currently available in the Node SDK. Python SDK support is coming soon.

When to Use Templates

Use templates when you:
  • Extract the same kind of data, in the same structure, from many sources. The agent’s route through each site can differ; the schema and rules stay the same.
  • Want to roll out prompt, schema, data quality, notification, frequency, or record limit changes to many workflows at once
  • Need versioned configurations with the ability to roll back
  • Share standardized extraction setups across your team
For guidance on what to put in each part, see Template Best Practices. For one-off extractions, inline schema definitions are simpler and don’t require template management.

Create a Template

List Templates

Get a Template

Retrieve a template by ID, including all published versions:

Update a Template

Modify a template’s name or description:

Delete a Template

Deleting a template archives it. Existing linked workflows keep their current configuration but are unlinked.

Versioning

Templates support versioning so you can iterate on configurations and roll back if needed.

Publish a New Version

Each version is a complete snapshot. Send only the parts you want to change; anything you leave out keeps the previous version’s value. The example below replaces the prompt and schema and keeps the previous rules, notifications, and frequency.

Version Parameters

Leave a parameter out to keep the previous version’s value. To remove a part from the template, set it to null, except for record limit: use recordLimitManaged: false to let workflows control their own limits. Setting recordLimit: null keeps the limit template-managed. Schema fields accept name, description, dataType, an optional instruction, an optional example (a JSON string for OBJECT and ARRAY), and isKey.

Create a Workflow from a Template

A workflow created from a template inherits the selected version’s prompt, schema, validation rules, notifications, and frequency. Optionally pass workflow-specific instructions: they are added to the template prompt and remain attached to that workflow when a later template version is applied. The public field is userPrompt in REST and the SDKs, and prompt in MCP. additionalInstructions is internal and should not be sent by clients.
Omitting templateVersion resolves the latest published version once at request time. When the selected template has no prompt, userPrompt becomes the complete workflow prompt.

List Linked Workflows

Save from Workflow

Create a template from an existing workflow’s configuration. Pass name to create a new template, or templateId to add a new version to an existing one:
To add as a new version to an existing template:
Node SDK

List Template Schemas

View the schemas associated with a template’s versions: