design_workflow_draft
Design a workflow graph with AI for an existing workflow (PRO and above). Called with a prompt, it returns a proposed graph, a plain-language readback of what that graph would do, and a diff against the current one, without saving anything. Called with a graph from a previous reply, it saves that graph, and saving always requires acknowledgeChanges, so a person sees the readback before a workflow changes. Without it the reply is a refusal carrying that readback. It edits an existing workflow and cannot create one, and it cannot activate a workflow: a saved draft stays in whatever state the workflow was already in. Unresolved references, such as an approver who is not in the workspace, are listed on the draft and prevent it being saved until a person chooses them. A draft is built for the trigger the workflow already has, returned as trigger with triggerProposed false; it never changes a workflow's trigger or name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | No | A graph from a previous generate reply, to SAVE. Omit when generating. | |
| prompt | No | What the workflow should do, in plain words. Used to GENERATE; omit when saving a graph. | |
| workflowId | Yes | The workflow to design for. Get one from list_workflows. | |
| acknowledgeChanges | No | Set true to save a graph that removes a step or adds one reaching outside Onplana, after reading the diff. |