Before you begin
You need a team API key. Install the SDK withnpm install @kadoa/node-sdk, yarn add @kadoa/node-sdk, or uv add kadoa-sdk.
The examples on this page start from an authenticated client:
Choose the source
Pass the URLs inurls. One workflow covers one website. See the source rules.
If the URLs span several websites, the API rejects the request with 422 SOURCES_MULTIPLE_SITES. Create one workflow per website instead, optionally from a shared template.
Write the prompt
Pass the prompt inuserPrompt. It describes what to extract and how to reach it. See how to write good prompts.
Auto-detect fields
If you pass only the URL, Kadoa proposes a schema and extracts all relevant data from the page:Define the fields
For exact control over the output, define the entity and its fields:STRING, NUMBER, BOOLEAN, DATE, DATETIME, MONEY, IMAGE, LINK, OBJECT, ARRAY. See data types for what each holds, and Schemas to reuse a saved schema.
Classify records
To sort each record into classes you define, such as an article’s tone or topic, add aclassify field with a title and definition for each class:
Limit records per run
Passlimit when you run the workflow, as the examples above do. It caps the records each run extracts, not the records you fetch afterward. Without it, the workflow extracts all records. In the REST API, set limit in the create request.
Schedule the workflow
A new workflow runs once unless you give it a schedule. CallsetInterval() in the Node SDK or set_interval() in the Python SDK. In the REST API, pass interval, and schedules for cron expressions. See Scheduling for every interval, cron examples, and timezones.
Create from a template
PasstemplateId to start from a template. The workflow takes the template’s schema, data quality rules, notifications, frequency, and record limit, and those parts become read-only. Put instructions for this source in userPrompt. Later template updates don’t overwrite them. Omit templateVersion to use the latest published version. See Create workflows from a template.
REST API
Skip the preview
A new workflow stops at a preview for you to review.bypassPreview skips the review and activates the workflow immediately. Use it only when you trust the configuration.
Related
- Create workflow API reference
- Manage workflows: list, update, pause, and delete workflows.
- Export data: fetch the extracted data.