Create a new workflow
Create a workflow from natural-language instructions, an existing schema, an inline schema, raw-data output options, or a published template.
Body
Body
- WorkflowFromTemplate
- PromptWorkflow
- WorkflowWithExistingSchema
- WorkflowWithEntityAndFields
Create a workflow by instantiating a published template. Only urls and templateId are required; prompt, schema, frequency, and notifications are inherited from the template version. templateVersion is optional — omit it to use the latest published version.
Example: {"urls": ["https://example.com"], "templateId": "..."}
Source URLs. Multiple URLs must belong to one website: subdomains and country domains of the same name (acme.com, careers.acme.co.uk) count as one website. Requests that span several websites are rejected with 422 SOURCES_MULTIPLE_SITES; create one workflow per website instead, optionally from a shared template.
1How frequently this workflow should run (ONLY_ONCE, HOURLY, DAILY, WEEKLY, etc.)
ONLY_ONCE, EVERY_10_MINUTES, EVERY_20_MINUTES, HALF_HOURLY, HOURLY, TWO_HOURLY, THREE_HOURLY, FOUR_HOURLY, SIX_HOURLY, TWELVE_HOURLY, EIGHTEEN_HOURLY, DAILY, TWO_DAY, THREE_DAY, WEEKLY, BIWEEKLY, TRIWEEKLY, FOUR_WEEKS, MONTHLY, CUSTOM