Submit Workflow
submit_workflowSubmit a multi-step workflow to the Botverse workflow engine. Steps execute in dependency order; parallel branches (multiple steps with the same depends_on) run simultaneously. Returns a workflow_id immediately — poll get_workflow_status every 5–10 seconds until terminal. INTER-STEP REFERENCES: pass a prior step's output into a later step with the string "$.steps..output_key" (e.g. a docx→pdf chain: step to_pdf has depends_on: ["to_docx"] and inputs {"source_url": "$.steps.to_docx.output_key", "input_format": "docx", "output_format": "pdf"} using tool convert_from_url). Workflow params are referenced as "$.params.". No other template syntax (${...} etc.) is supported. BILLING: convert-only workflows run on wallet balance ($0.05/step). Workflows containing transcode or transcribe steps require auto-refill to be enabled at botverse.cloud/dashboard/billing (their cost scales with source duration). Workflow definition uses BWDL (Botverse Workflow Definition Language) — schema at botverse.cloud/schemas/workflow/v1.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| definition | Yes | BWDL workflow definition. Must include workflow_id (string) and steps (array). Each step needs id, tool, and inputs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Initial status: QUEUED or PROCESSING. | |
| step_count | No | Number of steps in the workflow. | |
| workflow_id | Yes | Unique workflow identifier. Pass to get_workflow_status. | |
| already_exists | No | True if this workflow_id was already submitted — idempotent resubmit. |