Create workflow
create_workflowCreate an empty workflow with manual, cron, or webhook triggers. Returns workflow ID and webhook URL; build steps via an agent, then run it.
Instructions
Create an empty workflow. Returns the new workflow, including its id and — for a webhook trigger — its hook URL. trigger_kind defaults to "manual" (run it on demand with run_workflow); "cron" needs a cron_expr; "webhook" mints a public hook URL. A new workflow has no steps and cannot run yet: ask one of your agents to build them (invoke_agent with a message like "build the steps for workflow : " — the agent has the build tools), then fire it with run_workflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A short name for the workflow. | |
| agent_id | No | Optional UUID of one of your agents to own the workflow. That agent is then the one that can build, edit, and run it from a chat; leave it out and the workflow stays unassigned until you set an owner. | |
| cron_expr | No | Cron schedule (required when trigger_kind is "cron"), e.g. "0 9 * * *". | |
| description | No | Optional description of what the workflow does. | |
| trigger_kind | No | Optional trigger: "manual" (default), "cron", or "webhook". |