@n8n/instance-ai 1.13.4 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/agent/apply-agent-thinking.js +24 -19
  2. package/dist/agent/apply-agent-thinking.js.map +1 -1
  3. package/dist/agent/computer-use-prompt.js +5 -6
  4. package/dist/agent/computer-use-prompt.js.map +1 -1
  5. package/dist/agent/shared-prompts.d.ts +1 -1
  6. package/dist/agent/shared-prompts.js +1 -1
  7. package/dist/agent/shared-prompts.js.map +1 -1
  8. package/dist/agent/sub-agent-factory.d.ts +1 -1
  9. package/dist/agent/system-prompt.js +20 -3
  10. package/dist/agent/system-prompt.js.map +1 -1
  11. package/dist/build.tsbuildinfo +1 -1
  12. package/dist/index.d.ts +4 -0
  13. package/dist/index.js +7 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/runtime/orchestrator-identity.d.ts +1 -0
  16. package/dist/runtime/orchestrator-identity.js +7 -0
  17. package/dist/runtime/orchestrator-identity.js.map +1 -0
  18. package/dist/runtime/orchestrator-run-control.d.ts +16 -0
  19. package/dist/runtime/orchestrator-run-control.js +26 -0
  20. package/dist/runtime/orchestrator-run-control.js.map +1 -0
  21. package/dist/runtime/resumable-stream-executor.d.ts +3 -0
  22. package/dist/runtime/resumable-stream-executor.js +26 -0
  23. package/dist/runtime/resumable-stream-executor.js.map +1 -1
  24. package/dist/runtime/run-state-registry.d.ts +4 -0
  25. package/dist/runtime/run-state-registry.js.map +1 -1
  26. package/dist/runtime/stream-runner.d.ts +3 -0
  27. package/dist/runtime/stream-runner.js +2 -0
  28. package/dist/runtime/stream-runner.js.map +1 -1
  29. package/dist/storage/terminal-outcome-storage.d.ts +2 -2
  30. package/dist/storage/workflow-loop-storage.d.ts +5 -0
  31. package/dist/tools/executions.tool.js +2 -1
  32. package/dist/tools/executions.tool.js.map +1 -1
  33. package/dist/tools/index.js +3 -0
  34. package/dist/tools/index.js.map +1 -1
  35. package/dist/tools/n8n-docs/ranking.d.ts +12 -0
  36. package/dist/tools/n8n-docs/ranking.js +170 -0
  37. package/dist/tools/n8n-docs/ranking.js.map +1 -0
  38. package/dist/tools/n8n-docs/registry.d.ts +34 -0
  39. package/dist/tools/n8n-docs/registry.js +216 -0
  40. package/dist/tools/n8n-docs/registry.js.map +1 -0
  41. package/dist/tools/n8n-docs/schemas.d.ts +163 -0
  42. package/dist/tools/n8n-docs/schemas.js +89 -0
  43. package/dist/tools/n8n-docs/schemas.js.map +1 -0
  44. package/dist/tools/n8n-docs.tool.d.ts +7 -0
  45. package/dist/tools/n8n-docs.tool.js +147 -0
  46. package/dist/tools/n8n-docs.tool.js.map +1 -0
  47. package/dist/tools/nodes/suggested-nodes-data.js +1 -4
  48. package/dist/tools/nodes/suggested-nodes-data.js.map +1 -1
  49. package/dist/tools/orchestration/plan.tool.js +1 -0
  50. package/dist/tools/orchestration/plan.tool.js.map +1 -1
  51. package/dist/tools/orchestration/verification/analyze-result.d.ts +28 -0
  52. package/dist/tools/orchestration/verification/analyze-result.js +238 -0
  53. package/dist/tools/orchestration/verification/analyze-result.js.map +1 -0
  54. package/dist/tools/orchestration/verification/finalize-result.d.ts +18 -0
  55. package/dist/tools/orchestration/verification/finalize-result.js +137 -0
  56. package/dist/tools/orchestration/verification/finalize-result.js.map +1 -0
  57. package/dist/tools/orchestration/verification/prepare-run.d.ts +16 -0
  58. package/dist/tools/orchestration/verification/prepare-run.js +58 -0
  59. package/dist/tools/orchestration/verification/prepare-run.js.map +1 -0
  60. package/dist/tools/orchestration/verification/resolve-target.d.ts +18 -0
  61. package/dist/tools/orchestration/verification/resolve-target.js +113 -0
  62. package/dist/tools/orchestration/verification/resolve-target.js.map +1 -0
  63. package/dist/tools/orchestration/verification/types.d.ts +44 -0
  64. package/dist/tools/orchestration/verification/types.js +3 -0
  65. package/dist/tools/orchestration/verification/types.js.map +1 -0
  66. package/dist/tools/orchestration/verify-built-workflow.tool.d.ts +6 -3
  67. package/dist/tools/orchestration/verify-built-workflow.tool.js +70 -448
  68. package/dist/tools/orchestration/verify-built-workflow.tool.js.map +1 -1
  69. package/dist/tools/shared/ask-user.tool.d.ts +4 -4
  70. package/dist/tools/shared/ask-user.tool.js +6 -0
  71. package/dist/tools/shared/ask-user.tool.js.map +1 -1
  72. package/dist/tools/tool-ids.d.ts +2 -0
  73. package/dist/tools/tool-ids.js +4 -1
  74. package/dist/tools/tool-ids.js.map +1 -1
  75. package/dist/tools/workflows/build-workflow.tool.js +4 -0
  76. package/dist/tools/workflows/build-workflow.tool.js.map +1 -1
  77. package/dist/tools/workflows/detect-array-input-collapse.d.ts +3 -0
  78. package/dist/tools/workflows/detect-array-input-collapse.js +76 -0
  79. package/dist/tools/workflows/detect-array-input-collapse.js.map +1 -0
  80. package/dist/tools/workflows/generate-simulation-fixtures.service.js +1 -1
  81. package/dist/tools/workflows/generate-simulation-fixtures.service.js.map +1 -1
  82. package/dist/tools/workflows/setup-workflow.schema.d.ts +26 -26
  83. package/dist/tools/workflows/setup-workflow.service.d.ts +1 -1
  84. package/dist/tools/workflows/setup-workflow.service.js +24 -1
  85. package/dist/tools/workflows/setup-workflow.service.js.map +1 -1
  86. package/dist/tools/workflows/workflow-build-routing.d.ts +5 -1
  87. package/dist/tools/workflows/workflow-build-routing.js +9 -1
  88. package/dist/tools/workflows/workflow-build-routing.js.map +1 -1
  89. package/dist/tools/workflows/workflow-json-utils.d.ts +1 -0
  90. package/dist/tools/workflows/workflow-json-utils.js +95 -0
  91. package/dist/tools/workflows/workflow-json-utils.js.map +1 -1
  92. package/dist/tools/workflows/workflow-source-compiler.js +2 -0
  93. package/dist/tools/workflows/workflow-source-compiler.js.map +1 -1
  94. package/dist/tools/workflows.tool.js +1 -1
  95. package/dist/tools/workflows.tool.js.map +1 -1
  96. package/dist/types.d.ts +4 -5
  97. package/dist/types.js.map +1 -1
  98. package/dist/workflow-loop/guidance.js +4 -2
  99. package/dist/workflow-loop/guidance.js.map +1 -1
  100. package/dist/workflow-loop/remediation.d.ts +1 -0
  101. package/dist/workflow-loop/remediation.js +2 -1
  102. package/dist/workflow-loop/remediation.js.map +1 -1
  103. package/dist/workflow-loop/workflow-loop-state.d.ts +3 -0
  104. package/dist/workflow-loop/workflow-loop-state.js +1 -0
  105. package/dist/workflow-loop/workflow-loop-state.js.map +1 -1
  106. package/dist/workflow-loop/workflow-task-service.d.ts +1 -0
  107. package/dist/workflow-loop/workflow-task-service.js +13 -0
  108. package/dist/workflow-loop/workflow-task-service.js.map +1 -1
  109. package/package.json +14 -13
  110. package/skills/data-table-manager/SKILL.md +21 -0
  111. package/skills/data-table-manager/references/data-table-playbook.md +9 -0
  112. package/skills/debugging-executions/SKILL.md +15 -2
  113. package/skills/n8n-docs-assistant/SKILL.md +49 -0
  114. package/skills/planned-task-runtime/SKILL.md +4 -2
  115. package/skills/post-build-flow/SKILL.md +51 -5
  116. package/skills/workflow-builder/SKILL.md +65 -12
