kind: tool-call

agentRole: orchestrator

toolName: build-workflow-with-agent

task: Build a simple workflow with a Manual Trigger node connected to a Set node. Name the workflow "artifact display test".

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: Build a simple manual-trigger workflow with a Set node named 'artifact display test'.

assumptions: Workflow contains a Manual Trigger connected to a single Set node

assumptions: No specific fields are configured on the Set node — builder will leave it open for user to customize

artifact display test

purpose: A minimal workflow triggered manually that passes data through a Set node. Useful for testing artifact display and basic workflow structure.

result: Added: Build 'artifact display test' workflow (1 item total)


title: Verify 'artifact display test' workflow runs successfully

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

result: Added: Verify 'artifact display test' workflow runs successfully (2 items total)


kind: tool-suspend

toolName: submit-plan

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

description: Build 'artifact display test' workflow

description: Verify 'artifact display test' workflow runs successfully

title: Build 'artifact display test' workflow

spec:
A minimal workflow triggered manually that passes data through a Set node. Useful for testing artifact display and basic workflow structure.
Trigger: Manual trigger

Assumptions:
- Workflow contains a Manual Trigger connected to a single Set node
- No specific fields are configured on the Set node — builder will leave it open for user to customize

title: Verify 'artifact display test' workflow runs successfully

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

severity: info

inputType: plan-review

description: Build 'artifact display test' workflow

status: todo

description: Verify 'artifact display test' workflow runs successfully

title: Build 'artifact display test' workflow

kind: build-workflow

spec:
A minimal workflow triggered manually that passes data through a Set node. Useful for testing artifact display and basic workflow structure.
Trigger: Manual trigger

Assumptions:
- Workflow contains a Manual Trigger connected to a single Set node
- No specific fields are configured on the Set node — builder will leave it open for user to customize

kind: checkpoint

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


agentRole: workflow-builder

toolName: build-workflow

Artifact Display Test

code:
import { workflow, node, trigger, expr } 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',
      includeOtherFields: false,
      assignments: {
        assignments: []
      }
    }
  }
});

export default workflow('wf-1', 'Artifact Display Test')
  .add(manualTrigger)
  .to(setNode);