# /n8n-workflow-integration [Handbook](../../README.md) · [Skill index](README.md) · [Runtime source](../../../.claude/skills/n8n-workflow-integration/SKILL.md) ## Purpose Add an n8n workflow to an existing application with verifiable contracts, reliability decisions, scoped artifacts and honest target-side validation evidence. ## When to use Add a webhook/schedule/event automation, connect an existing backend to n8n, or extend an existing workflow and its application adapter. ## When not to use Do not initialize a new product, automatically install n8n or community nodes, silently publish a workflow, export credentials or treat an unverified JSON draft as import-ready. ## Invocation ```text /n8n-workflow-integration Add booking-confirmation automation to the existing API. ``` Autocomplete hint: ` [project scope] [n8n version/export] [trigger and contracts]`. Use ordinary task text, not CLI flags; bracket notation is documentation, not a native input validator. **With optional context:** ```text /n8n-workflow-integration Add booking-confirmation automation to the existing API using its event contract and a sanitized n8n export. Address idempotency, concurrent delivery and retries in proposed ADRs. Prepare local artifacts only; ask for missing target-version details. ``` ## Inputs | Input | Requirement | If omitted | |---|---|---| | automation goal and success criteria | Required | Read the existing task; otherwise ask before designing a workflow. | | project scope and trigger/contracts | Required before implementation | Inspect the existing application; clarify material payload, auth and side effects. | | n8n version/deployment and node contracts | Required before executable workflow generation | Ask for target version/sanitized export; produce a plan, not invented import-ready JSON. | | instance access and credential mapping | Required before remote import/test/publish | Prepare local artifacts; do not connect, use credentials or activate anything. | | artifact paths and existing export | Optional | Reuse repo conventions; otherwise propose automation/n8n/ and preserve existing files. | **No arguments:** Inspect existing project context and ask what automation is wanted; do not initialize a new application or connect to n8n. Required information may come from conversation or inspected project records. Conditional prerequisites block dependent actions; independent planning may continue. Never ask the user to paste secrets into a prompt. ## What it does 1. Inspect existing project boundaries, automation and real contracts. 2. Verify target n8n/node versions and schema/tool availability. 3. Decide meaningful idempotency/concurrency/delivery/contract/trust ADRs. 4. Author scoped adapters/workflow artifacts and a runbook. 5. Validate offline, then use an authorized isolated instance for import/runtime/execution checks. 6. Report actual artifact/validation/deployment states and rollback/reconciliation limits. [Detailed procedure](../../../.claude/skills/n8n-workflow-integration/references/workflow.md) · [Integration plan](../../../.claude/framework/templates/n8n-integration-plan.md) · [ADR selection guide](../../adr-guide.md). ## Outputs and ownership Application-owned workflow/adapter/test changes and docs/project/integrations/n8n/ records, following existing paths. Otherwise propose automation/n8n/workflows/ and automation/n8n/fixtures/. Copy only relevant proposed ADRs into the project’s existing ADR location. No template choice is recorded as owner acceptance. ## Questions and decisions Ask missing goal/trigger/payload/auth/side effects, target version/export and deployment ownership, and applicable reliability/security decisions in batches of at most three. Inspect existing accepted decisions first. Credential references are configuration requirements, not permission to access an account. ## Permissions and side effects Uses ordinary conversation permissions. Local inspection/plans/scoped authoring are reversible. n8n or node installation, external MCP connection, credential use, import, execution, publishing/scheduling and shared/production changes need applicable authorization. Reuse existing approval. Manual/test-mode workflows can run real side effects. ## Validation and completion Distinguish drafted artifacts, JSON syntax checks, target schema/runtime validation, executed integration scenarios and publication. Neither an n8n runner nor a connected tool is assumed installed. Without verified target contracts, produce a plan and mark executable JSON blocked. Version-specific import/validation commands must match actual tooling. Use integration-testing and iteration-review for substantial changes. ## Failure and recovery Preserve raw sanitized diagnostics and application files. Imports can overwrite matching identities; inspect mappings and preserve a backup before authorized updates. Restoring workflow JSON does not reverse external effects. Stop/retain pending work and deduplication history; define compensation/reconciliation. Missing independent review stays UNVERIFIED and two review/fix rounds cap the loop. ## Example ```text /n8n-workflow-integration Add booking-confirmation automation to the existing API using its event contract and a sanitized n8n export. Address idempotency, concurrent delivery and retries in proposed ADRs. Prepare local artifacts only; ask for missing target-version details. ``` This is an illustrative invocation, not an installed n8n workflow. No target instance or secret is provided by this template. Native skill arguments do not install n8n, validate a graph or authorize sending confirmation emails. ## Related components [architecture-design](architecture-design.md) · [integration-testing](integration-testing.md) · [iteration-review](iteration-review.md) · [Argument guide](../../skill-usage.md) · [Meaningful ADRs](../../adr-guide.md)