Create Workflow
Reference for creating a custom org Workflow template via POST /v1/workflows.
Authorizations
API key for authentication. Get yours at platform.valyu.ai.
Body
Create an organization workflow. The authenticated org owns the workflow. Default org quota is 100 workflows. The first version is supplied as the nested version object.
Unique slug within your org.
"quarterly-company-profile"
"Quarterly Company Profile"
The workflow's first version body.
"One-page profile of a public company."
"Builds a company profile covering business, financials, and recent developments."
"investment-banking"
20["company-profile", "equities"]"building"
Response
Workflow created.
A single workflow returned as a flat object: the list-row fields plus the resolved version body (prompt, strategy, report_format, tools, changelog, output_formats). Returned by get, create (201), and update.
Unique slug identifying the workflow within its scope. Used as workflow_id when running.
"ib-company-profile"
The current (floating) published version number.
x >= 11
Display title.
"Company Profile"
Vertical the workflow targets (e.g. investment-banking, private-equity, hedge-funds, consulting, life-sciences, legal-regulatory, sales-intelligence, supply-chain).
"investment-banking"
Tags for discovery. Up to 20.
20["company-profile", "equities"]Short subtitle.
"One-page profile of a public company."
Longer description of what the workflow does.
"Builds a company profile covering business, financials, and recent developments."
Whether the workflow is flagged as popular.
true
Recommended DeepResearch mode for a workflow. Maps directly to the DeepResearch mode parameter.
fast, standard, heavy, max "heavy"
Human-readable estimate of how long a run takes.
"10-20 min"
Whether this is a Valyu-curated workflow (read-only to users).
true
Organization that owns the workflow. null for Valyu-curated workflows.
null
Typed variables referenced by the prompt template. Up to 50.
50Deliverables the workflow produces. Up to 20.
20When the workflow was created.
"2026-01-10T12:00:00Z"
When the workflow's current version was last published.
"2026-01-15T09:30:00Z"
Prompt template with {key} placeholders. Included on detail (get/create/update) and on list with ?expand=true.
"Build a company profile for {company} covering its business, financials, and recent developments."
Research strategy. Maps to DeepResearch research_strategy. Included on detail and on list with ?expand=true.
Report format instructions. Maps to DeepResearch report_format. Included on detail and on list with ?expand=true.
Optional tools the workflow's research agent may use.
Changelog for the current version. Included on detail and on list with ?expand=true.
Output formats the workflow produces. Items are the strings "markdown", "pdf", or "toon", and/or a single JSON Schema object for structured output. Rules: at most one JSON Schema object; a JSON Schema object cannot be combined with "markdown" or "pdf"; "toon" requires a JSON Schema object. An invalid combination returns 400 invalid_output_formats.
At run time, a task created with workflow_id inherits the workflow's output_formats when the request does not pass its own; a request-level output_formats always wins.
markdown, pdf, toon [
{
"type": "object",
"properties": {
"base_case": { "type": "string" },
"bull_case": { "type": "string" },
"bear_case": { "type": "string" },
"confidence": { "type": "number" }
}
},
"toon"
]
