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
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 isuserPrompt in REST and the SDKs, and prompt in MCP. additionalInstructions is internal and should not be sent by clients.
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. Passname to create a new template, or templateId to add a new version to an existing one:
Node SDK