kind: tool-suspend

agentRole: orchestrator

toolName: create-tasks

title: Build "approval test" workflow

spec:
Outcome: A simple workflow with a Manual Trigger connected to a Set node named "approval test".

Trigger mode: Manual — the workflow is started by clicking 'Execute Workflow' in the n8n editor.

External systems: None.

Required effects: The Set node named "approval test" runs after the trigger and produces at least one output field (e.g. a field named `status` with value `approved`).

Required branches: No branching required. Single linear path: Manual Trigger → Set node.

Required data: Set node should set a simple static field to demonstrate the node works (e.g. `status: approved`).

Explicit constraints:
- The Set node must be named exactly "approval test".
- No external credentials or services required.

Empty/invalid behavior: No special handling needed — manual trigger always provides a single empty item.

Done when: Workflow saved with a Manual Trigger node connected to a Set node named "approval test". Verification run succeeds and the Set node output contains the configured field.

summary: Build a single workflow with a Manual Trigger and a Set node named 'approval test', then run it to verify it works.

message: Review the plan (1 task) before execution starts.

severity: info

inputType: plan-review

description: Build "approval test" workflow

status: todo


kind: tool-resume

title: Build "approval test" workflow

spec:
Outcome: A simple workflow with a Manual Trigger connected to a Set node named "approval test".

Trigger mode: Manual — the workflow is started by clicking 'Execute Workflow' in the n8n editor.

External systems: None.

Required effects: The Set node named "approval test" runs after the trigger and produces at least one output field (e.g. a field named `status` with value `approved`).

Required branches: No branching required. Single linear path: Manual Trigger → Set node.

Required data: Set node should set a simple static field to demonstrate the node works (e.g. `status: approved`).

Explicit constraints:
- The Set node must be named exactly "approval test".
- No external credentials or services required.

Empty/invalid behavior: No special handling needed — manual trigger always provides a single empty item.

Done when: Workflow saved with a Manual Trigger node connected to a Set node named "approval test". Verification run succeeds and the Set node output contains the configured field.

summary: Build a single workflow with a Manual Trigger and a Set node named 'approval test', then run it to verify it works.


kind: tool-call

toolName: build-workflow

approval test

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

const manualTrigger = trigger({
  type: 'n8n-nodes-base.manualTrigger',
  version: 1,
  config: {
    name: 'When clicking "Execute workflow"',
  },
});

const approvalTest = node({
  type: 'n8n-nodes-base.set',
  version: 3.4,
  config: {
    name: 'approval test',
    parameters: {
      mode: 'manual',
      includeOtherFields: false,
      fields: {
        values: [
          {
            name: 'status',
            type: 'stringValue',
            value: 'approved',
          },
        ],
      },
    },
  },
});

export default workflow('', 'approval test')
  .add(manualTrigger)
  .to(approvalTest);

guidance: The workflow does not have a trigger the post-build verifier can exercise.


toolName: executions

message: Execute approval test (ID: 3XZKu7Pdh9UrRwfH)

severity: warning


When clicking "Execute workflow":
<untrusted_data source="execution-output" label="node:When clicking "Execute workflow"">
[
  {}
]
</untrusted_data>

approval test:
<untrusted_data source="execution-output" label="node:approval test">
[
  {}
]
</untrusted_data>