n8n/packages/@n8n/workflow-sdk
2026-08-19 11:07:12 +00:00
..
scripts
src fix(core): Correct chainLlm structured-output shape in eval verifier guidance (no-changelog) (#36283) 2026-08-19 11:07:12 +00:00
test-fixtures feat(core): Add workflow SDK validation framework for Instance AI (#35045) 2026-07-30 15:18:11 +00:00
.gitignore
eslint.config.mjs
package.json 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
README.md
tsconfig.build.json
tsconfig.json
vitest.config.ts

Banner image

@n8n/workflow-sdk

TypeScript SDK for programmatically creating n8n workflows.

Features

  • Fluent builder API for workflow creation
  • Full type safety with TypeScript
  • Code generation from JSON workflows
  • Control flow support (If, Switch, Merge, Loop)
  • Built-in validation
  • AI/LangChain node integration

Usage

import { WorkflowBuilder, manual, httpRequest } from '@n8n/workflow-sdk';

const workflow = new WorkflowBuilder()
  .withName('My Workflow')
  .addTrigger(manual())
  .then(httpRequest({ url: 'https://api.example.com/data' }))
  .build();

License

You can find the license information here