n8n/packages/@n8n/workflow-sdk
Mutasem Aldmour e2dd10c435
feat(core): Move builder templates to n8n-sdk-templates with runtime fetch (#30537)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Oleg Ivaniv <me@olegivaniv.com>
2026-05-26 12:15:00 +01:00
..
scripts feat(core): Move builder templates to n8n-sdk-templates with runtime fetch (#30537) 2026-05-26 12:15:00 +01:00
src feat(core): Move builder templates to n8n-sdk-templates with runtime fetch (#30537) 2026-05-26 12:15:00 +01:00
test-fixtures feat(core): Accept merge.input(n) inside ifElse/switch branch targets in workflow-sdk (#29716) 2026-05-07 07:46:06 +00:00
.gitignore feat(core): Move builder templates to n8n-sdk-templates with runtime fetch (#30537) 2026-05-26 12:15:00 +01:00
eslint.config.mjs perf(ai-builder): Defer heavy idle-boot dependencies (-27 MiB heap) (#30834) 2026-05-21 09:28:39 +00:00
jest.config.js feat(core): Curate workflow examples for the builder sandbox (#30025) 2026-05-13 06:45:39 +00:00
package.json feat(core): Move builder templates to n8n-sdk-templates with runtime fetch (#30537) 2026-05-26 12:15:00 +01:00
README.md feat(ai-builder): Add code-base workflow builder (#24535) 2026-02-10 12:24:27 +00:00
tsconfig.build.json feat(ai-builder): Add code-base workflow builder (#24535) 2026-02-10 12:24:27 +00:00
tsconfig.json ci: Move isolatedModules back to jest.config (#31062) 2026-05-25 13:54:50 +03:00

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