@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.
- package/dist/agents/responder.agent.d.ts +21 -0
- package/dist/agents/responder.agent.js +71 -0
- package/dist/agents/responder.agent.js.map +1 -0
- package/dist/agents/supervisor.agent.d.ts +31 -0
- package/dist/agents/supervisor.agent.js +68 -0
- package/dist/agents/supervisor.agent.js.map +1 -0
- package/dist/ai-workflow-builder-agent.service.d.ts +32 -0
- package/dist/ai-workflow-builder-agent.service.js +236 -0
- package/dist/ai-workflow-builder-agent.service.js.map +1 -0
- package/dist/build.tsbuildinfo +1 -0
- package/dist/chains/conversation-compact.d.ts +7 -0
- package/dist/chains/conversation-compact.js +56 -0
- package/dist/chains/conversation-compact.js.map +1 -0
- package/dist/chains/parameter-updater.d.ts +16 -0
- package/dist/chains/parameter-updater.js +112 -0
- package/dist/chains/parameter-updater.js.map +1 -0
- package/dist/chains/prompt-categorization.d.ts +3 -0
- package/dist/chains/prompt-categorization.js +31 -0
- package/dist/chains/prompt-categorization.js.map +1 -0
- package/dist/chains/test/integration/test-helpers.d.ts +3 -0
- package/dist/chains/test/integration/test-helpers.js +16 -0
- package/dist/chains/test/integration/test-helpers.js.map +1 -0
- package/dist/chains/workflow-name.d.ts +4 -0
- package/dist/chains/workflow-name.js +22 -0
- package/dist/chains/workflow-name.js.map +1 -0
- package/dist/constants.d.ts +14 -0
- package/dist/constants.js +18 -0
- package/dist/constants.js.map +1 -0
- package/dist/errors/index.d.ts +52 -0
- package/dist/errors/index.js +137 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/llm-config.d.ts +11 -0
- package/dist/llm-config.js +126 -0
- package/dist/llm-config.js.map +1 -0
- package/dist/multi-agent-workflow-subgraphs.d.ts +122 -0
- package/dist/multi-agent-workflow-subgraphs.js +159 -0
- package/dist/multi-agent-workflow-subgraphs.js.map +1 -0
- package/dist/parent-graph-state.d.ts +27 -0
- package/dist/parent-graph-state.js +47 -0
- package/dist/parent-graph-state.js.map +1 -0
- package/dist/prompts/agents/builder.prompt.d.ts +1 -0
- package/dist/prompts/agents/builder.prompt.js +320 -0
- package/dist/prompts/agents/builder.prompt.js.map +1 -0
- package/dist/prompts/agents/configurator.prompt.d.ts +2 -0
- package/dist/prompts/agents/configurator.prompt.js +143 -0
- package/dist/prompts/agents/configurator.prompt.js.map +1 -0
- package/dist/prompts/agents/discovery.prompt.d.ts +11 -0
- package/dist/prompts/agents/discovery.prompt.js +260 -0
- package/dist/prompts/agents/discovery.prompt.js.map +1 -0
- package/dist/prompts/agents/responder.prompt.d.ts +1 -0
- package/dist/prompts/agents/responder.prompt.js +41 -0
- package/dist/prompts/agents/responder.prompt.js.map +1 -0
- package/dist/prompts/agents/supervisor.prompt.d.ts +1 -0
- package/dist/prompts/agents/supervisor.prompt.js +43 -0
- package/dist/prompts/agents/supervisor.prompt.js.map +1 -0
- package/dist/prompts/builder/index.d.ts +2 -0
- package/dist/prompts/builder/index.js +7 -0
- package/dist/prompts/builder/index.js.map +1 -0
- package/dist/prompts/builder/prompt-builder.d.ts +17 -0
- package/dist/prompts/builder/prompt-builder.js +147 -0
- package/dist/prompts/builder/prompt-builder.js.map +1 -0
- package/dist/prompts/builder/types.d.ts +22 -0
- package/dist/prompts/builder/types.js +3 -0
- package/dist/prompts/builder/types.js.map +1 -0
- package/dist/prompts/chains/categorization.prompt.d.ts +43 -0
- package/dist/prompts/chains/categorization.prompt.js +86 -0
- package/dist/prompts/chains/categorization.prompt.js.map +1 -0
- package/dist/prompts/chains/compact.prompt.d.ts +2 -0
- package/dist/prompts/chains/compact.prompt.js +16 -0
- package/dist/prompts/chains/compact.prompt.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/examples/if-node.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/examples/if-node.js +141 -0
- package/dist/prompts/chains/parameter-updater/examples/if-node.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/examples/index.d.ts +6 -0
- package/dist/prompts/chains/parameter-updater/examples/index.js +16 -0
- package/dist/prompts/chains/parameter-updater/examples/index.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/examples/resource-locator.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/examples/resource-locator.js +83 -0
- package/dist/prompts/chains/parameter-updater/examples/resource-locator.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/examples/set-node.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/examples/set-node.js +151 -0
- package/dist/prompts/chains/parameter-updater/examples/set-node.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/examples/simple-updates.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/examples/simple-updates.js +54 -0
- package/dist/prompts/chains/parameter-updater/examples/simple-updates.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/examples/switch-node.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/examples/switch-node.js +131 -0
- package/dist/prompts/chains/parameter-updater/examples/switch-node.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/examples/tool-nodes.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/examples/tool-nodes.js +74 -0
- package/dist/prompts/chains/parameter-updater/examples/tool-nodes.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/guides/embedding-nodes.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/guides/embedding-nodes.js +70 -0
- package/dist/prompts/chains/parameter-updater/guides/embedding-nodes.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/guides/gmail.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/guides/gmail.js +28 -0
- package/dist/prompts/chains/parameter-updater/guides/gmail.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/guides/http-request.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/guides/http-request.js +139 -0
- package/dist/prompts/chains/parameter-updater/guides/http-request.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/guides/if-node.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/guides/if-node.js +159 -0
- package/dist/prompts/chains/parameter-updater/guides/if-node.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/guides/index.d.ts +10 -0
- package/dist/prompts/chains/parameter-updater/guides/index.js +24 -0
- package/dist/prompts/chains/parameter-updater/guides/index.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/guides/resource-locator.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/guides/resource-locator.js +99 -0
- package/dist/prompts/chains/parameter-updater/guides/resource-locator.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/guides/set-node.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/guides/set-node.js +94 -0
- package/dist/prompts/chains/parameter-updater/guides/set-node.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/guides/switch-node.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/guides/switch-node.js +75 -0
- package/dist/prompts/chains/parameter-updater/guides/switch-node.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/guides/system-message.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/guides/system-message.js +96 -0
- package/dist/prompts/chains/parameter-updater/guides/system-message.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/guides/text-fields.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/guides/text-fields.js +31 -0
- package/dist/prompts/chains/parameter-updater/guides/text-fields.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/guides/tool-nodes.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/guides/tool-nodes.js +76 -0
- package/dist/prompts/chains/parameter-updater/guides/tool-nodes.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/index.d.ts +8 -0
- package/dist/prompts/chains/parameter-updater/index.js +35 -0
- package/dist/prompts/chains/parameter-updater/index.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/instance-url.d.ts +1 -0
- package/dist/prompts/chains/parameter-updater/instance-url.js +15 -0
- package/dist/prompts/chains/parameter-updater/instance-url.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/parameter-updater.prompt.d.ts +4 -0
- package/dist/prompts/chains/parameter-updater/parameter-updater.prompt.js +52 -0
- package/dist/prompts/chains/parameter-updater/parameter-updater.prompt.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/registry.d.ts +4 -0
- package/dist/prompts/chains/parameter-updater/registry.js +66 -0
- package/dist/prompts/chains/parameter-updater/registry.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/types.d.ts +18 -0
- package/dist/prompts/chains/parameter-updater/types.js +3 -0
- package/dist/prompts/chains/parameter-updater/types.js.map +1 -0
- package/dist/prompts/chains/parameter-updater/utils.d.ts +2 -0
- package/dist/prompts/chains/parameter-updater/utils.js +16 -0
- package/dist/prompts/chains/parameter-updater/utils.js.map +1 -0
- package/dist/prompts/chains/workflow-name.prompt.d.ts +2 -0
- package/dist/prompts/chains/workflow-name.prompt.js +11 -0
- package/dist/prompts/chains/workflow-name.prompt.js.map +1 -0
- package/dist/prompts/index.d.ts +12 -0
- package/dist/prompts/index.js +50 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/prompts/legacy-agent.prompt.d.ts +6 -0
- package/dist/prompts/legacy-agent.prompt.js +594 -0
- package/dist/prompts/legacy-agent.prompt.js.map +1 -0
- package/dist/session-manager.service.d.ts +16 -0
- package/dist/session-manager.service.js +125 -0
- package/dist/session-manager.service.js.map +1 -0
- package/dist/subgraphs/builder.subgraph.d.ts +132 -0
- package/dist/subgraphs/builder.subgraph.js +173 -0
- package/dist/subgraphs/builder.subgraph.js.map +1 -0
- package/dist/subgraphs/configurator.subgraph.d.ts +142 -0
- package/dist/subgraphs/configurator.subgraph.js +173 -0
- package/dist/subgraphs/configurator.subgraph.js.map +1 -0
- package/dist/subgraphs/discovery.subgraph.d.ts +158 -0
- package/dist/subgraphs/discovery.subgraph.js +221 -0
- package/dist/subgraphs/discovery.subgraph.js.map +1 -0
- package/dist/subgraphs/subgraph-interface.d.ts +23 -0
- package/dist/subgraphs/subgraph-interface.js +7 -0
- package/dist/subgraphs/subgraph-interface.js.map +1 -0
- package/dist/tools/add-node.tool.d.ts +54 -0
- package/dist/tools/add-node.tool.js +176 -0
- package/dist/tools/add-node.tool.js.map +1 -0
- package/dist/tools/best-practices/chatbot.d.ts +7 -0
- package/dist/tools/best-practices/chatbot.js +118 -0
- package/dist/tools/best-practices/chatbot.js.map +1 -0
- package/dist/tools/best-practices/content-generation.d.ts +7 -0
- package/dist/tools/best-practices/content-generation.js +115 -0
- package/dist/tools/best-practices/content-generation.js.map +1 -0
- package/dist/tools/best-practices/data-analysis.d.ts +7 -0
- package/dist/tools/best-practices/data-analysis.js +367 -0
- package/dist/tools/best-practices/data-analysis.js.map +1 -0
- package/dist/tools/best-practices/data-extraction.d.ts +7 -0
- package/dist/tools/best-practices/data-extraction.js +122 -0
- package/dist/tools/best-practices/data-extraction.js.map +1 -0
- package/dist/tools/best-practices/data-transformation.d.ts +7 -0
- package/dist/tools/best-practices/data-transformation.js +162 -0
- package/dist/tools/best-practices/data-transformation.js.map +1 -0
- package/dist/tools/best-practices/document-processing.d.ts +7 -0
- package/dist/tools/best-practices/document-processing.js +335 -0
- package/dist/tools/best-practices/document-processing.js.map +1 -0
- package/dist/tools/best-practices/enrichment.d.ts +7 -0
- package/dist/tools/best-practices/enrichment.js +271 -0
- package/dist/tools/best-practices/enrichment.js.map +1 -0
- package/dist/tools/best-practices/form-input.d.ts +7 -0
- package/dist/tools/best-practices/form-input.js +173 -0
- package/dist/tools/best-practices/form-input.js.map +1 -0
- package/dist/tools/best-practices/human-in-the-loop.d.ts +7 -0
- package/dist/tools/best-practices/human-in-the-loop.js +268 -0
- package/dist/tools/best-practices/human-in-the-loop.js.map +1 -0
- package/dist/tools/best-practices/index.d.ts +3 -0
- package/dist/tools/best-practices/index.js +29 -0
- package/dist/tools/best-practices/index.js.map +1 -0
- package/dist/tools/best-practices/knowledge-base.d.ts +7 -0
- package/dist/tools/best-practices/knowledge-base.js +268 -0
- package/dist/tools/best-practices/knowledge-base.js.map +1 -0
- package/dist/tools/best-practices/monitoring.d.ts +7 -0
- package/dist/tools/best-practices/monitoring.js +178 -0
- package/dist/tools/best-practices/monitoring.js.map +1 -0
- package/dist/tools/best-practices/notification.d.ts +7 -0
- package/dist/tools/best-practices/notification.js +229 -0
- package/dist/tools/best-practices/notification.js.map +1 -0
- package/dist/tools/best-practices/scheduling.d.ts +7 -0
- package/dist/tools/best-practices/scheduling.js +281 -0
- package/dist/tools/best-practices/scheduling.js.map +1 -0
- package/dist/tools/best-practices/scraping-and-research.d.ts +7 -0
- package/dist/tools/best-practices/scraping-and-research.js +161 -0
- package/dist/tools/best-practices/scraping-and-research.js.map +1 -0
- package/dist/tools/best-practices/triage.d.ts +7 -0
- package/dist/tools/best-practices/triage.js +211 -0
- package/dist/tools/best-practices/triage.js.map +1 -0
- package/dist/tools/builder-tools.d.ts +16 -0
- package/dist/tools/builder-tools.js +36 -0
- package/dist/tools/builder-tools.js.map +1 -0
- package/dist/tools/categorize-prompt.tool.d.ts +5 -0
- package/dist/tools/categorize-prompt.tool.js +85 -0
- package/dist/tools/categorize-prompt.tool.js.map +1 -0
- package/dist/tools/connect-nodes.tool.d.ts +22 -0
- package/dist/tools/connect-nodes.tool.js +231 -0
- package/dist/tools/connect-nodes.tool.js.map +1 -0
- package/dist/tools/engines/node-search-engine.d.ts +16 -0
- package/dist/tools/engines/node-search-engine.js +123 -0
- package/dist/tools/engines/node-search-engine.js.map +1 -0
- package/dist/tools/get-best-practices.tool.d.ts +33 -0
- package/dist/tools/get-best-practices.tool.js +94 -0
- package/dist/tools/get-best-practices.tool.js.map +1 -0
- package/dist/tools/get-node-examples.tool.d.ts +119 -0
- package/dist/tools/get-node-examples.tool.js +189 -0
- package/dist/tools/get-node-examples.tool.js.map +1 -0
- package/dist/tools/get-node-parameter.tool.d.ts +4 -0
- package/dist/tools/get-node-parameter.tool.js +114 -0
- package/dist/tools/get-node-parameter.tool.js.map +1 -0
- package/dist/tools/get-workflow-examples.tool.d.ts +34 -0
- package/dist/tools/get-workflow-examples.tool.js +138 -0
- package/dist/tools/get-workflow-examples.tool.js.map +1 -0
- package/dist/tools/helpers/index.d.ts +4 -0
- package/dist/tools/helpers/index.js +21 -0
- package/dist/tools/helpers/index.js.map +1 -0
- package/dist/tools/helpers/progress.d.ts +9 -0
- package/dist/tools/helpers/progress.js +126 -0
- package/dist/tools/helpers/progress.js.map +1 -0
- package/dist/tools/helpers/response.d.ts +7 -0
- package/dist/tools/helpers/response.js +33 -0
- package/dist/tools/helpers/response.js.map +1 -0
- package/dist/tools/helpers/state.d.ts +14 -0
- package/dist/tools/helpers/state.js +85 -0
- package/dist/tools/helpers/state.js.map +1 -0
- package/dist/tools/helpers/validation.d.ts +13 -0
- package/dist/tools/helpers/validation.js +83 -0
- package/dist/tools/helpers/validation.js.map +1 -0
- package/dist/tools/node-details.tool.d.ts +31 -0
- package/dist/tools/node-details.tool.js +201 -0
- package/dist/tools/node-details.tool.js.map +1 -0
- package/dist/tools/node-search.tool.d.ts +62 -0
- package/dist/tools/node-search.tool.js +155 -0
- package/dist/tools/node-search.tool.js.map +1 -0
- package/dist/tools/remove-connection.tool.d.ts +24 -0
- package/dist/tools/remove-connection.tool.js +234 -0
- package/dist/tools/remove-connection.tool.js.map +1 -0
- package/dist/tools/remove-node.tool.d.ts +4 -0
- package/dist/tools/remove-node.tool.js +106 -0
- package/dist/tools/remove-node.tool.js.map +1 -0
- package/dist/tools/update-node-parameters.tool.d.ts +5 -0
- package/dist/tools/update-node-parameters.tool.js +156 -0
- package/dist/tools/update-node-parameters.tool.js.map +1 -0
- package/dist/tools/utils/connection-parameters.utils.d.ts +8 -0
- package/dist/tools/utils/connection-parameters.utils.js +47 -0
- package/dist/tools/utils/connection-parameters.utils.js.map +1 -0
- package/dist/tools/utils/connection.utils.d.ts +15 -0
- package/dist/tools/utils/connection.utils.js +321 -0
- package/dist/tools/utils/connection.utils.js.map +1 -0
- package/dist/tools/utils/mermaid.utils.d.ts +13 -0
- package/dist/tools/utils/mermaid.utils.js +647 -0
- package/dist/tools/utils/mermaid.utils.js.map +1 -0
- package/dist/tools/utils/node-configuration.utils.d.ts +13 -0
- package/dist/tools/utils/node-configuration.utils.js +75 -0
- package/dist/tools/utils/node-configuration.utils.js.map +1 -0
- package/dist/tools/utils/node-creation.utils.d.ts +8 -0
- package/dist/tools/utils/node-creation.utils.js +56 -0
- package/dist/tools/utils/node-creation.utils.js.map +1 -0
- package/dist/tools/utils/node-positioning.utils.d.ts +17 -0
- package/dist/tools/utils/node-positioning.utils.js +87 -0
- package/dist/tools/utils/node-positioning.utils.js.map +1 -0
- package/dist/tools/utils/parameter-update.utils.d.ts +6 -0
- package/dist/tools/utils/parameter-update.utils.js +75 -0
- package/dist/tools/utils/parameter-update.utils.js.map +1 -0
- package/dist/tools/utils/test/workflows/ai-assistant.workflow.d.ts +2 -0
- package/dist/tools/utils/test/workflows/ai-assistant.workflow.js +542 -0
- package/dist/tools/utils/test/workflows/ai-assistant.workflow.js.map +1 -0
- package/dist/tools/validate-configuration.tool.d.ts +4 -0
- package/dist/tools/validate-configuration.tool.js +70 -0
- package/dist/tools/validate-configuration.tool.js.map +1 -0
- package/dist/tools/validate-structure.tool.d.ts +4 -0
- package/dist/tools/validate-structure.tool.js +66 -0
- package/dist/tools/validate-structure.tool.js.map +1 -0
- package/dist/tools/validate-workflow.tool.d.ts +5 -0
- package/dist/tools/validate-workflow.tool.js +73 -0
- package/dist/tools/validate-workflow.tool.js.map +1 -0
- package/dist/tools/web/templates.d.ts +23 -0
- package/dist/tools/web/templates.js +106 -0
- package/dist/tools/web/templates.js.map +1 -0
- package/dist/types/best-practices.d.ts +6 -0
- package/dist/types/best-practices.js +3 -0
- package/dist/types/best-practices.js.map +1 -0
- package/dist/types/categorization.d.ts +23 -0
- package/dist/types/categorization.js +38 -0
- package/dist/types/categorization.js.map +1 -0
- package/dist/types/config.d.ts +55 -0
- package/dist/types/config.js +3 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/connections.d.ts +30 -0
- package/dist/types/connections.js +3 -0
- package/dist/types/connections.js.map +1 -0
- package/dist/types/coordination.d.ts +42 -0
- package/dist/types/coordination.js +23 -0
- package/dist/types/coordination.js.map +1 -0
- package/dist/types/discovery-types.d.ts +12 -0
- package/dist/types/discovery-types.js +3 -0
- package/dist/types/discovery-types.js.map +1 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.js +18 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/langchain.d.ts +3 -0
- package/dist/types/langchain.js +15 -0
- package/dist/types/langchain.js.map +1 -0
- package/dist/types/messages.d.ts +32 -0
- package/dist/types/messages.js +3 -0
- package/dist/types/messages.js.map +1 -0
- package/dist/types/nodes.d.ts +27 -0
- package/dist/types/nodes.js +3 -0
- package/dist/types/nodes.js.map +1 -0
- package/dist/types/sessions.d.ts +8 -0
- package/dist/types/sessions.js +34 -0
- package/dist/types/sessions.js.map +1 -0
- package/dist/types/streaming.d.ts +33 -0
- package/dist/types/streaming.js +3 -0
- package/dist/types/streaming.js.map +1 -0
- package/dist/types/tools.d.ts +120 -0
- package/dist/types/tools.js +3 -0
- package/dist/types/tools.js.map +1 -0
- package/dist/types/utils.d.ts +2 -0
- package/dist/types/utils.js +3 -0
- package/dist/types/utils.js.map +1 -0
- package/dist/types/web/templates.d.ts +45 -0
- package/dist/types/web/templates.js +37 -0
- package/dist/types/web/templates.js.map +1 -0
- package/dist/types/workflow.d.ts +31 -0
- package/dist/types/workflow.js +3 -0
- package/dist/types/workflow.js.map +1 -0
- package/dist/utils/cache-control/helpers.d.ts +5 -0
- package/dist/utils/cache-control/helpers.js +126 -0
- package/dist/utils/cache-control/helpers.js.map +1 -0
- package/dist/utils/cache-control/index.d.ts +1 -0
- package/dist/utils/cache-control/index.js +9 -0
- package/dist/utils/cache-control/index.js.map +1 -0
- package/dist/utils/cleanup-dangling-tool-call-messages.d.ts +3 -0
- package/dist/utils/cleanup-dangling-tool-call-messages.js +10 -0
- package/dist/utils/cleanup-dangling-tool-call-messages.js.map +1 -0
- package/dist/utils/context-builders.d.ts +10 -0
- package/dist/utils/context-builders.js +71 -0
- package/dist/utils/context-builders.js.map +1 -0
- package/dist/utils/coordination-log.d.ts +15 -0
- package/dist/utils/coordination-log.js +75 -0
- package/dist/utils/coordination-log.js.map +1 -0
- package/dist/utils/http-proxy-agent.d.ts +2 -0
- package/dist/utils/http-proxy-agent.js +16 -0
- package/dist/utils/http-proxy-agent.js.map +1 -0
- package/dist/utils/node-helpers.d.ts +2 -0
- package/dist/utils/node-helpers.js +54 -0
- package/dist/utils/node-helpers.js.map +1 -0
- package/dist/utils/operations-processor.d.ts +14 -0
- package/dist/utils/operations-processor.js +196 -0
- package/dist/utils/operations-processor.js.map +1 -0
- package/dist/utils/state-modifier.d.ts +32 -0
- package/dist/utils/state-modifier.js +112 -0
- package/dist/utils/state-modifier.js.map +1 -0
- package/dist/utils/state-reducers.d.ts +3 -0
- package/dist/utils/state-reducers.js +20 -0
- package/dist/utils/state-reducers.js.map +1 -0
- package/dist/utils/stream-processor.d.ts +20 -0
- package/dist/utils/stream-processor.js +277 -0
- package/dist/utils/stream-processor.js.map +1 -0
- package/dist/utils/subgraph-helpers.d.ts +16 -0
- package/dist/utils/subgraph-helpers.js +117 -0
- package/dist/utils/subgraph-helpers.js.map +1 -0
- package/dist/utils/token-usage.d.ts +21 -0
- package/dist/utils/token-usage.js +45 -0
- package/dist/utils/token-usage.js.map +1 -0
- package/dist/utils/tool-executor.d.ts +3 -0
- package/dist/utils/tool-executor.js +108 -0
- package/dist/utils/tool-executor.js.map +1 -0
- package/dist/utils/trim-workflow-context.d.ts +2 -0
- package/dist/utils/trim-workflow-context.js +53 -0
- package/dist/utils/trim-workflow-context.js.map +1 -0
- package/dist/utils/workflow-validation.d.ts +2 -0
- package/dist/utils/workflow-validation.js +37 -0
- package/dist/utils/workflow-validation.js.map +1 -0
- package/dist/validation/checks/agent-prompt.d.ts +3 -0
- package/dist/validation/checks/agent-prompt.js +47 -0
- package/dist/validation/checks/agent-prompt.js.map +1 -0
- package/dist/validation/checks/connections.d.ts +4 -0
- package/dist/validation/checks/connections.js +163 -0
- package/dist/validation/checks/connections.js.map +1 -0
- package/dist/validation/checks/credentials.d.ts +3 -0
- package/dist/validation/checks/credentials.js +125 -0
- package/dist/validation/checks/credentials.js.map +1 -0
- package/dist/validation/checks/from-ai.d.ts +4 -0
- package/dist/validation/checks/from-ai.js +62 -0
- package/dist/validation/checks/from-ai.js.map +1 -0
- package/dist/validation/checks/index.d.ts +7 -0
- package/dist/validation/checks/index.js +18 -0
- package/dist/validation/checks/index.js.map +1 -0
- package/dist/validation/checks/nodes.d.ts +4 -0
- package/dist/validation/checks/nodes.js +44 -0
- package/dist/validation/checks/nodes.js.map +1 -0
- package/dist/validation/checks/tools.d.ts +4 -0
- package/dist/validation/checks/tools.js +38 -0
- package/dist/validation/checks/tools.js.map +1 -0
- package/dist/validation/checks/trigger.d.ts +8 -0
- package/dist/validation/checks/trigger.js +33 -0
- package/dist/validation/checks/trigger.js.map +1 -0
- package/dist/validation/programmatic.d.ts +3 -0
- package/dist/validation/programmatic.js +24 -0
- package/dist/validation/programmatic.js.map +1 -0
- package/dist/validation/types.d.ts +52 -0
- package/dist/validation/types.js +31 -0
- package/dist/validation/types.js.map +1 -0
- package/dist/validation/utils/expressions.d.ts +3 -0
- package/dist/validation/utils/expressions.js +37 -0
- package/dist/validation/utils/expressions.js.map +1 -0
- package/dist/validation/utils/is-tool.d.ts +2 -0
- package/dist/validation/utils/is-tool.js +7 -0
- package/dist/validation/utils/is-tool.js.map +1 -0
- package/dist/validation/utils/node-type-map.d.ts +8 -0
- package/dist/validation/utils/node-type-map.js +50 -0
- package/dist/validation/utils/node-type-map.js.map +1 -0
- package/dist/validation/utils/resolve-connections.d.ts +8 -0
- package/dist/validation/utils/resolve-connections.js +64 -0
- package/dist/validation/utils/resolve-connections.js.map +1 -0
- package/dist/workflow-builder-agent.d.ts +72 -0
- package/dist/workflow-builder-agent.js +401 -0
- package/dist/workflow-builder-agent.js.map +1 -0
- package/dist/workflow-state.d.ts +26 -0
- package/dist/workflow-state.js +79 -0
- package/dist/workflow-state.js.map +1 -0
- 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,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,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,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,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,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';
|