update_draft
Create a new workflow version from source code.
Built-in imports (no install needed): Integrations — Bun: import { integration } from '@velane/integrations' Python: from velane.integrations import integration AI agents — Bun: Mastra — import { Agent } from '@mastra/core/agent' Python: LangGraph — from langgraph.graph import StateGraph
For chat/tool-using/LLM agent workflows you MUST use Mastra or LangGraph. Call get_agent_framework_docs before writing agent code. Do not hand-roll custom agent loops.
Call list_connections / get_integration_docs for OAuth provider APIs. For agent workflows set higher limits via timeout_ms, max_memory_mb (e.g. 512), max_cpu_percent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| snippet_id | No | Deprecated alias for workflow_id. | |
| timeout_ms | No | ||
| workflow_id | Yes | Workflow ID. | |
| input_schema | No | ||
| max_memory_mb | No | ||
| output_schema | No | ||
| max_cpu_percent | No |