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:- Run the same extraction logic across multiple websites
- Want to roll out prompt or schema changes to many workflows at once
- Need versioned configurations with the ability to roll back
- Share standardized extraction setups across your team
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
Versioning
Templates support versioning so you can iterate on configurations and roll back if needed.Publish a New Version
Each version can include prompt, schema fields, data validation rules, and notification settings:Version Parameters
| Parameter | Description |
|---|---|
prompt | User prompt to copy into linked workflows |
schemaFields | Inline schema fields (mutually exclusive with schemaId) |
schemaId | Reference an existing saved schema (mutually exclusive with schemaFields) |
schemaEntity | Entity name for the schema |
dataValidation | Validation config and rules (regex, custom_sql, or llm) |
notifications | Notification event-to-channel mappings |
List Linked Workflows
Save from Workflow
Create a template from an existing workflow’s configuration. Passname to create a new template, or templateId to add a new version to an existing one:
Node SDK