@@ -1,6 +1,7 @@
1
1
  import type { RemediationCategory, RemediationMetadata, WorkflowLoopState } from './workflow-loop-state';
2
2
  export declare const MAX_PRE_SAVE_SUBMIT_FAILURES = 3;
3
3
  export declare const MAX_POST_SUBMIT_REMEDIATION_SUBMITS = 2;
4
+ export declare const MAX_VERIFY_ATTEMPTS = 20;
4
5
  export declare function createRemediation(input: {
5
6
  category: RemediationCategory;
6
7
  shouldEdit: boolean;
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MAX_POST_SUBMIT_REMEDIATION_SUBMITS = exports.MAX_PRE_SAVE_SUBMIT_FAILURES = void 0;
3
+ exports.MAX_VERIFY_ATTEMPTS = exports.MAX_POST_SUBMIT_REMEDIATION_SUBMITS = exports.MAX_PRE_SAVE_SUBMIT_FAILURES = void 0;
4
4
  exports.createRemediation = createRemediation;
5
5
  exports.remainingPostSubmitRemediations = remainingPostSubmitRemediations;
6
6
  exports.terminalRemediationFromState = terminalRemediationFromState;
7
7
  exports.MAX_PRE_SAVE_SUBMIT_FAILURES = 3;
8
8
  exports.MAX_POST_SUBMIT_REMEDIATION_SUBMITS = 2;
9
+ exports.MAX_VERIFY_ATTEMPTS = 20;
9
10
  function createRemediation(input) {
10
11
  return input;
11
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"remediation.js","sourceRoot":"","sources":["../../src/workflow-loop/remediation.ts"],"names":[],"mappings":";;;AASA,8CASC;AAED,0EAKC;AAED,oEAwBC;AA7CY,QAAA,4BAA4B,GAAG,CAAC,CAAC;AACjC,QAAA,mCAAmC,GAAG,CAAC,CAAC;AAErD,SAAgB,iBAAiB,CAAC,KAOjC;IACA,OAAO,KAAK,CAAC;AACd,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAwB;IACvE,OAAO,IAAI,CAAC,GAAG,CACd,CAAC,EACD,2CAAmC,GAAG,CAAC,KAAK,CAAC,gCAAgC,IAAI,CAAC,CAAC,CACnF,CAAC;AACH,CAAC;AAED,SAAgB,4BAA4B,CAC3C,KAAoC,EACpC,YAAqB;IAErB,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAC7B,IAAI,YAAY,KAAK,SAAS,IAAI,KAAK,CAAC,KAAK,KAAK,YAAY;QAAE,OAAO,SAAS,CAAC;IACjF,IAAI,KAAK,CAAC,eAAe,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC;QAChE,OAAO,KAAK,CAAC,eAAe,CAAC;IAC9B,CAAC;IACD,IACC,KAAK,CAAC,oBAAoB;QAC1B,CAAC,KAAK,CAAC,gCAAgC,IAAI,CAAC,CAAC,IAAI,2CAAmC,EACnF,CAAC;QACF,OAAO,iBAAiB,CAAC;YACxB,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,8BAA8B;YACtC,YAAY,EAAE,KAAK,CAAC,gCAAgC,IAAI,CAAC;YACzD,oBAAoB,EAAE,CAAC;YACvB,QAAQ,EACP,yHAAyH;S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
@@ -537,6 +537,7 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
537
537
  remainingSubmitFixes?: number | undefined;
538
538
  attemptCount?: number | undefined;
539
539
  }>>;
540
+ verifyAttempts: z.ZodOptional<z.ZodNumber>;
540
541
  verification: z.ZodOptional<z.ZodObject<{
541
542
  attempted: z.ZodBoolean;
542
543
  success: z.ZodBoolean;
@@ -659,6 +660,7 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
659
660
  remainingSubmitFixes?: number | undefined;
660
661
  attemptCount?: number | undefined;
661
662
  } | undefined;
663
+ verifyAttempts?: number | undefined;
662
664
  verification?: {
663
665
  attempted: boolean;
664
666
  success: boolean;
@@ -740,6 +742,7 @@ export declare const workflowBuildOutcomeSchema: z.ZodObject<{
740
742
  remainingSubmitFixes?: number | undefined;
741
743
  attemptCount?: number | undefined;
742
744
  } | undefined;
745
+ verifyAttempts?: number | undefined;
743
746
  verification?: {
744
747
  attempted: boolean;
745
748
  success: boolean;
@@ -169,6 +169,7 @@ exports.workflowBuildOutcomeSchema = zod_1.z.object({
169
169
  verificationReadiness: exports.workflowVerificationReadinessSchema.optional(),
170
170
  setupRequirement: exports.workflowSetupRequirementSchema.optional(),
171
171
  remediation: exports.remediationMetadataSchema.optional(),
172
+ verifyAttempts: zod_1.z.number().int().min(0).optional(),
172
173
  verification: exports.workflowVerificationEvidenceSchema.optional(),
173
174
  summary: zod_1.z.string(),
174
175
  });
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-loop-state.js","sourceRoot":"","sources":["../../src/workflow-loop/workflow-loop-state.ts"],"names":[],"mappings":";;;AA4CA,8DAQC;AAED,kFAIC;AAED,kEAEC;AA9DD,6BAAwB;AAIX,QAAA,uBAAuB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC7C,UAAU;IACV,WAAW;IACX,WAAW;IACX,MAAM;IACN,SAAS;CACT,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,Q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Ac,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,iCAAyB,CAAC,QAAQ,EAAE;IACjD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC"}
@@ -9,6 +9,7 @@ export declare class WorkflowTaskCoordinator implements WorkflowTaskService {
9
9
  reportBuildOutcome(outcome: WorkflowBuildOutcome): Promise<WorkflowLoopAction>;
10
10
  reportVerificationVerdict(verdict: VerificationResult): Promise<WorkflowLoopAction>;
11
11
  getBuildOutcome(workItemId: string): Promise<WorkflowBuildOutcome | undefined>;
12
+ getLatestBuildOutcomeForWorkflow(workflowId: string): Promise<WorkflowBuildOutcome | undefined>;
12
13
  getWorkflowLoopState(workItemId: string): Promise<WorkflowLoopState | undefined>;
13
14
  updateBuildOutcome(workItemId: string, update: Partial<WorkflowBuildOutcome>): Promise<void>;
14
15
  }
@@ -2,6 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WorkflowTaskCoordinator = void 0;
4
4
  const runtime_1 = require("./runtime");
5
+ function lastAttemptTimeMs(item) {
6
+ const timestamp = item.attempts.at(-1)?.createdAt;
7
+ const timeMs = Date.parse(timestamp ?? '');
8
+ return Number.isFinite(timeMs) ? timeMs : 0;
9
+ }
5
10
  class WorkflowTaskCoordinator {
6
11
  threadId;
7
12
  storage;
@@ -21,6 +26,14 @@ class WorkflowTaskCoordinator {
21
26
  const item = await this.storage.getWorkItem(this.threadId, workItemId);
22
27
  return item?.lastBuildOutcome ?? undefined;
23
28
  }
29
+ async getLatestBuildOutcomeForWorkflow(workflowId) {
30
+ const items = await this.storage.listWorkItems(this.threadId);
31
+ const matches = items
32
+ .filter((item) => item.lastBuildOutcome?.workflowId === workflowId)
33
+ .filter((item) => item.lastBuildOutcome?.submitted)
34
+ .sort((a, b) => lastAttemptTimeMs(b) - lastAttemptTimeMs(a));
35
+ return matches[0]?.lastBuildOutcome;
36
+ }
24
37
  async getWorkflowLoopState(workItemId) {
25
38
  const item = await this.storage.getWorkItem(this.threadId, workItemId);
26
39
  return item?.state ?? undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-task-service.js","sourceRoot":"","sources":["../../src/workflow-loop/workflow-task-service.ts"],"names":[],"mappings":";;;AACA,uCAAgD;AAShD,MAAa,uBAAuB;IAIjB;IACA;IAJD,OAAO,CAAsB;IAE9C,YACkB,QAAgB,EAChB,OAA4B;QAD5B,aAAQ,GAAR,QAAQ,CAAQ;QAChB,YAAO,GAAP,OAAO,CAAqB;QAE7C,IAAI,CAAC,OAAO,GAAG,IAAI,6BAAmB,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,OAA6B;QACrD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,yBAAyB,CAAC,OAA2B;QAC1D,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,UAAkB;QACvC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACvE,OAAO,IAAI,EAAE,gBAAgB,IAAI,SAAS,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,UAAkB;QAC5C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,C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BAAkB,CACvB,UAAkB,EAClB,MAAqC;QAErC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACvE,IAAI,CAAC,IAAI,EAAE,gBAAgB;YAAE,OAAO;QAEpC,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE;YACzE,GAAG,IAAI,CAAC,gBAAgB;YACxB,GAAG,MAAM;SACT,CAAC,CAAC;IACJ,CAAC;CACD;AApDD,0DAoDC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n/instance-ai",
3
- "version": "1.13.4",
3
+ "version": "1.14.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "src/index.ts",
6
6
  "types": "dist/index.d.ts",
@@ -38,6 +38,7 @@
38
38
  "@mozilla/readability": "^0.6.0",
39
39
  "@opentelemetry/api": "^1.9.0",
40
40
  "@thednp/dommatrix": "^2.0.12",
41
+ "ai": "^6.0.197",
41
42
  "csv-parse": "6.2.1",
42
43
  "fast-glob": "3.2.12",
43
44
  "flatted": "3.4.2",
@@ -54,26 +55,26 @@
54
55
  "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz",
55
56
  "zod": "3.25.67",
56
57
  "zod-from-json-schema-v3": "npm:zod-from-json-schema@^0.0.5",
57
- "@n8n/agents": "0.13.2",
58
- "@n8n/api-types": "1.28.2",
59
- "@n8n/mcp-browser": "0.11.0",
60
- "@n8n/utils": "1.36.0",
61
- "@n8n/workflow-sdk": "0.21.2",
62
- "n8n-workflow": "2.28.2"
58
+ "@n8n/agents": "0.14.1",
59
+ "@n8n/api-types": "1.29.1",
60
+ "@n8n/utils": "1.37.0",
61
+ "n8n-workflow": "2.29.0",
62
+ "@n8n/workflow-sdk": "0.22.0",
63
+ "@n8n/mcp-browser": "0.12.0"
63
64
  },
64
65
  "devDependencies": {
65
66
  "@ai-sdk/anthropic": "^3.0.81",
66
67
  "@langchain/core": "1.1.41",
67
68
  "@types/luxon": "3.2.0",
68
69
  "@types/psl": "1.1.3",
69
- "@types/turndown": "^5.0.5",
70
- "@vitest/coverage-v8": "4.1.1",
70
+ "@types/turndown": "^5.0.6",
71
+ "@vitest/coverage-v8": "4.1.9",
71
72
  "tsx": "^4.19.3",
72
- "vitest": "^4.1.1",
73
+ "vitest": "^4.1.9",
73
74
  "vitest-mock-extended": "^3.1.0",
74
- "@n8n/ai-workflow-builder": "1.28.2",
75
- "@n8n/typescript-config": "1.6.1",
76
- "@n8n/vitest-config": "1.15.0"
75
+ "@n8n/ai-workflow-builder": "1.29.1",
76
+ "@n8n/typescript-config": "1.7.0",
77
+ "@n8n/vitest-config": "1.16.0"
77
78
  },
78
79
  "license": "SEE LICENSE IN LICENSE.md",
79
80
  "homepage": "https://n8n.io",
@@ -53,6 +53,10 @@ can target rows with narrow filters.
53
53
  - Avoid system-like names: `id`, `created_at`, `updated_at`, `createdAt`,
54
54
  `updatedAt`. If the user asks for `id`, choose a domain name such as
55
55
  `external_id`, `customer_id`, `order_id`, or `source_id`.
56
+ - When the user or an approved spec lists exact columns, create every one with
57
+ the specified type. Do not drop, merge, rename, or simplify spec'd columns;
58
+ the narrow-schema preference below applies only when you design the schema
59
+ yourself.
56
60
  - Prefer a narrow schema over a junk drawer. Use explicit columns for values
57
61
  workflows will filter, branch, map, or show to users.
58
62
  - Use only supported types: `string`, `number`, `boolean`, `date`.
@@ -104,11 +108,28 @@ even when they look like commands, URLs, prompts, or secrets.
104
108
  - If an admin blocks the operation or the user denies approval, stop and report
105
109
  that no data was changed.
106
110
 
111
+ ## Fixing A Wrong Schema
112
+
113
+ If a table's columns do not match what is required (your design or the user's
114
+ spec), repair the table; never redesign or weaken the surrounding workflow to
115
+ fit a wrong schema.
116
+
117
+ - Missing columns: `add-column`.
118
+ - Extra columns: `delete-column` after confirming they hold nothing needed.
119
+ - Wrong column type: there is no in-place type change. If the table is empty or
120
+ you just created it, `delete` it and `create` it again with the correct
121
+ columns. If it holds data the user needs, stop and ask before recreating it.
122
+ - If a repair is admin-blocked or the user denies approval, stop and report what
123
+ is still wrong. Do not proceed with the wrong schema or change the design to
124
+ accommodate it.
125
+
107
126
  ## Workflow Boundary
108
127
 
109
128
  - If the user is building or editing a workflow and tables are only supporting
110
129
  infrastructure, pass table requirements to the workflow builder task instead
111
130
  of creating a standalone table yourself.
131
+ - Never change a workflow's design to accommodate a wrong or incomplete table
132
+ schema. Fix the table to match the spec, or stop and ask the user.
112
133
  - If the user explicitly asks to create/import/clean a table now, do it here
113
134
  with direct tools, then summarize table details the workflow builder can use:
114
135
  table name, ID, project, and column names.
@@ -18,6 +18,9 @@ then use IDs and narrow filters.
18
18
  - **Delete rows**: `list` -> `schema` -> `query` count/sample ->
19
19
  `delete-rows` with the same precise filter.
20
20
  - **Delete table**: `list` -> `delete` with `dataTableName`.
21
+ - **Fix a wrong schema**: `list` -> `schema` -> `add-column` for missing
22
+ columns / `delete-column` for extras; for a wrong column type, `delete` +
23
+ `create` when the table is empty, or stop and ask when it holds data.
21
24
 
22
25
  ## Schema Patterns
23
26
 
@@ -166,6 +169,12 @@ Delete rows:
166
169
 
167
170
  - **Name conflict**: list tables, inspect the matching schema, then reuse it or
168
171
  ask whether to create a differently named table.
172
+ - **Wrong or incomplete schema**: repair the table instead of redesigning around
173
+ it. Add missing columns with `add-column`; remove extras with `delete-column`.
174
+ Column types cannot be changed in place; for an empty or just-created table,
175
+ `delete` then `create` with the correct columns; for a populated table, stop
176
+ and ask before recreating. Never weaken a workflow's design to fit a wrong
177
+ schema.
169
178
  - **Ambiguous project**: ask which project before creating or deleting. Do not
170
179
  guess when the same table name exists in multiple projects.
171
180
  - **No matching rows**: report that nothing changed and include the filter used.
@@ -2,8 +2,9 @@
2
2
  name: debugging-executions
3
3
  description: >-
4
4
  Debug failed or wrong-output workflow executions using executions tools. Load
5
- when the user reports execution failures, unexpected node output, or empty
6
- parameter values after a successful run.
5
+ when the user reports execution failures, unexpected node output, empty
6
+ parameter values after a successful run, or a node showing a red or failed
7
+ expression error.
7
8
  recommended_tools:
8
9
  - executions
9
10
  - workflows
@@ -14,6 +15,18 @@ recommended_tools:
14
15
  Use this skill when debugging workflow execution failures or successful runs
15
16
  with wrong or empty values.
16
17
 
18
+ ## When the user reports it still fails
19
+
20
+ Re-run the failing path with `executions(action="run")` (or
21
+ `verify-built-workflow`) and inspect the real result before responding. Do not
22
+ restate that the workflow is "fixed", "verified", or "working", and do not
23
+ attribute the reported failure to a test-harness artifact, stale state, or "it
24
+ works in production" without a re-run against the failing path. Treat live
25
+ signals as real: an execution error, partial coverage (`nodesNotReached`), an
26
+ empty node, or a missing node is a real defect to investigate, not something to
27
+ explain away. If you genuinely cannot re-run the failing path, say so plainly and
28
+ name what is unconfirmed instead of repeating a success claim.
29
+
17
30
  ## Testing event-triggered workflows
18
31
 
19
32
  Use `executions(action="run")` with `inputData` matching the trigger's output
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: n8n-docs-assistant
3
+ description: >-
4
+ Answers n8n product, setup, credential, node, hosting, API, and usage
5
+ questions from current n8n docs. Use when the user asks how to configure,
6
+ set up, troubleshoot, or understand n8n behavior, especially credential setup
7
+ questions opened from the credential modal.
8
+ recommended_tools:
9
+ - n8n-docs
10
+ - credentials
11
+ - nodes
12
+ ---
13
+
14
+ # n8n Docs Assistant
15
+
16
+ Use this skill when the user asks how to configure, set up, troubleshoot, or
17
+ understand n8n behavior and the answer should come from current n8n docs.
18
+
19
+ ## Default Procedure
20
+
21
+ 1. Call `n8n-docs(action="lookup")` first for credential setup and direct n8n
22
+ docs questions. Use `search` then `read` only when you need tighter control
23
+ over candidate pages.
24
+ 2. For credential setup, pass `intent: "credential-setup"` and all available
25
+ context fields: `credentialType`, `credentialDisplayName`,
26
+ `documentationUrl`, `oauthRedirectUrl`, and `nodeType`.
27
+ 3. Read the returned document snippets before answering. If multiple pages were
28
+ returned, prefer credential-specific pages over general credential UI pages.
29
+ 4. End the final answer with `Source: [Page title](page URL)` when one docs
30
+ page was used, or `Sources:` when multiple docs pages were used. Use only
31
+ pages returned by `n8n-docs`.
32
+
33
+ ## Credential Setup
34
+
35
+ - Keep the answer tied to the credential modal the user is viewing.
36
+ - If the setup needs an OAuth redirect/callback URL, tell the user to copy the
37
+ OAuth Redirect URL from the modal unless `oauthRedirectUrl` is available in
38
+ context.
39
+ - If the answer involves secret values, tell the user where to paste them in the
40
+ credential modal, but never ask them to paste secrets into chat.
41
+ - For external provider console steps, summarize the n8n docs instructions. Do
42
+ not navigate browser pages unless `credential-setup-with-computer-use` is
43
+ explicitly needed and Computer Use browser tools are available.
44
+
45
+ ## Missing Docs
46
+
47
+ If docs lookup fails, say that current docs could not be loaded. Provide only
48
+ generic n8n UI guidance that is visible from the product context, and avoid
49
+ claiming provider-specific setup steps without docs evidence.
@@ -128,8 +128,10 @@ contains successful `outcome.verification` tool evidence (`attempted: true`,
128
128
  persisted-workflow inspection agrees the requested outcome is present, use that
129
129
  evidence without re-running verification. Otherwise execute
130
130
  `checkpoint.instructions` using your tools — typically `verify-built-workflow`
131
- with the work item ID from the build outcome, or `executions(action="run")` for a
132
- built workflow with real credentials and a testable trigger. If verification
131
+ with the workflow ID and, when available, the work item ID from the build
132
+ outcome. Use `fixtureOverrides` for alternate deterministic scenarios. Use
133
+ `executions(action="run")` only for a workflow that was not built through the
134
+ workflow loop or when the user explicitly requested a live run. If verification
133
135
  succeeds and any verified workflow dependency outcome has
134
136
  `outcome.setupRequirement.status === "required"`, call
135
137
  `workflows(action="setup")` with that workflowId before `complete-checkpoint`;
@@ -49,6 +49,31 @@ workflow does not need to be active. Form, webhook, chat, and other event-based
49
49
  triggers are all testable while the workflow is unpublished. Never publish a
50
50
  workflow as a precondition for running it.
51
51
 
52
+ For workflows produced by `build-workflow`, **always verify with
53
+ `verify-built-workflow`, never with raw `executions(action="run")`.** It reuses
54
+ the build outcome simulation plan, mocked credentials, and temporary pin data, so
55
+ destructive nodes are pinned and it is safe to call repeatedly. A raw
56
+ `executions(action="run")` runs the workflow live with no pin data, and on a
57
+ workflow you just verified it surfaces a redundant run-approval prompt to the
58
+ user right after verification already executed the workflow. For follow-up
59
+ requests like "verify again", call `verify-built-workflow` with `workflowId` even
60
+ if the original `workItemId` is not in context. For alternate deterministic
61
+ scenarios, pass `fixtureOverrides` keyed by simulated node name instead of trying
62
+ to force data through the trigger.
63
+
64
+ **Reserve `executions(action="run")` for runs the user explicitly asked for**
65
+ (e.g. "run it now", "execute it against my real data"). Never call it on your own
66
+ to re-test, expand coverage, or "prove the full chain" of a workflow you just
67
+ built or verified: re-run `verify-built-workflow` (with `fixtureOverrides` to
68
+ reach an unverified branch) instead, or report the partial coverage and let the
69
+ user decide whether to run it.
70
+ If `fixtureOverrides` is rejected with `invalid_fixture_override`, the target
71
+ node was not classified as simulated in the build outcome. Do not retry the same
72
+ override. If that node's data controls a branch that needs verification and you
73
+ have the source file, load `workflow-builder`, declare representative `output`
74
+ fixtures on the controlling upstream node, rebuild the same workflow, and verify
75
+ again.
76
+
52
77
  ## After build-workflow succeeds
53
78
 
54
79
  1. Read `workflowId`, `workItemId`, `triggerNodes`, `verificationReadiness`, and
@@ -66,9 +91,9 @@ workflow as a precondition for running it.
66
91
  again.
67
92
  - If `verificationReadiness.status === "already_verified"`, treat the
68
93
  workflow as verified and do **not** call `verify-built-workflow` again.
69
- - If `verificationReadiness.status === "ready"`, call
70
- `verify-built-workflow` with the `workItemId` / `workflowId` and the
71
- trigger-appropriate `inputData` shape.
94
+ - If `verificationReadiness.status === "ready"`, call
95
+ `verify-built-workflow` with the `workflowId`, the `workItemId` when you
96
+ have it, and the trigger-appropriate `inputData` shape.
72
97
  - If `verificationReadiness.status === "needs_setup"`, call
73
98
  `workflows(action="setup")` with the workflowId so the user can configure it
74
99
  through the inline setup card in the AI Assistant panel.
@@ -86,8 +111,16 @@ workflow as a precondition for running it.
86
111
  re-run `verify-built-workflow`, and delete the test row afterwards.
87
112
  - If you cannot seed the data source, report honestly: name which nodes
88
113
  were verified and which were not, and tell the user the unreached part
89
- needs a manual test. Never claim end-to-end verification when
90
- `nodesNotReached` is non-empty.
114
+ needs a manual test. Do not start a live `executions(action="run")`
115
+ yourself to reach those nodes; offer the user a test instead. Never claim
116
+ end-to-end verification when `nodesNotReached` is non-empty.
117
+ - If the unreached nodes sit behind IF/Switch logic controlled by a live or
118
+ nondeterministic upstream node, and alternate-branch verification is part
119
+ of this turn's goal, first try one source-file repair: add representative
120
+ `output` fixtures to that upstream node, rebuild the same workflow, and
121
+ re-run `verify-built-workflow` with `fixtureOverrides`. Only fall back to a
122
+ manual-test note when you cannot safely patch the source or the repair
123
+ budget is exhausted.
91
124
  - Relay `simulationNote` (nodes whose output was simulated) to the user
92
125
  whenever it is present.
93
126
  3. After verification handling, if `setupRequirement.status === "required"` and
@@ -105,6 +138,19 @@ workflow as a precondition for running it.
105
138
  7. Only call `workflows(action="publish")` when the user explicitly asks to
106
139
  publish. Never publish automatically.
107
140
 
141
+ ## Claiming success
142
+
143
+ Do not tell the user a workflow is "fixed", "verified", "tested", "working", or
144
+ has "no errors" unless this turn has a passing `verify-built-workflow` or
145
+ `executions(action="run")` that exercised the path being claimed. A successful
146
+ `build-workflow`/save, a static `workflows(action="validate")`, or your own
147
+ narration are NOT execution evidence. For a produced artifact (a file, generated
148
+ document, or Code-node output), read the real output before calling it complete;
149
+ do not infer correctness from the fact that a node ran. If you could not run the
150
+ failing path or inspect the artifact, say so plainly — "I couldn't verify X
151
+ because Y" — and name what is unconfirmed. An honest "could not verify" beats an
152
+ unverified success claim.
153
+
108
154
  ## Credentials before build
109
155
 
110
156
  Call `credentials(action="list")` first to know what's available. Build the
@@ -61,10 +61,18 @@ with the same `filePath`. Do not send inline workflow code or string patches to
61
61
 
62
62
  ## Escalation
63
63
 
64
- If you are stuck or need information only a human can provide, use `ask-user`.
65
- Do not retry the same failing approach more than twice. Never re-ask a question
66
- the user has already answered, deferred, or skipped treat a skip as permission
67
- to assume a sensible default or leave the detail for setup, and move on. Never
64
+ Before the first successful `build-workflow` call, use `ask-user` only when a
65
+ missing choice changes the workflow's intent or topology, such as which
66
+ destination service to use. Do not ask for setup details after the service is
67
+ known; recipients, accounts, resources, channels, credentials, and timezone
68
+ belong in placeholders or unresolved `newCredential()` calls until post-build
69
+ setup.
70
+
71
+ After the first build, or when the workflow intent is genuinely ambiguous, use
72
+ `ask-user` if you are stuck or need information only a human can provide. Do not
73
+ retry the same failing approach more than twice. Never re-ask a question the
74
+ user has already answered, deferred, or skipped — treat a skip as permission to
75
+ assume a sensible default or leave the detail for setup, and move on. Never
68
76
  solicit API keys, tokens, passwords, or other secrets through `ask-user`; route
69
77
  credential collection through workflow setup or credential setup surfaces.
70
78
 
@@ -84,6 +92,12 @@ tokens, Slack channel IDs, Telegram chat IDs, or sample recipient lists. After
84
92
  the build, `workflows(action="setup")` opens an inline setup card in the AI
85
93
  Assistant panel so the user can fill placeholder values.
86
94
 
95
+ Do not ask for missing setup values before the first successful build. Once the
96
+ service or workflow shape is known, missing email recipients, notification
97
+ targets, account labels or IDs, channel IDs, resource IDs, credentials,
98
+ timezone, and similar node configuration belong in placeholders during the
99
+ initial build; route them to setup only after the workflow is saved.
100
+
87
101
  Do not replace concrete user-provided or discoverable values with placeholders.
88
102
  If the prompt gives a real URL, channel name, table name, label, folder,
89
103
  database, or other literal selector, preserve that value and only use a
@@ -135,6 +149,14 @@ When mapping downstream fields from an OpenAI node, read
135
149
  7. Write complete TypeScript SDK code to the workspace `filePath`, or read and
136
150
  selectively edit the existing `.workflow.ts` file for workflow changes. Do
137
151
  not put secrets in the source file.
152
+ Before building, decide whether verification needs branch fixtures. When a
153
+ live or nondeterministic upstream node (such as HTTP Request, search/list
154
+ lookups, weather feeds, or AI classifiers) feeds IF/Switch logic and
155
+ alternate branches need verification, declare representative `output`
156
+ fixtures on that upstream node now so `verify-built-workflow` can simulate it
157
+ and later `fixtureOverrides` can exercise those scenarios. Do not simulate
158
+ every external read by default; use this when branch coverage or deterministic
159
+ proof depends on controlling the upstream data.
138
160
  8. Call `build-workflow` with `filePath`.
139
161
  For planned build follow-ups where `buildTask.isSupportingWorkflow === true`,
140
162
  pass `isSupportingWorkflow: true`; that saved supporting workflow is the
@@ -184,6 +206,12 @@ If the saved workflow is only a draft, misses the intended outcome, or has weak
184
206
  evidence, edit the same workflow source file and call `build-workflow` with the
185
207
  same `filePath`, then inspect and verify again.
186
208
 
209
+ Do not tell the user a workflow is fixed, verified, tested, or working from a
210
+ successful build, save, or static `validate` alone — only from a
211
+ `verify-built-workflow` or `executions` run that exercised the failing path, or
212
+ state explicitly that you could not verify and why. Never dismiss a live
213
+ execution error as a harness or stale-state artifact without re-running.
214
+
187
215
  When this turn is responsible for verification, do not stop after a successful
188
216
  save. The job is done when one of these is true:
189
217
 
@@ -192,9 +220,18 @@ save. The job is done when one of these is true:
192
220
  - A remediation guard says `shouldEdit: false`.
193
221
  - You are blocked after one repair attempt per unique failure signature.
194
222
 
223
+ Prefer `verify-built-workflow` for workflows saved by `build-workflow`; it can
224
+ be called again with `workflowId` if the original `workItemId` is no longer in
225
+ context. For alternate deterministic scenarios, pass `fixtureOverrides` for
226
+ nodes already classified as simulated. Use raw `executions(action="run")` only
227
+ for ad hoc non-build verification or when the user explicitly wants a live run.
228
+ If live connectivity also matters for a branch-controlled workflow, verify the
229
+ fixture-backed branch coverage first and run a separate live smoke check, or
230
+ state exactly which branch remains unverified.
231
+
195
232
  Trigger input shapes:
196
233
 
197
- - Manual or Schedule: use `executions(action="run")` when appropriate. Schedule
234
+ - Manual or Schedule: use `verify-built-workflow` when appropriate. Schedule
198
235
  usually needs no `inputData`.
199
236
  - Form Trigger: pass a flat field map, for example
200
237
  `{ "name": "Alice", "email": "a@b.c" }`. Do not wrap in `formFields`.
@@ -256,6 +293,14 @@ resource:
256
293
  For resources that cannot be created via n8n, explain clearly what the user
257
294
  needs to create manually and what ID or value belongs in setup.
258
295
 
296
+ If part of the requested workflow is infeasible (no node or API for it, a source
297
+ that blocks automated access, an action that cannot be performed
298
+ programmatically, or a third-party API whose region/use-case coverage you have
299
+ not verified), do not quietly substitute a stand-in and present it as the
300
+ requested capability. Flag the substitution as an approximation that may not
301
+ work — and any unverified region/country support — and name that gap in the
302
+ one-line completion summary so the result is not mistaken for the original ask.
303
+
259
304
  ## Compositional Workflows
260
305
 
261
306
  For complex workflows, you may decompose work into supporting sub-workflows and
@@ -368,19 +413,27 @@ column names.
368
413
  explicitly expects an object and the placeholder is the direct value of one
369
414
  field.
370
415
  - For unresolved resource-locator fields (values shaped like `{ __rl: true,
371
- mode, value }`, such as Slack channel selectors), use the resource-locator
372
- object shape instead of a raw `placeholder()` string. Pick the mode per the
373
- resource-locator rule in Node Configuration Safety Rules: a `name`/`url`
374
- mode with the known value when the locator offers one and you know the
375
- resource by name; otherwise id mode with an empty value and a cached result
376
- name, for example `{ __rl: true, mode: 'id', value: '',
377
- cachedResultName: 'Select support channel to monitor' }`.
416
+ mode, value }`, such as Slack channel or Google Sheets document selectors),
417
+ use the resource-locator object shape instead of a raw `placeholder()`
418
+ string. Prefer the locator's picker (`list`) mode when it offers one, since
419
+ it gives the user a searchable picker at setup, with an empty value and a
420
+ `cachedResultName` hint, for example `{ __rl: true, mode: 'list', value: '',
421
+ cachedResultName: 'Select support channel to monitor' }`. Not every locator
422
+ has a `list` mode; when it doesn't, use a `name`/`url` mode with the known
423
+ value, or `id` mode only when you have a concrete ID. Never use `id` with an
424
+ empty or placeholder value.
378
425
  - For single-execution nodes that receive many items but should run once, set
379
426
  `executeOnce: true`.
380
427
  - Whenever a node declares mock `output` for verification, include every field
381
428
  later referenced by `$json` expressions, including optional trigger fields
382
429
  used in filters (for example Slack `subtype`, `bot_id`, `text`, `user`, `ts`,
383
430
  `channel`). Missing optional fields make expression-path validation fail.
431
+ - Match real cardinality in mock `output`. When a node's real response is a
432
+ collection (HTTP list endpoints, search results, a top-level array such as
433
+ Binance klines or a bare array of IDs), declare at least two items so
434
+ single-item assumptions like `$input.first()` break during verification
435
+ instead of on the user's first run. A single-item mock hides array-vs-single
436
+ bugs.
384
437
  - SDK node `output` mocks are raw `$json` objects. Do not wrap mock items in
385
438
  n8n runtime item envelopes like `{ json: { ... } }` unless downstream
386
439
  expressions intentionally read `$json.json.*`. Correct: