@atom8n/ai-workflow-builder 1.2.0

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 (455) hide show
  1. package/dist/agents/responder.agent.d.ts +21 -0
  2. package/dist/agents/responder.agent.js +71 -0
  3. package/dist/agents/responder.agent.js.map +1 -0
  4. package/dist/agents/supervisor.agent.d.ts +31 -0
  5. package/dist/agents/supervisor.agent.js +68 -0
  6. package/dist/agents/supervisor.agent.js.map +1 -0
  7. package/dist/ai-workflow-builder-agent.service.d.ts +32 -0
  8. package/dist/ai-workflow-builder-agent.service.js +236 -0
  9. package/dist/ai-workflow-builder-agent.service.js.map +1 -0
  10. package/dist/build.tsbuildinfo +1 -0
  11. package/dist/chains/conversation-compact.d.ts +7 -0
  12. package/dist/chains/conversation-compact.js +56 -0
  13. package/dist/chains/conversation-compact.js.map +1 -0
  14. package/dist/chains/parameter-updater.d.ts +16 -0
  15. package/dist/chains/parameter-updater.js +112 -0
  16. package/dist/chains/parameter-updater.js.map +1 -0
  17. package/dist/chains/prompt-categorization.d.ts +3 -0
  18. package/dist/chains/prompt-categorization.js +31 -0
  19. package/dist/chains/prompt-categorization.js.map +1 -0
  20. package/dist/chains/test/integration/test-helpers.d.ts +3 -0
  21. package/dist/chains/test/integration/test-helpers.js +16 -0
  22. package/dist/chains/test/integration/test-helpers.js.map +1 -0
  23. package/dist/chains/workflow-name.d.ts +4 -0
  24. package/dist/chains/workflow-name.js +22 -0
  25. package/dist/chains/workflow-name.js.map +1 -0
  26. package/dist/constants.d.ts +14 -0
  27. package/dist/constants.js +18 -0
  28. package/dist/constants.js.map +1 -0
  29. package/dist/errors/index.d.ts +52 -0
  30. package/dist/errors/index.js +137 -0
  31. package/dist/errors/index.js.map +1 -0
  32. package/dist/index.d.ts +4 -0
  33. package/dist/index.js +22 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/llm-config.d.ts +11 -0
  36. package/dist/llm-config.js +126 -0
  37. package/dist/llm-config.js.map +1 -0
  38. package/dist/multi-agent-workflow-subgraphs.d.ts +122 -0
  39. package/dist/multi-agent-workflow-subgraphs.js +159 -0
  40. package/dist/multi-agent-workflow-subgraphs.js.map +1 -0
  41. package/dist/parent-graph-state.d.ts +27 -0
  42. package/dist/parent-graph-state.js +47 -0
  43. package/dist/parent-graph-state.js.map +1 -0
  44. package/dist/prompts/agents/builder.prompt.d.ts +1 -0
  45. package/dist/prompts/agents/builder.prompt.js +320 -0
  46. package/dist/prompts/agents/builder.prompt.js.map +1 -0
  47. package/dist/prompts/agents/configurator.prompt.d.ts +2 -0
  48. package/dist/prompts/agents/configurator.prompt.js +143 -0
  49. package/dist/prompts/agents/configurator.prompt.js.map +1 -0
  50. package/dist/prompts/agents/discovery.prompt.d.ts +11 -0
  51. package/dist/prompts/agents/discovery.prompt.js +260 -0
  52. package/dist/prompts/agents/discovery.prompt.js.map +1 -0
  53. package/dist/prompts/agents/responder.prompt.d.ts +1 -0
  54. package/dist/prompts/agents/responder.prompt.js +41 -0
  55. package/dist/prompts/agents/responder.prompt.js.map +1 -0
  56. package/dist/prompts/agents/supervisor.prompt.d.ts +1 -0
  57. package/dist/prompts/agents/supervisor.prompt.js +43 -0
  58. package/dist/prompts/agents/supervisor.prompt.js.map +1 -0
  59. package/dist/prompts/builder/index.d.ts +2 -0
  60. package/dist/prompts/builder/index.js +7 -0
  61. package/dist/prompts/builder/index.js.map +1 -0
  62. package/dist/prompts/builder/prompt-builder.d.ts +17 -0
  63. package/dist/prompts/builder/prompt-builder.js +147 -0
  64. package/dist/prompts/builder/prompt-builder.js.map +1 -0
  65. package/dist/prompts/builder/types.d.ts +22 -0
  66. package/dist/prompts/builder/types.js +3 -0
  67. package/dist/prompts/builder/types.js.map +1 -0
  68. package/dist/prompts/chains/categorization.prompt.d.ts +43 -0
  69. package/dist/prompts/chains/categorization.prompt.js +86 -0
  70. package/dist/prompts/chains/categorization.prompt.js.map +1 -0
  71. package/dist/prompts/chains/compact.prompt.d.ts +2 -0
  72. package/dist/prompts/chains/compact.prompt.js +16 -0
  73. package/dist/prompts/chains/compact.prompt.js.map +1 -0
  74. package/dist/prompts/chains/parameter-updater/examples/if-node.d.ts +2 -0
  75. package/dist/prompts/chains/parameter-updater/examples/if-node.js +141 -0
  76. package/dist/prompts/chains/parameter-updater/examples/if-node.js.map +1 -0
  77. package/dist/prompts/chains/parameter-updater/examples/index.d.ts +6 -0
  78. package/dist/prompts/chains/parameter-updater/examples/index.js +16 -0
  79. package/dist/prompts/chains/parameter-updater/examples/index.js.map +1 -0
  80. package/dist/prompts/chains/parameter-updater/examples/resource-locator.d.ts +2 -0
  81. package/dist/prompts/chains/parameter-updater/examples/resource-locator.js +83 -0
  82. package/dist/prompts/chains/parameter-updater/examples/resource-locator.js.map +1 -0
  83. package/dist/prompts/chains/parameter-updater/examples/set-node.d.ts +2 -0
  84. package/dist/prompts/chains/parameter-updater/examples/set-node.js +151 -0
  85. package/dist/prompts/chains/parameter-updater/examples/set-node.js.map +1 -0
  86. package/dist/prompts/chains/parameter-updater/examples/simple-updates.d.ts +2 -0
  87. package/dist/prompts/chains/parameter-updater/examples/simple-updates.js +54 -0
  88. package/dist/prompts/chains/parameter-updater/examples/simple-updates.js.map +1 -0
  89. package/dist/prompts/chains/parameter-updater/examples/switch-node.d.ts +2 -0
  90. package/dist/prompts/chains/parameter-updater/examples/switch-node.js +131 -0
  91. package/dist/prompts/chains/parameter-updater/examples/switch-node.js.map +1 -0
  92. package/dist/prompts/chains/parameter-updater/examples/tool-nodes.d.ts +2 -0
  93. package/dist/prompts/chains/parameter-updater/examples/tool-nodes.js +74 -0
  94. package/dist/prompts/chains/parameter-updater/examples/tool-nodes.js.map +1 -0
  95. package/dist/prompts/chains/parameter-updater/guides/embedding-nodes.d.ts +2 -0
  96. package/dist/prompts/chains/parameter-updater/guides/embedding-nodes.js +70 -0
  97. package/dist/prompts/chains/parameter-updater/guides/embedding-nodes.js.map +1 -0
  98. package/dist/prompts/chains/parameter-updater/guides/gmail.d.ts +2 -0
  99. package/dist/prompts/chains/parameter-updater/guides/gmail.js +28 -0
  100. package/dist/prompts/chains/parameter-updater/guides/gmail.js.map +1 -0
  101. package/dist/prompts/chains/parameter-updater/guides/http-request.d.ts +2 -0
  102. package/dist/prompts/chains/parameter-updater/guides/http-request.js +139 -0
  103. package/dist/prompts/chains/parameter-updater/guides/http-request.js.map +1 -0
  104. package/dist/prompts/chains/parameter-updater/guides/if-node.d.ts +2 -0
  105. package/dist/prompts/chains/parameter-updater/guides/if-node.js +159 -0
  106. package/dist/prompts/chains/parameter-updater/guides/if-node.js.map +1 -0
  107. package/dist/prompts/chains/parameter-updater/guides/index.d.ts +10 -0
  108. package/dist/prompts/chains/parameter-updater/guides/index.js +24 -0
  109. package/dist/prompts/chains/parameter-updater/guides/index.js.map +1 -0
  110. package/dist/prompts/chains/parameter-updater/guides/resource-locator.d.ts +2 -0
  111. package/dist/prompts/chains/parameter-updater/guides/resource-locator.js +99 -0
  112. package/dist/prompts/chains/parameter-updater/guides/resource-locator.js.map +1 -0
  113. package/dist/prompts/chains/parameter-updater/guides/set-node.d.ts +2 -0
  114. package/dist/prompts/chains/parameter-updater/guides/set-node.js +94 -0
  115. package/dist/prompts/chains/parameter-updater/guides/set-node.js.map +1 -0
  116. package/dist/prompts/chains/parameter-updater/guides/switch-node.d.ts +2 -0
  117. package/dist/prompts/chains/parameter-updater/guides/switch-node.js +75 -0
  118. package/dist/prompts/chains/parameter-updater/guides/switch-node.js.map +1 -0
  119. package/dist/prompts/chains/parameter-updater/guides/system-message.d.ts +2 -0
  120. package/dist/prompts/chains/parameter-updater/guides/system-message.js +96 -0
  121. package/dist/prompts/chains/parameter-updater/guides/system-message.js.map +1 -0
  122. package/dist/prompts/chains/parameter-updater/guides/text-fields.d.ts +2 -0
  123. package/dist/prompts/chains/parameter-updater/guides/text-fields.js +31 -0
  124. package/dist/prompts/chains/parameter-updater/guides/text-fields.js.map +1 -0
  125. package/dist/prompts/chains/parameter-updater/guides/tool-nodes.d.ts +2 -0
  126. package/dist/prompts/chains/parameter-updater/guides/tool-nodes.js +76 -0
  127. package/dist/prompts/chains/parameter-updater/guides/tool-nodes.js.map +1 -0
  128. package/dist/prompts/chains/parameter-updater/index.d.ts +8 -0
  129. package/dist/prompts/chains/parameter-updater/index.js +35 -0
  130. package/dist/prompts/chains/parameter-updater/index.js.map +1 -0
  131. package/dist/prompts/chains/parameter-updater/instance-url.d.ts +1 -0
  132. package/dist/prompts/chains/parameter-updater/instance-url.js +15 -0
  133. package/dist/prompts/chains/parameter-updater/instance-url.js.map +1 -0
  134. package/dist/prompts/chains/parameter-updater/parameter-updater.prompt.d.ts +4 -0
  135. package/dist/prompts/chains/parameter-updater/parameter-updater.prompt.js +52 -0
  136. package/dist/prompts/chains/parameter-updater/parameter-updater.prompt.js.map +1 -0
  137. package/dist/prompts/chains/parameter-updater/registry.d.ts +4 -0
  138. package/dist/prompts/chains/parameter-updater/registry.js +66 -0
  139. package/dist/prompts/chains/parameter-updater/registry.js.map +1 -0
  140. package/dist/prompts/chains/parameter-updater/types.d.ts +18 -0
  141. package/dist/prompts/chains/parameter-updater/types.js +3 -0
  142. package/dist/prompts/chains/parameter-updater/types.js.map +1 -0
  143. package/dist/prompts/chains/parameter-updater/utils.d.ts +2 -0
  144. package/dist/prompts/chains/parameter-updater/utils.js +16 -0
  145. package/dist/prompts/chains/parameter-updater/utils.js.map +1 -0
  146. package/dist/prompts/chains/workflow-name.prompt.d.ts +2 -0
  147. package/dist/prompts/chains/workflow-name.prompt.js +11 -0
  148. package/dist/prompts/chains/workflow-name.prompt.js.map +1 -0
  149. package/dist/prompts/index.d.ts +12 -0
  150. package/dist/prompts/index.js +50 -0
  151. package/dist/prompts/index.js.map +1 -0
  152. package/dist/prompts/legacy-agent.prompt.d.ts +6 -0
  153. package/dist/prompts/legacy-agent.prompt.js +594 -0
  154. package/dist/prompts/legacy-agent.prompt.js.map +1 -0
  155. package/dist/session-manager.service.d.ts +16 -0
  156. package/dist/session-manager.service.js +125 -0
  157. package/dist/session-manager.service.js.map +1 -0
  158. package/dist/subgraphs/builder.subgraph.d.ts +132 -0
  159. package/dist/subgraphs/builder.subgraph.js +173 -0
  160. package/dist/subgraphs/builder.subgraph.js.map +1 -0
  161. package/dist/subgraphs/configurator.subgraph.d.ts +142 -0
  162. package/dist/subgraphs/configurator.subgraph.js +173 -0
  163. package/dist/subgraphs/configurator.subgraph.js.map +1 -0
  164. package/dist/subgraphs/discovery.subgraph.d.ts +158 -0
  165. package/dist/subgraphs/discovery.subgraph.js +221 -0
  166. package/dist/subgraphs/discovery.subgraph.js.map +1 -0
  167. package/dist/subgraphs/subgraph-interface.d.ts +23 -0
  168. package/dist/subgraphs/subgraph-interface.js +7 -0
  169. package/dist/subgraphs/subgraph-interface.js.map +1 -0
  170. package/dist/tools/add-node.tool.d.ts +54 -0
  171. package/dist/tools/add-node.tool.js +176 -0
  172. package/dist/tools/add-node.tool.js.map +1 -0
  173. package/dist/tools/best-practices/chatbot.d.ts +7 -0
  174. package/dist/tools/best-practices/chatbot.js +118 -0
  175. package/dist/tools/best-practices/chatbot.js.map +1 -0
  176. package/dist/tools/best-practices/content-generation.d.ts +7 -0
  177. package/dist/tools/best-practices/content-generation.js +115 -0
  178. package/dist/tools/best-practices/content-generation.js.map +1 -0
  179. package/dist/tools/best-practices/data-analysis.d.ts +7 -0
  180. package/dist/tools/best-practices/data-analysis.js +367 -0
  181. package/dist/tools/best-practices/data-analysis.js.map +1 -0
  182. package/dist/tools/best-practices/data-extraction.d.ts +7 -0
  183. package/dist/tools/best-practices/data-extraction.js +122 -0
  184. package/dist/tools/best-practices/data-extraction.js.map +1 -0
  185. package/dist/tools/best-practices/data-transformation.d.ts +7 -0
  186. package/dist/tools/best-practices/data-transformation.js +162 -0
  187. package/dist/tools/best-practices/data-transformation.js.map +1 -0
  188. package/dist/tools/best-practices/document-processing.d.ts +7 -0
  189. package/dist/tools/best-practices/document-processing.js +335 -0
  190. package/dist/tools/best-practices/document-processing.js.map +1 -0
  191. package/dist/tools/best-practices/enrichment.d.ts +7 -0
  192. package/dist/tools/best-practices/enrichment.js +271 -0
  193. package/dist/tools/best-practices/enrichment.js.map +1 -0
  194. package/dist/tools/best-practices/form-input.d.ts +7 -0
  195. package/dist/tools/best-practices/form-input.js +173 -0
  196. package/dist/tools/best-practices/form-input.js.map +1 -0
  197. package/dist/tools/best-practices/human-in-the-loop.d.ts +7 -0
  198. package/dist/tools/best-practices/human-in-the-loop.js +268 -0
  199. package/dist/tools/best-practices/human-in-the-loop.js.map +1 -0
  200. package/dist/tools/best-practices/index.d.ts +3 -0
  201. package/dist/tools/best-practices/index.js +29 -0
  202. package/dist/tools/best-practices/index.js.map +1 -0
  203. package/dist/tools/best-practices/knowledge-base.d.ts +7 -0
  204. package/dist/tools/best-practices/knowledge-base.js +268 -0
  205. package/dist/tools/best-practices/knowledge-base.js.map +1 -0
  206. package/dist/tools/best-practices/monitoring.d.ts +7 -0
  207. package/dist/tools/best-practices/monitoring.js +178 -0
  208. package/dist/tools/best-practices/monitoring.js.map +1 -0
  209. package/dist/tools/best-practices/notification.d.ts +7 -0
  210. package/dist/tools/best-practices/notification.js +229 -0
  211. package/dist/tools/best-practices/notification.js.map +1 -0
  212. package/dist/tools/best-practices/scheduling.d.ts +7 -0
  213. package/dist/tools/best-practices/scheduling.js +281 -0
  214. package/dist/tools/best-practices/scheduling.js.map +1 -0
  215. package/dist/tools/best-practices/scraping-and-research.d.ts +7 -0
  216. package/dist/tools/best-practices/scraping-and-research.js +161 -0
  217. package/dist/tools/best-practices/scraping-and-research.js.map +1 -0
  218. package/dist/tools/best-practices/triage.d.ts +7 -0
  219. package/dist/tools/best-practices/triage.js +211 -0
  220. package/dist/tools/best-practices/triage.js.map +1 -0
  221. package/dist/tools/builder-tools.d.ts +16 -0
  222. package/dist/tools/builder-tools.js +36 -0
  223. package/dist/tools/builder-tools.js.map +1 -0
  224. package/dist/tools/categorize-prompt.tool.d.ts +5 -0
  225. package/dist/tools/categorize-prompt.tool.js +85 -0
  226. package/dist/tools/categorize-prompt.tool.js.map +1 -0
  227. package/dist/tools/connect-nodes.tool.d.ts +22 -0
  228. package/dist/tools/connect-nodes.tool.js +231 -0
  229. package/dist/tools/connect-nodes.tool.js.map +1 -0
  230. package/dist/tools/engines/node-search-engine.d.ts +16 -0
  231. package/dist/tools/engines/node-search-engine.js +123 -0
  232. package/dist/tools/engines/node-search-engine.js.map +1 -0
  233. package/dist/tools/get-best-practices.tool.d.ts +33 -0
  234. package/dist/tools/get-best-practices.tool.js +94 -0
  235. package/dist/tools/get-best-practices.tool.js.map +1 -0
  236. package/dist/tools/get-node-examples.tool.d.ts +119 -0
  237. package/dist/tools/get-node-examples.tool.js +189 -0
  238. package/dist/tools/get-node-examples.tool.js.map +1 -0
  239. package/dist/tools/get-node-parameter.tool.d.ts +4 -0
  240. package/dist/tools/get-node-parameter.tool.js +114 -0
  241. package/dist/tools/get-node-parameter.tool.js.map +1 -0
  242. package/dist/tools/get-workflow-examples.tool.d.ts +34 -0
  243. package/dist/tools/get-workflow-examples.tool.js +138 -0
  244. package/dist/tools/get-workflow-examples.tool.js.map +1 -0
  245. package/dist/tools/helpers/index.d.ts +4 -0
  246. package/dist/tools/helpers/index.js +21 -0
  247. package/dist/tools/helpers/index.js.map +1 -0
  248. package/dist/tools/helpers/progress.d.ts +9 -0
  249. package/dist/tools/helpers/progress.js +126 -0
  250. package/dist/tools/helpers/progress.js.map +1 -0
  251. package/dist/tools/helpers/response.d.ts +7 -0
  252. package/dist/tools/helpers/response.js +33 -0
  253. package/dist/tools/helpers/response.js.map +1 -0
  254. package/dist/tools/helpers/state.d.ts +14 -0
  255. package/dist/tools/helpers/state.js +85 -0
  256. package/dist/tools/helpers/state.js.map +1 -0
  257. package/dist/tools/helpers/validation.d.ts +13 -0
  258. package/dist/tools/helpers/validation.js +83 -0
  259. package/dist/tools/helpers/validation.js.map +1 -0
  260. package/dist/tools/node-details.tool.d.ts +31 -0
  261. package/dist/tools/node-details.tool.js +201 -0
  262. package/dist/tools/node-details.tool.js.map +1 -0
  263. package/dist/tools/node-search.tool.d.ts +62 -0
  264. package/dist/tools/node-search.tool.js +155 -0
  265. package/dist/tools/node-search.tool.js.map +1 -0
  266. package/dist/tools/remove-connection.tool.d.ts +24 -0
  267. package/dist/tools/remove-connection.tool.js +234 -0
  268. package/dist/tools/remove-connection.tool.js.map +1 -0
  269. package/dist/tools/remove-node.tool.d.ts +4 -0
  270. package/dist/tools/remove-node.tool.js +106 -0
  271. package/dist/tools/remove-node.tool.js.map +1 -0
  272. package/dist/tools/update-node-parameters.tool.d.ts +5 -0
  273. package/dist/tools/update-node-parameters.tool.js +156 -0
  274. package/dist/tools/update-node-parameters.tool.js.map +1 -0
  275. package/dist/tools/utils/connection-parameters.utils.d.ts +8 -0
  276. package/dist/tools/utils/connection-parameters.utils.js +47 -0
  277. package/dist/tools/utils/connection-parameters.utils.js.map +1 -0
  278. package/dist/tools/utils/connection.utils.d.ts +15 -0
  279. package/dist/tools/utils/connection.utils.js +321 -0
  280. package/dist/tools/utils/connection.utils.js.map +1 -0
  281. package/dist/tools/utils/mermaid.utils.d.ts +13 -0
  282. package/dist/tools/utils/mermaid.utils.js +647 -0
  283. package/dist/tools/utils/mermaid.utils.js.map +1 -0
  284. package/dist/tools/utils/node-configuration.utils.d.ts +13 -0
  285. package/dist/tools/utils/node-configuration.utils.js +75 -0
  286. package/dist/tools/utils/node-configuration.utils.js.map +1 -0
  287. package/dist/tools/utils/node-creation.utils.d.ts +8 -0
  288. package/dist/tools/utils/node-creation.utils.js +56 -0
  289. package/dist/tools/utils/node-creation.utils.js.map +1 -0
  290. package/dist/tools/utils/node-positioning.utils.d.ts +17 -0
  291. package/dist/tools/utils/node-positioning.utils.js +87 -0
  292. package/dist/tools/utils/node-positioning.utils.js.map +1 -0
  293. package/dist/tools/utils/parameter-update.utils.d.ts +6 -0
  294. package/dist/tools/utils/parameter-update.utils.js +75 -0
  295. package/dist/tools/utils/parameter-update.utils.js.map +1 -0
  296. package/dist/tools/utils/test/workflows/ai-assistant.workflow.d.ts +2 -0
  297. package/dist/tools/utils/test/workflows/ai-assistant.workflow.js +542 -0
  298. package/dist/tools/utils/test/workflows/ai-assistant.workflow.js.map +1 -0
  299. package/dist/tools/validate-configuration.tool.d.ts +4 -0
  300. package/dist/tools/validate-configuration.tool.js +70 -0
  301. package/dist/tools/validate-configuration.tool.js.map +1 -0
  302. package/dist/tools/validate-structure.tool.d.ts +4 -0
  303. package/dist/tools/validate-structure.tool.js +66 -0
  304. package/dist/tools/validate-structure.tool.js.map +1 -0
  305. package/dist/tools/validate-workflow.tool.d.ts +5 -0
  306. package/dist/tools/validate-workflow.tool.js +73 -0
  307. package/dist/tools/validate-workflow.tool.js.map +1 -0
  308. package/dist/tools/web/templates.d.ts +23 -0
  309. package/dist/tools/web/templates.js +106 -0
  310. package/dist/tools/web/templates.js.map +1 -0
  311. package/dist/types/best-practices.d.ts +6 -0
  312. package/dist/types/best-practices.js +3 -0
  313. package/dist/types/best-practices.js.map +1 -0
  314. package/dist/types/categorization.d.ts +23 -0
  315. package/dist/types/categorization.js +38 -0
  316. package/dist/types/categorization.js.map +1 -0
  317. package/dist/types/config.d.ts +55 -0
  318. package/dist/types/config.js +3 -0
  319. package/dist/types/config.js.map +1 -0
  320. package/dist/types/connections.d.ts +30 -0
  321. package/dist/types/connections.js +3 -0
  322. package/dist/types/connections.js.map +1 -0
  323. package/dist/types/coordination.d.ts +42 -0
  324. package/dist/types/coordination.js +23 -0
  325. package/dist/types/coordination.js.map +1 -0
  326. package/dist/types/discovery-types.d.ts +12 -0
  327. package/dist/types/discovery-types.js +3 -0
  328. package/dist/types/discovery-types.js.map +1 -0
  329. package/dist/types/index.d.ts +11 -0
  330. package/dist/types/index.js +18 -0
  331. package/dist/types/index.js.map +1 -0
  332. package/dist/types/langchain.d.ts +3 -0
  333. package/dist/types/langchain.js +15 -0
  334. package/dist/types/langchain.js.map +1 -0
  335. package/dist/types/messages.d.ts +32 -0
  336. package/dist/types/messages.js +3 -0
  337. package/dist/types/messages.js.map +1 -0
  338. package/dist/types/nodes.d.ts +27 -0
  339. package/dist/types/nodes.js +3 -0
  340. package/dist/types/nodes.js.map +1 -0
  341. package/dist/types/sessions.d.ts +8 -0
  342. package/dist/types/sessions.js +34 -0
  343. package/dist/types/sessions.js.map +1 -0
  344. package/dist/types/streaming.d.ts +33 -0
  345. package/dist/types/streaming.js +3 -0
  346. package/dist/types/streaming.js.map +1 -0
  347. package/dist/types/tools.d.ts +120 -0
  348. package/dist/types/tools.js +3 -0
  349. package/dist/types/tools.js.map +1 -0
  350. package/dist/types/utils.d.ts +2 -0
  351. package/dist/types/utils.js +3 -0
  352. package/dist/types/utils.js.map +1 -0
  353. package/dist/types/web/templates.d.ts +45 -0
  354. package/dist/types/web/templates.js +37 -0
  355. package/dist/types/web/templates.js.map +1 -0
  356. package/dist/types/workflow.d.ts +31 -0
  357. package/dist/types/workflow.js +3 -0
  358. package/dist/types/workflow.js.map +1 -0
  359. package/dist/utils/cache-control/helpers.d.ts +5 -0
  360. package/dist/utils/cache-control/helpers.js +126 -0
  361. package/dist/utils/cache-control/helpers.js.map +1 -0
  362. package/dist/utils/cache-control/index.d.ts +1 -0
  363. package/dist/utils/cache-control/index.js +9 -0
  364. package/dist/utils/cache-control/index.js.map +1 -0
  365. package/dist/utils/cleanup-dangling-tool-call-messages.d.ts +3 -0
  366. package/dist/utils/cleanup-dangling-tool-call-messages.js +10 -0
  367. package/dist/utils/cleanup-dangling-tool-call-messages.js.map +1 -0
  368. package/dist/utils/context-builders.d.ts +10 -0
  369. package/dist/utils/context-builders.js +71 -0
  370. package/dist/utils/context-builders.js.map +1 -0
  371. package/dist/utils/coordination-log.d.ts +15 -0
  372. package/dist/utils/coordination-log.js +75 -0
  373. package/dist/utils/coordination-log.js.map +1 -0
  374. package/dist/utils/http-proxy-agent.d.ts +2 -0
  375. package/dist/utils/http-proxy-agent.js +16 -0
  376. package/dist/utils/http-proxy-agent.js.map +1 -0
  377. package/dist/utils/node-helpers.d.ts +2 -0
  378. package/dist/utils/node-helpers.js +54 -0
  379. package/dist/utils/node-helpers.js.map +1 -0
  380. package/dist/utils/operations-processor.d.ts +14 -0
  381. package/dist/utils/operations-processor.js +196 -0
  382. package/dist/utils/operations-processor.js.map +1 -0
  383. package/dist/utils/state-modifier.d.ts +32 -0
  384. package/dist/utils/state-modifier.js +112 -0
  385. package/dist/utils/state-modifier.js.map +1 -0
  386. package/dist/utils/state-reducers.d.ts +3 -0
  387. package/dist/utils/state-reducers.js +20 -0
  388. package/dist/utils/state-reducers.js.map +1 -0
  389. package/dist/utils/stream-processor.d.ts +20 -0
  390. package/dist/utils/stream-processor.js +277 -0
  391. package/dist/utils/stream-processor.js.map +1 -0
  392. package/dist/utils/subgraph-helpers.d.ts +16 -0
  393. package/dist/utils/subgraph-helpers.js +117 -0
  394. package/dist/utils/subgraph-helpers.js.map +1 -0
  395. package/dist/utils/token-usage.d.ts +21 -0
  396. package/dist/utils/token-usage.js +45 -0
  397. package/dist/utils/token-usage.js.map +1 -0
  398. package/dist/utils/tool-executor.d.ts +3 -0
  399. package/dist/utils/tool-executor.js +108 -0
  400. package/dist/utils/tool-executor.js.map +1 -0
  401. package/dist/utils/trim-workflow-context.d.ts +2 -0
  402. package/dist/utils/trim-workflow-context.js +53 -0
  403. package/dist/utils/trim-workflow-context.js.map +1 -0
  404. package/dist/utils/workflow-validation.d.ts +2 -0
  405. package/dist/utils/workflow-validation.js +37 -0
  406. package/dist/utils/workflow-validation.js.map +1 -0
  407. package/dist/validation/checks/agent-prompt.d.ts +3 -0
  408. package/dist/validation/checks/agent-prompt.js +47 -0
  409. package/dist/validation/checks/agent-prompt.js.map +1 -0
  410. package/dist/validation/checks/connections.d.ts +4 -0
  411. package/dist/validation/checks/connections.js +163 -0
  412. package/dist/validation/checks/connections.js.map +1 -0
  413. package/dist/validation/checks/credentials.d.ts +3 -0
  414. package/dist/validation/checks/credentials.js +125 -0
  415. package/dist/validation/checks/credentials.js.map +1 -0
  416. package/dist/validation/checks/from-ai.d.ts +4 -0
  417. package/dist/validation/checks/from-ai.js +62 -0
  418. package/dist/validation/checks/from-ai.js.map +1 -0
  419. package/dist/validation/checks/index.d.ts +7 -0
  420. package/dist/validation/checks/index.js +18 -0
  421. package/dist/validation/checks/index.js.map +1 -0
  422. package/dist/validation/checks/nodes.d.ts +4 -0
  423. package/dist/validation/checks/nodes.js +44 -0
  424. package/dist/validation/checks/nodes.js.map +1 -0
  425. package/dist/validation/checks/tools.d.ts +4 -0
  426. package/dist/validation/checks/tools.js +38 -0
  427. package/dist/validation/checks/tools.js.map +1 -0
  428. package/dist/validation/checks/trigger.d.ts +8 -0
  429. package/dist/validation/checks/trigger.js +33 -0
  430. package/dist/validation/checks/trigger.js.map +1 -0
  431. package/dist/validation/programmatic.d.ts +3 -0
  432. package/dist/validation/programmatic.js +24 -0
  433. package/dist/validation/programmatic.js.map +1 -0
  434. package/dist/validation/types.d.ts +52 -0
  435. package/dist/validation/types.js +31 -0
  436. package/dist/validation/types.js.map +1 -0
  437. package/dist/validation/utils/expressions.d.ts +3 -0
  438. package/dist/validation/utils/expressions.js +37 -0
  439. package/dist/validation/utils/expressions.js.map +1 -0
  440. package/dist/validation/utils/is-tool.d.ts +2 -0
  441. package/dist/validation/utils/is-tool.js +7 -0
  442. package/dist/validation/utils/is-tool.js.map +1 -0
  443. package/dist/validation/utils/node-type-map.d.ts +8 -0
  444. package/dist/validation/utils/node-type-map.js +50 -0
  445. package/dist/validation/utils/node-type-map.js.map +1 -0
  446. package/dist/validation/utils/resolve-connections.d.ts +8 -0
  447. package/dist/validation/utils/resolve-connections.js +64 -0
  448. package/dist/validation/utils/resolve-connections.js.map +1 -0
  449. package/dist/workflow-builder-agent.d.ts +72 -0
  450. package/dist/workflow-builder-agent.js +401 -0
  451. package/dist/workflow-builder-agent.js.map +1 -0
  452. package/dist/workflow-state.d.ts +26 -0
  453. package/dist/workflow-state.js +79 -0
  454. package/dist/workflow-state.js.map +1 -0
  455. package/package.json +77 -0
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SWITCH_NODE_EXAMPLES = void 0;
4
+ exports.SWITCH_NODE_EXAMPLES = {
5
+ patterns: ['n8n-nodes-base.switch'],
6
+ content: `
7
+ ### Switch Node Examples
8
+
9
+ #### Example 1: Route by Amount Tiers (Purchase Approval)
10
+ Current Parameters: { "mode": "rules" }
11
+ Requested Changes: Route under $100 to auto-approve, $100-$1000 to manager, over $1000 to finance
12
+
13
+ Expected Output:
14
+ {
15
+ "mode": "rules",
16
+ "rules": {
17
+ "values": [
18
+ {
19
+ "conditions": {
20
+ "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict" },
21
+ "conditions": [
22
+ {
23
+ "leftValue": "={{ $json.amount }}",
24
+ "rightValue": 100,
25
+ "operator": { "type": "number", "operation": "lt" }
26
+ }
27
+ ],
28
+ "combinator": "and"
29
+ },
30
+ "renameOutput": true,
31
+ "outputKey": "Auto-Approve"
32
+ },
33
+ {
34
+ "conditions": {
35
+ "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict" },
36
+ "conditions": [
37
+ {
38
+ "leftValue": "={{ $json.amount }}",
39
+ "rightValue": 100,
40
+ "operator": { "type": "number", "operation": "gte" }
41
+ },
42
+ {
43
+ "leftValue": "={{ $json.amount }}",
44
+ "rightValue": 1000,
45
+ "operator": { "type": "number", "operation": "lte" }
46
+ }
47
+ ],
48
+ "combinator": "and"
49
+ },
50
+ "renameOutput": true,
51
+ "outputKey": "Manager Review"
52
+ },
53
+ {
54
+ "conditions": {
55
+ "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict" },
56
+ "conditions": [
57
+ {
58
+ "leftValue": "={{ $json.amount }}",
59
+ "rightValue": 1000,
60
+ "operator": { "type": "number", "operation": "gt" }
61
+ }
62
+ ],
63
+ "combinator": "and"
64
+ },
65
+ "renameOutput": true,
66
+ "outputKey": "Finance Review"
67
+ }
68
+ ]
69
+ }
70
+ }
71
+
72
+ #### Example 2: Route by Status String
73
+ Current Parameters: { "mode": "rules" }
74
+ Requested Changes: Route by order status - pending, processing, completed
75
+
76
+ Expected Output:
77
+ {
78
+ "mode": "rules",
79
+ "rules": {
80
+ "values": [
81
+ {
82
+ "conditions": {
83
+ "options": { "caseSensitive": false, "leftValue": "", "typeValidation": "loose" },
84
+ "conditions": [
85
+ {
86
+ "leftValue": "={{ $json.status }}",
87
+ "rightValue": "pending",
88
+ "operator": { "type": "string", "operation": "equals" }
89
+ }
90
+ ],
91
+ "combinator": "and"
92
+ },
93
+ "renameOutput": true,
94
+ "outputKey": "Pending"
95
+ },
96
+ {
97
+ "conditions": {
98
+ "options": { "caseSensitive": false, "leftValue": "", "typeValidation": "loose" },
99
+ "conditions": [
100
+ {
101
+ "leftValue": "={{ $json.status }}",
102
+ "rightValue": "processing",
103
+ "operator": { "type": "string", "operation": "equals" }
104
+ }
105
+ ],
106
+ "combinator": "and"
107
+ },
108
+ "renameOutput": true,
109
+ "outputKey": "Processing"
110
+ },
111
+ {
112
+ "conditions": {
113
+ "options": { "caseSensitive": false, "leftValue": "", "typeValidation": "loose" },
114
+ "conditions": [
115
+ {
116
+ "leftValue": "={{ $json.status }}",
117
+ "rightValue": "completed",
118
+ "operator": { "type": "string", "operation": "equals" }
119
+ }
120
+ ],
121
+ "combinator": "and"
122
+ },
123
+ "renameOutput": true,
124
+ "outputKey": "Completed"
125
+ }
126
+ ]
127
+ }
128
+ }
129
+ `,
130
+ };
131
+ //# sourceMappingURL=switch-node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch-node.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/examples/switch-node.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAqB;IACrD,QAAQ,EAAE,CAAC,uBAAuB,CAAC;IACnC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2HT;CACA,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeExamples } from '../types';
2
+ export declare const TOOL_NODE_EXAMPLES: NodeTypeExamples;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TOOL_NODE_EXAMPLES = void 0;
4
+ exports.TOOL_NODE_EXAMPLES = {
5
+ patterns: ['*Tool'],
6
+ content: `
7
+ ### Tool Node Examples
8
+
9
+ #### Example 1: Gmail Tool - Send Email with AI
10
+ Current Parameters: {}
11
+ Requested Changes: Let AI determine recipient, subject, and message
12
+ Expected Output:
13
+ {
14
+ "sendTo": "={{ $fromAI('to') }}",
15
+ "subject": "={{ $fromAI('subject') }}",
16
+ "message": "={{ $fromAI('message_html') }}",
17
+ "options": {}
18
+ }
19
+
20
+ #### Example 2: Google Calendar Tool - Filter by Date
21
+ Current Parameters:
22
+ {
23
+ "operation": "getAll",
24
+ "calendar": {
25
+ "__rl": true,
26
+ "value": "primary",
27
+ "mode": "list"
28
+ }
29
+ }
30
+
31
+ Requested Changes: Let AI determine date range for filtering
32
+
33
+ Expected Output:
34
+ {
35
+ "operation": "getAll",
36
+ "calendar": {
37
+ "__rl": true,
38
+ "value": "primary",
39
+ "mode": "list"
40
+ },
41
+ "timeMin": "={{ $fromAI('After', '', 'string') }}",
42
+ "timeMax": "={{ $fromAI('Before', '', 'string') }}"
43
+ }
44
+
45
+ #### Example 3: Slack Tool - Send Message
46
+ Current Parameters:
47
+ {
48
+ "resource": "message"
49
+ }
50
+
51
+ Requested Changes: Let AI determine channel and message content
52
+
53
+ Expected Output:
54
+ {
55
+ "resource": "message",
56
+ "channelId": "={{ $fromAI('channel') }}",
57
+ "messageText": "={{ $fromAI('message') }}"
58
+ }
59
+
60
+ #### Example 4: Tool Node with Mixed Content
61
+ Current Parameters:
62
+ {
63
+ "sendTo": "admin@company.com"
64
+ }
65
+
66
+ Requested Changes: Keep admin email but let AI add additional recipients and determine subject
67
+
68
+ Expected Output:
69
+ {
70
+ "sendTo": "=admin@company.com, {{ $fromAI('additional_recipients') }}",
71
+ "subject": "={{ $fromAI('subject') }} - Automated Report"
72
+ }`,
73
+ };
74
+ //# sourceMappingURL=tool-nodes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-nodes.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/examples/tool-nodes.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAqB;IACnD,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkER;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeGuide } from '../types';
2
+ export declare const EMBEDDING_NODES_GUIDE: NodeTypeGuide;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EMBEDDING_NODES_GUIDE = void 0;
4
+ exports.EMBEDDING_NODES_GUIDE = {
5
+ patterns: ['@n8n/n8n-nodes-langchain.embeddings*'],
6
+ content: `
7
+ ## CRITICAL: Embedding Models vs Chat Models
8
+
9
+ Embedding nodes (nodes with "embeddings" in their type name) MUST use embedding models, NOT chat/language models. Using a chat model in an embedding node will cause the workflow to fail.
10
+
11
+ ### Common Mistake to Avoid
12
+ NEVER configure an embedding node with chat models like:
13
+ - gpt-4, gpt-4o, gpt-4o-mini, gpt-3.5-turbo (OpenAI chat models)
14
+ - claude-3-opus, claude-3-sonnet (Anthropic chat models)
15
+ - gemini-pro, gemini-1.5-pro (Google chat models)
16
+ - llama-3, mixtral (general LLM models)
17
+
18
+ These are language/chat models designed for text generation, NOT for creating embeddings.
19
+
20
+ ### Correct Embedding Models by Provider
21
+
22
+ #### OpenAI Embeddings
23
+ - text-embedding-3-small (RECOMMENDED - default)
24
+ - text-embedding-3-large
25
+ - text-embedding-ada-002 (legacy)
26
+
27
+ #### AWS Bedrock Embeddings
28
+ - amazon.titan-embed-text-v1
29
+ - amazon.titan-embed-text-v2:0
30
+ - cohere.embed-english-v3
31
+ - cohere.embed-multilingual-v3
32
+
33
+ #### Google Gemini Embeddings
34
+ - models/text-embedding-004 (RECOMMENDED - default)
35
+ - models/embedding-001
36
+
37
+ #### Cohere Embeddings
38
+ - embed-english-v3.0 (1024 dimensions)
39
+ - embed-multilingual-v3.0 (1024 dimensions)
40
+ - embed-english-light-v3.0 (384 dimensions)
41
+ - embed-multilingual-light-v3.0 (384 dimensions)
42
+ - embed-english-v2.0 (4096 dimensions)
43
+
44
+ #### Mistral Embeddings
45
+ - mistral-embed (default)
46
+
47
+ #### Ollama Embeddings
48
+ - nomic-embed-text
49
+ - mxbai-embed-large
50
+ - all-minilm
51
+ - snowflake-arctic-embed
52
+
53
+ ### How to Identify Embedding Models
54
+ Embedding model names typically contain:
55
+ - "embed" or "embedding" in the name
56
+ - "e5", "bge", "gte" (common embedding model families)
57
+ - "nomic", "minilm", "arctic" (embedding-specific models)
58
+
59
+ ### Key Rules
60
+ 1. ALWAYS check if the node type contains "embeddings" - if so, use an embedding model
61
+ 2. If the user mentions a chat model (gpt-4, claude, gemini-pro, etc.) for embeddings, do NOT use it
62
+ 3. Suggest the appropriate embedding model from the same provider instead
63
+ 4. When in doubt, use the provider's default embedding model
64
+
65
+ ### Parameter Names
66
+ The model parameter may be named:
67
+ - "model" (OpenAI, Bedrock, Mistral, Ollama, Azure)
68
+ - "modelName" (Google Gemini, Cohere)`,
69
+ };
70
+ //# sourceMappingURL=embedding-nodes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"embedding-nodes.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/guides/embedding-nodes.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAkB;IACnD,QAAQ,EAAE,CAAC,sCAAsC,CAAC;IAClD,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCA8D4B;CACrC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeGuide } from '../types';
2
+ export declare const GMAIL_GUIDE: NodeTypeGuide;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GMAIL_GUIDE = void 0;
4
+ exports.GMAIL_GUIDE = {
5
+ patterns: ['n8n-nodes-base.gmail'],
6
+ content: `
7
+ ### Gmail Node Updates
8
+
9
+ #### Common Parameters
10
+ - **resource**: message, draft, label, thread
11
+ - **operation**: send, get, list, etc.
12
+ - **to**: Recipient email address
13
+ - **subject**: Email subject line
14
+ - **message**: Email body/content
15
+ - **authentication**: OAuth2 or Service Account
16
+
17
+ #### Common Patterns
18
+ 1. **Sending Email**:
19
+ - Set resource to "message"
20
+ - Set operation to "send"
21
+ - Configure to, subject, and message fields
22
+
23
+ 2. **Using Expressions**:
24
+ - Can use expressions: "={{ $('Previous Node').item.json.email }}"
25
+ - Can reference previous node data for dynamic values
26
+ `,
27
+ };
28
+ //# sourceMappingURL=gmail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gmail.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/guides/gmail.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAkB;IACzC,QAAQ,EAAE,CAAC,sBAAsB,CAAC;IAClC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;CAoBT;CACA,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeGuide } from '../types';
2
+ export declare const HTTP_REQUEST_GUIDE: NodeTypeGuide;
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HTTP_REQUEST_GUIDE = void 0;
4
+ exports.HTTP_REQUEST_GUIDE = {
5
+ patterns: ['n8n-nodes-base.httpRequest', 'n8n-nodes-base.webhook'],
6
+ content: `
7
+ ### HTTP Request Node Updates
8
+
9
+ #### IMPORTANT - Credential Security
10
+
11
+ **NEVER hardcode credentials** (API keys, tokens, passwords, secrets) in the HTTP Request node parameters.
12
+ Instead, ALWAYS use n8n's built-in credential system:
13
+
14
+ 1. Set \`authentication\` to \`"genericCredentialType"\`
15
+ 2. Set \`genericAuthType\` to the appropriate credential type:
16
+ - \`"httpHeaderAuth"\` - For API keys sent in headers (X-API-Key, Authorization, etc.)
17
+ - \`"httpBearerAuth"\` - For Bearer token authentication
18
+ - \`"httpQueryAuth"\` - For API keys sent as query parameters
19
+ - \`"httpBasicAuth"\` - For username/password authentication
20
+ - \`"oAuth2Api"\` - For OAuth 2.0 authentication
21
+
22
+ **DO NOT:**
23
+ - Put API keys or tokens directly in header values
24
+ - Store credentials in Set nodes and reference them with expressions
25
+ - Hardcode Bearer tokens in Authorization headers
26
+
27
+ **DO:**
28
+ - Use the authentication parameter with the appropriate credential type
29
+ - Let users configure their credentials securely in n8n's credential manager
30
+
31
+ #### Common Parameters
32
+ - **url**: The endpoint URL (can use expressions)
33
+ - **method**: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS
34
+ - **authentication**: Type of auth (none, genericCredentialType, etc.)
35
+ - **sendHeaders**: Boolean to enable custom headers
36
+ - **headerParameters**: Array of header key-value pairs
37
+ - **sendBody**: Boolean to enable request body (for POST/PUT/PATCH)
38
+ - **bodyParameters**: Array of body parameters or raw body content
39
+ - **contentType**: json, form, raw, etc.
40
+ - **options**: Additional options like timeout, proxy, etc.
41
+
42
+ #### Header Structure
43
+ {
44
+ "sendHeaders": true,
45
+ "headerParameters": {
46
+ "parameters": [
47
+ {
48
+ "name": "Header-Name",
49
+ "value": "Header Value or {{ expression }}"
50
+ }
51
+ ]
52
+ }
53
+ }
54
+
55
+ #### Body Structure (JSON)
56
+ {
57
+ "sendBody": true,
58
+ "contentType": "json",
59
+ "bodyParameters": {
60
+ "parameters": [
61
+ {
62
+ "name": "fieldName",
63
+ "value": "fieldValue or {{ expression }}"
64
+ }
65
+ ]
66
+ }
67
+ }
68
+
69
+ #### Authentication Options
70
+ - **none**: No authentication
71
+ - **genericCredentialType**: Use stored credentials
72
+ - **predefinedCredentialType**: Use specific credential type
73
+ - Can also set custom auth headers
74
+
75
+ #### Common Patterns
76
+ 1. **Adding API Key Header**:
77
+ - Enable sendHeaders
78
+ - Add header with name "X-API-Key" or "Authorization"
79
+
80
+ 2. **Setting Request Body**:
81
+ - Enable sendBody
82
+ - Set contentType (usually "json")
83
+ - Add parameters to bodyParameters.parameters array
84
+
85
+ 3. **Dynamic URLs**:
86
+ - Can use expressions: "=https://api.example.com/{{ $('Set').item.json.endpoint }}"
87
+ - Can reference previous node data
88
+
89
+ 4. **Query Parameters**:
90
+ - Can be part of URL or set in options.queryParameters
91
+
92
+ #### Example: HTTP Request with Authentication and Body
93
+ Current Parameters:
94
+ {
95
+ "method": "GET",
96
+ "url": "https://api.example.com/data"
97
+ }
98
+
99
+ Requested Changes:
100
+ - Change to POST method
101
+ - Add API key authentication (using n8n credentials)
102
+ - Add JSON body with user ID and status
103
+
104
+ Expected Output:
105
+ {
106
+ "method": "POST",
107
+ "url": "https://api.example.com/data",
108
+ "authentication": "genericCredentialType",
109
+ "genericAuthType": "httpHeaderAuth",
110
+ "sendHeaders": true,
111
+ "headerParameters": {
112
+ "parameters": [
113
+ {
114
+ "name": "Content-Type",
115
+ "value": "application/json"
116
+ }
117
+ ]
118
+ },
119
+ "sendBody": true,
120
+ "contentType": "json",
121
+ "bodyParameters": {
122
+ "parameters": [
123
+ {
124
+ "name": "userId",
125
+ "value": "={{ $('Previous Node').item.json.id }}"
126
+ },
127
+ {
128
+ "name": "status",
129
+ "value": "active"
130
+ }
131
+ ]
132
+ },
133
+ "options": {}
134
+ }
135
+
136
+ Note: The API key is handled by the httpHeaderAuth credential, NOT hardcoded in the header parameters.
137
+ The user will configure their API key securely in n8n's credential manager.`,
138
+ };
139
+ //# sourceMappingURL=http-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-request.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/guides/http-request.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAkB;IAChD,QAAQ,EAAE,CAAC,4BAA4B,EAAE,wBAAwB,CAAC;IAClE,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAmIkE;CAC3E,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeGuide } from '../types';
2
+ export declare const IF_NODE_GUIDE: NodeTypeGuide;
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IF_NODE_GUIDE = void 0;
4
+ exports.IF_NODE_GUIDE = {
5
+ patterns: ['n8n-nodes-base.if'],
6
+ content: `
7
+ ### The IF node uses a complex filter structure for conditional logic. Understanding the correct operator format is crucial.
8
+
9
+ #### IF Node Structure
10
+ \`\`\`json
11
+ {
12
+ "conditions": {
13
+ "options": {
14
+ "caseSensitive": false, // For string comparisons
15
+ "leftValue": "", // Optional default left value
16
+ "typeValidation": "loose" // "strict" or "loose"
17
+ },
18
+ "conditions": [
19
+ {
20
+ "id": "unique-id", // Optional, auto-generated
21
+ "leftValue": "={{ $('Node').item.json.field }}",
22
+ "rightValue": "value", // Can be expression or literal
23
+ "operator": {
24
+ "type": "string|number|boolean|dateTime|array|object",
25
+ "operation": "specific-operation"
26
+ }
27
+ }
28
+ ],
29
+ "combinator": "and" // "and" or "or"
30
+ }
31
+ }
32
+ \`\`\`
33
+
34
+ #### Complete Operator Reference
35
+
36
+ ##### String Operators
37
+ - **exists**: Check if value exists (singleValue: true, no rightValue needed)
38
+ \`{ "type": "string", "operation": "exists" }\`
39
+ - **notExists**: Check if value doesn't exist (singleValue: true)
40
+ \`{ "type": "string", "operation": "notExists" }\`
41
+ - **empty**: Check if string is empty (singleValue: true)
42
+ \`{ "type": "string", "operation": "empty" }\`
43
+ - **notEmpty**: Check if string is not empty (singleValue: true)
44
+ \`{ "type": "string", "operation": "notEmpty" }\`
45
+ - **equals**: Exact match
46
+ \`{ "type": "string", "operation": "equals" }\`
47
+ - **notEquals**: Not equal
48
+ \`{ "type": "string", "operation": "notEquals" }\`
49
+ - **contains**: Contains substring
50
+ \`{ "type": "string", "operation": "contains" }\`
51
+ - **notContains**: Doesn't contain substring
52
+ \`{ "type": "string", "operation": "notContains" }\`
53
+ - **startsWith**: Starts with string
54
+ \`{ "type": "string", "operation": "startsWith" }\`
55
+ - **notStartsWith**: Doesn't start with
56
+ \`{ "type": "string", "operation": "notStartsWith" }\`
57
+ - **endsWith**: Ends with string
58
+ \`{ "type": "string", "operation": "endsWith" }\`
59
+ - **notEndsWith**: Doesn't end with
60
+ \`{ "type": "string", "operation": "notEndsWith" }\`
61
+ - **regex**: Matches regex pattern
62
+ \`{ "type": "string", "operation": "regex" }\`
63
+ - **notRegex**: Doesn't match regex
64
+ \`{ "type": "string", "operation": "notRegex" }\`
65
+
66
+ ##### Number Operators
67
+ - **exists**: Check if number exists (singleValue: true)
68
+ \`{ "type": "number", "operation": "exists" }\`
69
+ - **notExists**: Check if number doesn't exist (singleValue: true)
70
+ \`{ "type": "number", "operation": "notExists" }\`
71
+ - **equals**: Equal to
72
+ \`{ "type": "number", "operation": "equals" }\`
73
+ - **notEquals**: Not equal to
74
+ \`{ "type": "number", "operation": "notEquals" }\`
75
+ - **gt**: Greater than
76
+ \`{ "type": "number", "operation": "gt" }\`
77
+ - **lt**: Less than
78
+ \`{ "type": "number", "operation": "lt" }\`
79
+ - **gte**: Greater than or equal
80
+ \`{ "type": "number", "operation": "gte" }\`
81
+ - **lte**: Less than or equal
82
+ \`{ "type": "number", "operation": "lte" }\`
83
+
84
+ ##### DateTime Operators
85
+ - **exists**: Check if date exists (singleValue: true)
86
+ \`{ "type": "dateTime", "operation": "exists" }\`
87
+ - **notExists**: Check if date doesn't exist (singleValue: true)
88
+ \`{ "type": "dateTime", "operation": "notExists" }\`
89
+ - **equals**: Same date/time
90
+ \`{ "type": "dateTime", "operation": "equals" }\`
91
+ - **notEquals**: Different date/time
92
+ \`{ "type": "dateTime", "operation": "notEquals" }\`
93
+ - **after**: After date
94
+ \`{ "type": "dateTime", "operation": "after" }\`
95
+ - **before**: Before date
96
+ \`{ "type": "dateTime", "operation": "before" }\`
97
+ - **afterOrEquals**: After or same date
98
+ \`{ "type": "dateTime", "operation": "afterOrEquals" }\`
99
+ - **beforeOrEquals**: Before or same date
100
+ \`{ "type": "dateTime", "operation": "beforeOrEquals" }\`
101
+
102
+ ##### Boolean Operators
103
+ - **exists**: Check if boolean exists (singleValue: true)
104
+ \`{ "type": "boolean", "operation": "exists" }\`
105
+ - **notExists**: Check if boolean doesn't exist (singleValue: true)
106
+ \`{ "type": "boolean", "operation": "notExists" }\`
107
+ - **true**: Is true (singleValue: true)
108
+ \`{ "type": "boolean", "operation": "true" }\`
109
+ - **false**: Is false (singleValue: true)
110
+ \`{ "type": "boolean", "operation": "false" }\`
111
+ - **equals**: Equal to boolean value
112
+ \`{ "type": "boolean", "operation": "equals" }\`
113
+ - **notEquals**: Not equal to boolean value
114
+ \`{ "type": "boolean", "operation": "notEquals" }\`
115
+
116
+ ##### Array Operators
117
+ - **exists**: Check if array exists (singleValue: true)
118
+ \`{ "type": "array", "operation": "exists" }\`
119
+ - **notExists**: Check if array doesn't exist (singleValue: true)
120
+ \`{ "type": "array", "operation": "notExists" }\`
121
+ - **empty**: Array is empty (singleValue: true)
122
+ \`{ "type": "array", "operation": "empty" }\`
123
+ - **notEmpty**: Array is not empty (singleValue: true)
124
+ \`{ "type": "array", "operation": "notEmpty" }\`
125
+ - **contains**: Array contains value
126
+ \`{ "type": "array", "operation": "contains" }\`
127
+ - **notContains**: Array doesn't contain value
128
+ \`{ "type": "array", "operation": "notContains" }\`
129
+ - **lengthEquals**: Array length equals
130
+ \`{ "type": "array", "operation": "lengthEquals" }\`
131
+ - **lengthNotEquals**: Array length not equals
132
+ \`{ "type": "array", "operation": "lengthNotEquals" }\`
133
+ - **lengthGt**: Array length greater than
134
+ \`{ "type": "array", "operation": "lengthGt" }\`
135
+ - **lengthLt**: Array length less than
136
+ \`{ "type": "array", "operation": "lengthLt" }\`
137
+ - **lengthGte**: Array length greater or equal
138
+ \`{ "type": "array", "operation": "lengthGte" }\`
139
+ - **lengthLte**: Array length less or equal
140
+ \`{ "type": "array", "operation": "lengthLte" }\`
141
+
142
+ ##### Object Operators
143
+ - **exists**: Check if object exists (singleValue: true)
144
+ \`{ "type": "object", "operation": "exists" }\`
145
+ - **notExists**: Check if object doesn't exist (singleValue: true)
146
+ \`{ "type": "object", "operation": "notExists" }\`
147
+ - **empty**: Object is empty (singleValue: true)
148
+ \`{ "type": "object", "operation": "empty" }\`
149
+ - **notEmpty**: Object is not empty (singleValue: true)
150
+ \`{ "type": "object", "operation": "notEmpty" }\`
151
+
152
+ #### Important Notes:
153
+ 1. **singleValue operators**: When using exists, notExists, empty, notEmpty, true, or false operators, DO NOT include a rightValue in the condition
154
+ 2. **Expression values**: Both leftValue and rightValue can be expressions using \`={{ ... }}\` syntax
155
+ 3. **Type matching**: The operator type must match the data type you're comparing
156
+ 4. **Case sensitivity**: Only applies to string comparisons when caseSensitive is true in options
157
+ 5. **Type validation**: "loose" allows type coercion, "strict" requires exact type matches`,
158
+ };
159
+ //# sourceMappingURL=if-node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"if-node.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/guides/if-node.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAkB;IAC3C,QAAQ,EAAE,CAAC,mBAAmB,CAAC;IAC/B,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2FAuJiF;CAC1F,CAAC"}
@@ -0,0 +1,10 @@
1
+ export { SET_NODE_GUIDE } from './set-node';
2
+ export { IF_NODE_GUIDE } from './if-node';
3
+ export { SWITCH_NODE_GUIDE } from './switch-node';
4
+ export { HTTP_REQUEST_GUIDE } from './http-request';
5
+ export { TOOL_NODES_GUIDE } from './tool-nodes';
6
+ export { GMAIL_GUIDE } from './gmail';
7
+ export { EMBEDDING_NODES_GUIDE } from './embedding-nodes';
8
+ export { RESOURCE_LOCATOR_GUIDE } from './resource-locator';
9
+ export { SYSTEM_MESSAGE_GUIDE } from './system-message';
10
+ export { TEXT_FIELDS_GUIDE } from './text-fields';