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 named "re-run test". The Set node doesn't need any specific fields configured — just the name.

conversationContext: User wants a simple workflow: Manual Trigger → Set node named "re-run test".

result: Workflow build started (task: build-ao_qOE2h). Reply with one short sentence — e.g. name what's being built. Do NOT summarize the plan or list details.


agentRole: workflow-builder

toolName: build-workflow

re-run test

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

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

const setNode = node({
  type: 'n8n-nodes-base.set',
  version: 3.4,
  config: {
    name: 're-run test',
    parameters: {
      assignments: { assignments: [] },
      options: {}
    }
  }
});

export default workflow('re-run-test', 're-run test')
  .add(manualTrigger)
  .to(setNode);