Workflows
Build, check, run and version visual pipelines.
The workflow editor
Open a project and choose the Visual Pipeline tab. The editor has a Node Library, a canvas, a properties panel and zoom controls. The toolbar has Save Workflow, Execute, Clear, Auto Arrange, Templates and Load Workflow.
The Node Library in the editor is the authoritative list of node types. Node families include data loading, cleaning and column selection, pandas operations, preprocessing, feature engineering, visualisation, time series, TensorFlow, scikit-learn algorithms, control nodes (if else, merge, quality gate, compare models), evaluation, data quality checks, monitoring, integrations (SQL, S3, email, Slack, Teams), AI nodes (chat, prompt template, summarise, JSON extractor, agent, embeddings, vector store) and MLOps nodes (MLflow, Weights and Biases, A/B test, Feast).
Limits and statuses
- Workflow name: up to 200 characters. Description: up to 5000 characters.
- Generated code: up to 500000 characters. Module ports: up to 100.
- Status: draft, active or archived.
- The workflow data must contain a nodes list and an edges list.
Preflight check
Before a run, the application checks the workflow. Call GET or POST /api/v1/workflows/<workflow_id>/preflight. The answer has a preflight section and a passed flag. A run request that fails the check returns 400 with the preflight details.
Run a workflow
Press Execute in the editor, or call the runs route. Starting a run creates an experiment unless you pass an existing experiment_id.
curl -X POST http://127.0.0.1:5001/api/v1/workflows/7/runs \
-H "X-API-Key: <your-key>" -H "Content-Type: application/json" \
-d '{"mode": "full", "triggered_by": "manual"}'
| Body field | Meaning |
|---|---|
| mode | Only full is supported. Debug mode, from_node, node, from_node_id and a non-empty breakpoints list are refused with an explanation. |
| workflow_data | Optional workflow content to run. |
| generated_code | Optional code to run. |
| trigger_meta | Free form data, up to 64000 bytes. |
| triggered_by | Up to 100 characters. Default manual. |
| experiment_id | Reuse an experiment instead of creating one. |
| environment_mode, environment_name, auto_install | Choose the Python environment and whether missing packages are installed. |
{
"success": true,
"run_id": 31,
"experiment_id": 18,
"status": "pending",
"message": "Workflow run started",
"compile_plan": {}
}
Run statuses are pending, running, success, failed and cancelled. A run record shows id, workflow_id, experiment_id, status, run_mode, triggered_by, started_at, finished_at, duration_ms and error_message. Each node output has node_id, node_type, node_label, status, started_at, finished_at, duration_ms, output_preview, error_message and retry_count.
Workflow routes
All routes are under /api/v1. Each of these handlers checks that you are signed in.
| Route | What it does |
|---|---|
| GET or POST /projects/<project_id>/workflows | List or create. Use ?modules_only=true to list published modules only. |
| GET /workflows | List workflows. |
| GET, PUT, DELETE /workflows/<workflow_id> | Read, update, delete. |
| POST /workflows/<workflow_id>/generate-code | Generate the Python code for the workflow. |
| POST /workflows/<workflow_id>/execute | Deprecated. Use the runs route. |
| POST /workflows/<workflow_id>/duplicate | Copy. The copy's name gets (copy) added. |
| GET /workflows/<workflow_id>/export | Download a .beep.json file. Credentials are replaced by placeholders. |
| POST /workflows/import | Multipart file field, or JSON with workflow_data and project_id. |
| POST /workflows/<workflow_id>/publish-module | Publish as a reusable module. Body inputs, outputs, description. |
| POST /workflows/<workflow_id>/unpublish-module | Withdraw the module. |
| POST /workflows/<workflow_id>/runs | Start a run. |
| GET /workflows/<workflow_id>/runs | List runs. The limit parameter defaults to 50, maximum 500. |
| GET or DELETE /workflows/<workflow_id>/runs/<run_id> | Read or delete a run. |
| POST /workflows/<workflow_id>/runs/<run_id>/cancel | Cancel a run. |
Versions
Keep named versions of a workflow and restore an earlier one.
| Route | What it does |
|---|---|
| POST or GET /workflows/<workflow_id>/versions | Create or list versions. The response key is version or versions. |
| GET /workflows/<workflow_id>/versions/<version_id> | Read one. |
| POST /workflows/<workflow_id>/versions/<version_id>/restore | Restore. The current state is first saved as a backup version labelled Pre-restore backup (restoring vN). |
| PATCH /workflows/<workflow_id>/versions/<version_id> | Change the label. Up to 120 characters. |
Workflow templates
Ready made workflows are stored as JSON files under the workflow templates folder, in one folder per industry plus a generic folder. They are loaded into the database with the seed script.
python scripts/seed_workflow_templates.py
python scripts/seed_workflow_templates.py --industry finance
python scripts/seed_workflow_templates.py --force
A template file holds template_id, name, description, industry, domain, difficulty, tags, author, estimated_runtime, version, nodes, edges, viewport and metadata.
| Route | What it does |
|---|---|
| GET /api/v1/templates | List. Filters domain, difficulty, industry, q. |
| GET /api/v1/templates/<id> | Read one. |
| POST /api/v1/templates/<id>/use | Create a workflow from a template. Body project_id and name. Always pass project_id: without it the code falls back to the first project in the database. |
| POST, PUT, DELETE /api/v1/templates | Create, edit or delete a template. |
Plugin packs
Node types come from plugin packs. Four packs ship with the application and are enabled by default: core_sklearn (Core Scikit-Learn Pack), ai_genai_stack (AI GenAI Stack), integrations_connectors (Integrations Connectors Pack) and mlops_stack (MLOps Stack). A pack manifest has schema_version, id, name, version, kind, enabled_by_default, description, entrypoint, nodes, package_requirements and tags. The id must match ^[a-z0-9][a-z0-9_-]{1,63}$.