kind: tool-call

agentRole: orchestrator

toolName: build-workflow-with-agent

task: Build a simple workflow named "preview auto-open test" with a Manual Trigger node connected to a Set node. The Set node can be left with default/empty settings.

conversationContext: User wants a simple workflow named "preview auto-open test" with a Manual Trigger and a Set node.

reason: New simple workflow with manual trigger and set node as requested

result: Error: `bypassPlan: true` is for edits to an EXISTING workflow and requires a `workflowId`. New workflow builds must go through `plan` so an orchestrator-run verification checkpoint is scheduled. Call `plan` with a `build-workflow` task instead.


agentRole: planner

toolName: add-plan-item

summary: Create a simple two-node workflow named 'preview auto-open test' with a manual trigger and a Set node.

assumptions: No data transformations or fields are specified for the Set node — it will be added as-is with no fields configured.

preview auto-open test

purpose: A minimal workflow with a manual trigger connected to a Set node. Used for testing the preview auto-open behavior. No external integrations required.

result: Added: Build 'preview auto-open test' workflow (1 item total)


title: Verify 'preview auto-open test' workflow runs successfully

instructions: Use verify-built-workflow with the work item ID from the build outcome. Confirm the workflow runs without errors and produces output from the Set node.

result: Added: Verify 'preview auto-open test' workflow runs successfully (2 items total)


kind: tool-suspend

toolName: submit-plan

message: Review the plan (2 tasks) before execution starts.

description: Build 'preview auto-open test' workflow

description: Verify 'preview auto-open test' workflow runs successfully

title: Build 'preview auto-open test' workflow

spec:
A minimal workflow with a manual trigger connected to a Set node. Used for testing the preview auto-open behavior. No external integrations required.
Trigger: Manual trigger

Assumptions:
- No data transformations or fields are specified for the Set node — it will be added as-is with no fields configured.

title: Verify 'preview auto-open test' workflow runs successfully

spec: Use verify-built-workflow with the work item ID from the build outcome. Confirm the workflow runs without errors and produces output from the Set node.

severity: info

inputType: plan-review

description: Build 'preview auto-open test' workflow

status: todo

description: Verify 'preview auto-open test' workflow runs successfully

title: Build 'preview auto-open test' workflow

kind: build-workflow

spec:
A minimal workflow with a manual trigger connected to a Set node. Used for testing the preview auto-open behavior. No external integrations required.
Trigger: Manual trigger

Assumptions:
- No data transformations or fields are specified for the Set node — it will be added as-is with no fields configured.

kind: checkpoint

spec: Use verify-built-workflow with the work item ID from the build outcome. Confirm the workflow runs without errors and produces output from the Set node.


agentRole: workflow-builder

toolName: build-workflow

code:
import { workflow, node, trigger } from '@n8n/workflow-sdk';

const manualTrigger = trigger({
  type: 'n8n-nodes-base.manualTrigger',
  version: 1,
  config: { name: 'Manual Trigger' }
});

const setNode = node({
  type: 'n8n-nodes-base.set',
  version: 3.4,
  config: {
    name: 'Set',
    parameters: {
      mode: 'manual',
      assignments: {
        assignments: []
      }
    }
  }
});

export default workflow('preview-auto-open-test', 'preview auto-open test')
  .add(manualTrigger)
  .to(setNode);