create_workflow
Create new workflows in Automatisch to automate business processes by defining steps, triggers, and actions for streamlined operations.
Instructions
Create a new workflow
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workflow name | |
| description | No | Workflow description | |
| active | No | Whether workflow should be active |
Implementation Reference
- src/handlers.ts:301-309 (handler)The handler logic for executing the 'create_workflow' tool. It invokes the API helper main.api.createWorkflow with the provided arguments and returns the result as formatted JSON text content.case "create_workflow": return { content: [ { type: "text", text: JSON.stringify(await main.api.createWorkflow(args), null, 2) } ] };
- src/handlers.ts:45-63 (schema)Input schema definition for the 'create_workflow' tool, specifying the expected parameters: name (required), description, and active status.inputSchema: { type: "object", properties: { name: { type: "string", description: "Workflow name" }, description: { type: "string", description: "Workflow description" }, active: { type: "boolean", description: "Whether workflow should be active", default: false } }, required: ["name"] }
- src/handlers.ts:43-64 (registration)Registration of the 'create_workflow' tool in the ListTools response, including name, description, and schema.name: "create_workflow", description: "Create a new workflow", inputSchema: { type: "object", properties: { name: { type: "string", description: "Workflow name" }, description: { type: "string", description: "Workflow description" }, active: { type: "boolean", description: "Whether workflow should be active", default: false } }, required: ["name"] } },
- src/api.ts:15-17 (helper)API helper method that contains the core implementation for creating a workflow (noted as copied from index.ts, currently stubbed).createWorkflow: async function(data: any) { // ... copy createWorkflow logic from index.ts ... },