@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,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.promptCategorizationTemplate = exports.examplePrompts = void 0;
|
|
4
|
+
exports.formatExamplePrompts = formatExamplePrompts;
|
|
5
|
+
exports.formatTechniqueList = formatTechniqueList;
|
|
6
|
+
const prompts_1 = require("@langchain/core/prompts");
|
|
7
|
+
const categorization_1 = require("../../types/categorization");
|
|
8
|
+
exports.examplePrompts = [
|
|
9
|
+
{
|
|
10
|
+
prompt: 'Monitor social channels for product mentions and auto-respond with campaign messages',
|
|
11
|
+
techniques: [
|
|
12
|
+
categorization_1.WorkflowTechnique.MONITORING,
|
|
13
|
+
categorization_1.WorkflowTechnique.CHATBOT,
|
|
14
|
+
categorization_1.WorkflowTechnique.CONTENT_GENERATION,
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
prompt: 'Collect partner referral submissions and verify client instances via BigQuery',
|
|
19
|
+
techniques: [
|
|
20
|
+
categorization_1.WorkflowTechnique.FORM_INPUT,
|
|
21
|
+
categorization_1.WorkflowTechnique.HUMAN_IN_THE_LOOP,
|
|
22
|
+
categorization_1.WorkflowTechnique.NOTIFICATION,
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
prompt: 'Scrape competitor pricing pages weekly and generate a summary report of changes',
|
|
27
|
+
techniques: [
|
|
28
|
+
categorization_1.WorkflowTechnique.SCHEDULING,
|
|
29
|
+
categorization_1.WorkflowTechnique.SCRAPING_AND_RESEARCH,
|
|
30
|
+
categorization_1.WorkflowTechnique.DATA_EXTRACTION,
|
|
31
|
+
categorization_1.WorkflowTechnique.DATA_ANALYSIS,
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
prompt: 'Process uploaded PDF contracts to extract client details and update CRM records',
|
|
36
|
+
techniques: [
|
|
37
|
+
categorization_1.WorkflowTechnique.DOCUMENT_PROCESSING,
|
|
38
|
+
categorization_1.WorkflowTechnique.DATA_EXTRACTION,
|
|
39
|
+
categorization_1.WorkflowTechnique.DATA_TRANSFORMATION,
|
|
40
|
+
categorization_1.WorkflowTechnique.ENRICHMENT,
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
prompt: 'Build a searchable internal knowledge base from past support tickets',
|
|
45
|
+
techniques: [
|
|
46
|
+
categorization_1.WorkflowTechnique.DATA_TRANSFORMATION,
|
|
47
|
+
categorization_1.WorkflowTechnique.DATA_ANALYSIS,
|
|
48
|
+
categorization_1.WorkflowTechnique.KNOWLEDGE_BASE,
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
function formatExamplePrompts() {
|
|
53
|
+
return exports.examplePrompts
|
|
54
|
+
.map((example) => `- ${example.prompt} → ${example.techniques.join(',')}`)
|
|
55
|
+
.join('\n');
|
|
56
|
+
}
|
|
57
|
+
function formatTechniqueList() {
|
|
58
|
+
return Object.entries(categorization_1.TechniqueDescription)
|
|
59
|
+
.map(([key, description]) => `- **${key}**: ${description}`)
|
|
60
|
+
.join('\n');
|
|
61
|
+
}
|
|
62
|
+
exports.promptCategorizationTemplate = prompts_1.PromptTemplate.fromTemplate(`Analyze the following user prompt and identify the workflow techniques required to fulfill the request.
|
|
63
|
+
Be specific and identify all relevant techniques.
|
|
64
|
+
|
|
65
|
+
<user_prompt>
|
|
66
|
+
{userPrompt}
|
|
67
|
+
</user_prompt>
|
|
68
|
+
|
|
69
|
+
<workflow_techniques>
|
|
70
|
+
{techniques}
|
|
71
|
+
</workflow_techniques>
|
|
72
|
+
|
|
73
|
+
The following prompt categorization examples show a prompt → techniques involved to provide a sense
|
|
74
|
+
of how the categorization should be carried out.
|
|
75
|
+
<example_categorization>
|
|
76
|
+
${formatExamplePrompts()}
|
|
77
|
+
</example_categorization>
|
|
78
|
+
|
|
79
|
+
Select a maximum of 5 techniques that you believe are applicable, but only select them if you are
|
|
80
|
+
confident that they are applicable. If the prompt is ambiguous or does not provide an obvious workflow
|
|
81
|
+
do not provide any techniques - if confidence is low avoid providing techniques.
|
|
82
|
+
|
|
83
|
+
Select ALL techniques that apply to this workflow. Most workflows use multiple techniques.
|
|
84
|
+
Rate your confidence in this categorization from 0.0 to 1.0.
|
|
85
|
+
`);
|
|
86
|
+
//# sourceMappingURL=categorization.prompt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categorization.prompt.js","sourceRoot":"","sources":["../../../src/prompts/chains/categorization.prompt.ts"],"names":[],"mappings":";;;AAmDA,oDAIC;AAGD,kDAIC;AA9DD,qDAAyD;AAEzD,2DAAiF;AAGpE,QAAA,cAAc,GAAG;IAC7B;QACC,MAAM,EAAE,sFAAsF;QAC9F,UAAU,EAAE;YACX,kCAAiB,CAAC,UAAU;YAC5B,kCAAiB,CAAC,OAAO;YACzB,kCAAiB,CAAC,kBAAkB;SACpC;KACD;IACD;QACC,MAAM,EAAE,+EAA+E;QACvF,UAAU,EAAE;YACX,kCAAiB,CAAC,UAAU;YAC5B,kCAAiB,CAAC,iBAAiB;YACnC,kCAAiB,CAAC,YAAY;SAC9B;KACD;IACD;QACC,MAAM,EAAE,iFAAiF;QACzF,UAAU,EAAE;YACX,kCAAiB,CAAC,UAAU;YAC5B,kCAAiB,CAAC,qBAAqB;YACvC,kCAAiB,CAAC,eAAe;YACjC,kCAAiB,CAAC,aAAa;SAC/B;KACD;IACD;QACC,MAAM,EAAE,iFAAiF;QACzF,UAAU,EAAE;YACX,kCAAiB,CAAC,mBAAmB;YACrC,kCAAiB,CAAC,eAAe;YACjC,kCAAiB,CAAC,mBAAmB;YACrC,kCAAiB,CAAC,UAAU;SAC5B;KACD;IACD;QACC,MAAM,EAAE,sEAAsE;QAC9E,UAAU,EAAE;YACX,kCAAiB,CAAC,mBAAmB;YACrC,kCAAiB,CAAC,aAAa;YAC/B,kCAAiB,CAAC,cAAc;SAChC;KACD;CACD,CAAC;AAGF,SAAgB,oBAAoB;IACnC,OAAO,sBAAc;SACnB,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,MAAM,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;SACzE,IAAI,CAAC,IAAI,CAAC,CAAC;AACd,CAAC;AAGD,SAAgB,mBAAmB;IAClC,OAAO,MAAM,CAAC,OAAO,CAAC,qCAAoB,CAAC;SACzC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,OAAO,GAAG,OAAO,WAAW,EAAE,CAAC;SAC3D,IAAI,CAAC,IAAI,CAAC,CAAC;AACd,CAAC;AAGY,QAAA,4BAA4B,GAAG,wBAAc,CAAC,YAAY,CACtE;;;;;;;;;;;;;;EAcC,oBAAoB,EAAE;;;;;;;;;CASvB,CACA,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PromptTemplate } from '@langchain/core/prompts';
|
|
2
|
+
export declare const compactPromptTemplate: PromptTemplate<import("@langchain/core/prompts").ParamsFromFString<"Please summarize the following conversation between a user and an AI assistant building an n8n workflow:\n\n<previous_summary>\n{previousSummary}\n</previous_summary>\n\n<conversation>\n{conversationText}\n</conversation>\n\nProvide a structured summary that captures the key points, decisions made, current state of the workflow, and suggested next steps.">, any>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compactPromptTemplate = void 0;
|
|
4
|
+
const prompts_1 = require("@langchain/core/prompts");
|
|
5
|
+
exports.compactPromptTemplate = prompts_1.PromptTemplate.fromTemplate(`Please summarize the following conversation between a user and an AI assistant building an n8n workflow:
|
|
6
|
+
|
|
7
|
+
<previous_summary>
|
|
8
|
+
{previousSummary}
|
|
9
|
+
</previous_summary>
|
|
10
|
+
|
|
11
|
+
<conversation>
|
|
12
|
+
{conversationText}
|
|
13
|
+
</conversation>
|
|
14
|
+
|
|
15
|
+
Provide a structured summary that captures the key points, decisions made, current state of the workflow, and suggested next steps.`);
|
|
16
|
+
//# sourceMappingURL=compact.prompt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact.prompt.js","sourceRoot":"","sources":["../../../src/prompts/chains/compact.prompt.ts"],"names":[],"mappings":";;;AAAA,qDAAyD;AAG5C,QAAA,qBAAqB,GAAG,wBAAc,CAAC,YAAY,CAC/D;;;;;;;;;;oIAUmI,CACnI,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IF_NODE_EXAMPLES = void 0;
|
|
4
|
+
exports.IF_NODE_EXAMPLES = {
|
|
5
|
+
patterns: ['n8n-nodes-base.if'],
|
|
6
|
+
content: `
|
|
7
|
+
### IF Node Examples
|
|
8
|
+
|
|
9
|
+
#### Example 1: Simple String Condition
|
|
10
|
+
Current Parameters: {}
|
|
11
|
+
Requested Changes: Check if order status equals "pending"
|
|
12
|
+
Expected Output:
|
|
13
|
+
{
|
|
14
|
+
"conditions": {
|
|
15
|
+
"options": {
|
|
16
|
+
"caseSensitive": false,
|
|
17
|
+
"leftValue": "",
|
|
18
|
+
"typeValidation": "loose"
|
|
19
|
+
},
|
|
20
|
+
"conditions": [
|
|
21
|
+
{
|
|
22
|
+
"id": "id-1",
|
|
23
|
+
"leftValue": "={{ $('Previous Node').item.json.orderStatus }}",
|
|
24
|
+
"rightValue": "pending",
|
|
25
|
+
"operator": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"operation": "equals"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"combinator": "and"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
#### Example 2: Check if Field Exists
|
|
36
|
+
Current Parameters: {}
|
|
37
|
+
Requested Changes: Check if email field exists in the data
|
|
38
|
+
Expected Output:
|
|
39
|
+
{
|
|
40
|
+
"conditions": {
|
|
41
|
+
"options": {
|
|
42
|
+
"caseSensitive": false,
|
|
43
|
+
"leftValue": "",
|
|
44
|
+
"typeValidation": "loose"
|
|
45
|
+
},
|
|
46
|
+
"conditions": [
|
|
47
|
+
{
|
|
48
|
+
"id": "id-1",
|
|
49
|
+
"leftValue": "={{ $('Previous Node').item.json.email }}",
|
|
50
|
+
"operator": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"operation": "exists"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"combinator": "and"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
#### Example 3: Multiple Conditions with AND
|
|
61
|
+
Current Parameters: {}
|
|
62
|
+
Requested Changes: Check if status is active AND score is 50 or higher
|
|
63
|
+
Expected Output:
|
|
64
|
+
{
|
|
65
|
+
"conditions": {
|
|
66
|
+
"options": {
|
|
67
|
+
"caseSensitive": false,
|
|
68
|
+
"leftValue": "",
|
|
69
|
+
"typeValidation": "loose"
|
|
70
|
+
},
|
|
71
|
+
"conditions": [
|
|
72
|
+
{
|
|
73
|
+
"id": "id-1",
|
|
74
|
+
"leftValue": "={{ $('Set').item.json.status }}",
|
|
75
|
+
"rightValue": "active",
|
|
76
|
+
"operator": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"operation": "equals"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "id-2",
|
|
83
|
+
"leftValue": "={{ $('Set').item.json.score }}",
|
|
84
|
+
"rightValue": "50",
|
|
85
|
+
"operator": {
|
|
86
|
+
"type": "number",
|
|
87
|
+
"operation": "gte"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"combinator": "and"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
#### Example 3: IF Node - Complex Multi-Type Conditions
|
|
96
|
+
Current Parameters: {}
|
|
97
|
+
|
|
98
|
+
Requested Changes:
|
|
99
|
+
- Check if email is not empty AND verified is true AND permissions array contains "write"
|
|
100
|
+
|
|
101
|
+
Expected Output:
|
|
102
|
+
{
|
|
103
|
+
"conditions": {
|
|
104
|
+
"options": {
|
|
105
|
+
"caseSensitive": true,
|
|
106
|
+
"leftValue": "",
|
|
107
|
+
"typeValidation": "strict"
|
|
108
|
+
},
|
|
109
|
+
"conditions": [
|
|
110
|
+
{
|
|
111
|
+
"id": "id-1",
|
|
112
|
+
"leftValue": "={{ $('Set').item.json.email }}",
|
|
113
|
+
"operator": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"operation": "notEmpty"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "id-2",
|
|
120
|
+
"leftValue": "={{ $('Set').item.json.verified }}",
|
|
121
|
+
"operator": {
|
|
122
|
+
"type": "boolean",
|
|
123
|
+
"operation": "true"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "id-3",
|
|
128
|
+
"leftValue": "={{ $('Set').item.json.permissions }}",
|
|
129
|
+
"rightValue": "write",
|
|
130
|
+
"operator": {
|
|
131
|
+
"type": "array",
|
|
132
|
+
"operation": "contains"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"combinator": "and"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
`,
|
|
140
|
+
};
|
|
141
|
+
//# sourceMappingURL=if-node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"if-node.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/examples/if-node.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAqB;IACjD,QAAQ,EAAE,CAAC,mBAAmB,CAAC;IAC/B,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqIT;CACA,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { SIMPLE_UPDATE_EXAMPLES } from './simple-updates';
|
|
2
|
+
export { SET_NODE_EXAMPLES } from './set-node';
|
|
3
|
+
export { IF_NODE_EXAMPLES } from './if-node';
|
|
4
|
+
export { SWITCH_NODE_EXAMPLES } from './switch-node';
|
|
5
|
+
export { TOOL_NODE_EXAMPLES } from './tool-nodes';
|
|
6
|
+
export { RESOURCE_LOCATOR_EXAMPLES } from './resource-locator';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RESOURCE_LOCATOR_EXAMPLES = exports.TOOL_NODE_EXAMPLES = exports.SWITCH_NODE_EXAMPLES = exports.IF_NODE_EXAMPLES = exports.SET_NODE_EXAMPLES = exports.SIMPLE_UPDATE_EXAMPLES = void 0;
|
|
4
|
+
var simple_updates_1 = require("./simple-updates");
|
|
5
|
+
Object.defineProperty(exports, "SIMPLE_UPDATE_EXAMPLES", { enumerable: true, get: function () { return simple_updates_1.SIMPLE_UPDATE_EXAMPLES; } });
|
|
6
|
+
var set_node_1 = require("./set-node");
|
|
7
|
+
Object.defineProperty(exports, "SET_NODE_EXAMPLES", { enumerable: true, get: function () { return set_node_1.SET_NODE_EXAMPLES; } });
|
|
8
|
+
var if_node_1 = require("./if-node");
|
|
9
|
+
Object.defineProperty(exports, "IF_NODE_EXAMPLES", { enumerable: true, get: function () { return if_node_1.IF_NODE_EXAMPLES; } });
|
|
10
|
+
var switch_node_1 = require("./switch-node");
|
|
11
|
+
Object.defineProperty(exports, "SWITCH_NODE_EXAMPLES", { enumerable: true, get: function () { return switch_node_1.SWITCH_NODE_EXAMPLES; } });
|
|
12
|
+
var tool_nodes_1 = require("./tool-nodes");
|
|
13
|
+
Object.defineProperty(exports, "TOOL_NODE_EXAMPLES", { enumerable: true, get: function () { return tool_nodes_1.TOOL_NODE_EXAMPLES; } });
|
|
14
|
+
var resource_locator_1 = require("./resource-locator");
|
|
15
|
+
Object.defineProperty(exports, "RESOURCE_LOCATOR_EXAMPLES", { enumerable: true, get: function () { return resource_locator_1.RESOURCE_LOCATOR_EXAMPLES; } });
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/examples/index.ts"],"names":[],"mappings":";;;AAAA,mDAA0D;AAAjD,wHAAA,sBAAsB,OAAA;AAC/B,uCAA+C;AAAtC,6GAAA,iBAAiB,OAAA;AAC1B,qCAA6C;AAApC,2GAAA,gBAAgB,OAAA;AACzB,6CAAqD;AAA5C,mHAAA,oBAAoB,OAAA;AAC7B,2CAAkD;AAAzC,gHAAA,kBAAkB,OAAA;AAC3B,uDAA+D;AAAtD,6HAAA,yBAAyB,OAAA"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RESOURCE_LOCATOR_EXAMPLES = void 0;
|
|
4
|
+
exports.RESOURCE_LOCATOR_EXAMPLES = {
|
|
5
|
+
patterns: ['*'],
|
|
6
|
+
condition: (ctx) => ctx.hasResourceLocatorParams === true,
|
|
7
|
+
content: `
|
|
8
|
+
### ResourceLocator Examples
|
|
9
|
+
|
|
10
|
+
#### Example 1: Slack Node - Channel by ID
|
|
11
|
+
Current Parameters:
|
|
12
|
+
{
|
|
13
|
+
"select": "channel",
|
|
14
|
+
"channelId": {
|
|
15
|
+
"__rl": true,
|
|
16
|
+
"value": "",
|
|
17
|
+
"mode": "list"
|
|
18
|
+
},
|
|
19
|
+
"otherOptions": {}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
Requested Changes: Send to channel C0122KQ70S7E
|
|
23
|
+
|
|
24
|
+
Expected Output:
|
|
25
|
+
{
|
|
26
|
+
"select": "channel",
|
|
27
|
+
"channelId": {
|
|
28
|
+
"__rl": true,
|
|
29
|
+
"mode": "id",
|
|
30
|
+
"value": "C0122KQ70S7E"
|
|
31
|
+
},
|
|
32
|
+
"otherOptions": {}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
#### Example 2: Google Drive Node - File by URL
|
|
36
|
+
Current Parameters:
|
|
37
|
+
{
|
|
38
|
+
"operation": "download",
|
|
39
|
+
"fileId": {
|
|
40
|
+
"__rl": true,
|
|
41
|
+
"value": "",
|
|
42
|
+
"mode": "list"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
Requested Changes: Use file https://drive.google.com/file/d/1ABC123XYZ/view
|
|
47
|
+
|
|
48
|
+
Expected Output:
|
|
49
|
+
{
|
|
50
|
+
"operation": "download",
|
|
51
|
+
"fileId": {
|
|
52
|
+
"__rl": true,
|
|
53
|
+
"mode": "url",
|
|
54
|
+
"value": "https://drive.google.com/file/d/1ABC123XYZ/view"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#### Example 3: Notion Node - Page ID from Expression
|
|
59
|
+
Current Parameters:
|
|
60
|
+
{
|
|
61
|
+
"resource": "databasePage",
|
|
62
|
+
"operation": "get",
|
|
63
|
+
"pageId": {
|
|
64
|
+
"__rl": true,
|
|
65
|
+
"value": "hardcoded-page-id",
|
|
66
|
+
"mode": "id"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
Requested Changes: Use page ID from the previous node's output
|
|
71
|
+
|
|
72
|
+
Expected Output:
|
|
73
|
+
{
|
|
74
|
+
"resource": "databasePage",
|
|
75
|
+
"operation": "get",
|
|
76
|
+
"pageId": {
|
|
77
|
+
"__rl": true,
|
|
78
|
+
"mode": "id",
|
|
79
|
+
"value": "={{ $('Previous Node').item.json.pageId }}"
|
|
80
|
+
}
|
|
81
|
+
}`,
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=resource-locator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-locator.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/examples/resource-locator.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAqB;IAC1D,QAAQ,EAAE,CAAC,GAAG,CAAC;IACf,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,wBAAwB,KAAK,IAAI;IACzD,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ER;CACD,CAAC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SET_NODE_EXAMPLES = void 0;
|
|
4
|
+
exports.SET_NODE_EXAMPLES = {
|
|
5
|
+
patterns: ['n8n-nodes-base.set'],
|
|
6
|
+
content: `
|
|
7
|
+
### Set Node Examples
|
|
8
|
+
|
|
9
|
+
#### Example 1: Simple String Assignment
|
|
10
|
+
Current Parameters: {}
|
|
11
|
+
Requested Changes: Set message to "Hello World"
|
|
12
|
+
Expected Output:
|
|
13
|
+
{
|
|
14
|
+
"assignments": {
|
|
15
|
+
"assignments": [
|
|
16
|
+
{
|
|
17
|
+
"id": "id-1",
|
|
18
|
+
"name": "message",
|
|
19
|
+
"value": "Hello World",
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"options": {}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
#### Example 2: Multiple Type Assignments
|
|
28
|
+
Current Parameters: {}
|
|
29
|
+
Requested Changes:
|
|
30
|
+
- Set productName to "Widget"
|
|
31
|
+
- Set price to 19.99
|
|
32
|
+
- Set inStock to true
|
|
33
|
+
- Set categories to electronics and gadgets
|
|
34
|
+
|
|
35
|
+
Expected Output:
|
|
36
|
+
{
|
|
37
|
+
"assignments": {
|
|
38
|
+
"assignments": [
|
|
39
|
+
{
|
|
40
|
+
"id": "id-1",
|
|
41
|
+
"name": "productName",
|
|
42
|
+
"value": "Widget",
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "id-2",
|
|
47
|
+
"name": "price",
|
|
48
|
+
"value": 19.99,
|
|
49
|
+
"type": "number"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "id-3",
|
|
53
|
+
"name": "inStock",
|
|
54
|
+
"value": true,
|
|
55
|
+
"type": "boolean"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "id-4",
|
|
59
|
+
"name": "categories",
|
|
60
|
+
"value": "[\\"electronics\\", \\"gadgets\\"]",
|
|
61
|
+
"type": "array"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"options": {}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#### Example 3: Expression-Based Assignments
|
|
69
|
+
Current Parameters: {}
|
|
70
|
+
Requested Changes:
|
|
71
|
+
- Set userId from HTTP Request node
|
|
72
|
+
- Calculate totalPrice from quantity and unit price
|
|
73
|
+
|
|
74
|
+
Expected Output:
|
|
75
|
+
{
|
|
76
|
+
"assignments": {
|
|
77
|
+
"assignments": [
|
|
78
|
+
{
|
|
79
|
+
"id": "id-1",
|
|
80
|
+
"name": "userId",
|
|
81
|
+
"value": "={{ $('HTTP Request').item.json.id }}",
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "id-2",
|
|
86
|
+
"name": "totalPrice",
|
|
87
|
+
"value": "={{ $('Set').item.json.quantity * $('Set').item.json.unitPrice }}",
|
|
88
|
+
"type": "number"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"options": {}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
#### Example 4: Set Node - Complex Object and Array Creation
|
|
96
|
+
Current Parameters:
|
|
97
|
+
{
|
|
98
|
+
"assignments": {
|
|
99
|
+
"assignments": [
|
|
100
|
+
{
|
|
101
|
+
"id": "existing-1",
|
|
102
|
+
"name": "orderId",
|
|
103
|
+
"value": "12345",
|
|
104
|
+
"type": "string"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"options": {}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
Requested Changes:
|
|
112
|
+
- Keep orderId
|
|
113
|
+
- Add customer object with name and email from previous nodes
|
|
114
|
+
- Add items array from JSON string
|
|
115
|
+
- Set processed timestamp
|
|
116
|
+
|
|
117
|
+
Expected Output:
|
|
118
|
+
{
|
|
119
|
+
"assignments": {
|
|
120
|
+
"assignments": [
|
|
121
|
+
{
|
|
122
|
+
"id": "existing-1",
|
|
123
|
+
"name": "orderId",
|
|
124
|
+
"value": "12345",
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"id": "id-2",
|
|
129
|
+
"name": "customer",
|
|
130
|
+
"value": "={{ JSON.stringify({ \\"name\\": $('Form').item.json.customerName, \\"email\\": $('Form').item.json.customerEmail }) }}",
|
|
131
|
+
"type": "object"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"id": "id-3",
|
|
135
|
+
"name": "items",
|
|
136
|
+
"value": "={{ $('HTTP Request').item.json.itemsJson }}",
|
|
137
|
+
"type": "array"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "id-4",
|
|
141
|
+
"name": "processedAt",
|
|
142
|
+
"value": "={{ $now.toISO() }}",
|
|
143
|
+
"type": "string"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"options": {}
|
|
148
|
+
}
|
|
149
|
+
`,
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=set-node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-node.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/examples/set-node.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAqB;IAClD,QAAQ,EAAE,CAAC,oBAAoB,CAAC;IAChC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+IT;CACA,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SIMPLE_UPDATE_EXAMPLES = void 0;
|
|
4
|
+
exports.SIMPLE_UPDATE_EXAMPLES = {
|
|
5
|
+
patterns: ['*'],
|
|
6
|
+
content: `
|
|
7
|
+
## Examples of Parameter Updates
|
|
8
|
+
|
|
9
|
+
### Example 1: Update HTTP Request URL
|
|
10
|
+
Change: "Set the URL to call the weather API for London"
|
|
11
|
+
Current parameters: { "url": "https://api.example.com", "method": "GET" }
|
|
12
|
+
Updated parameters: { "url": "https://api.openweathermap.org/data/2.5/weather?q=London", "method": "GET" }
|
|
13
|
+
|
|
14
|
+
### Example 2: Add a header
|
|
15
|
+
Change: "Add an ABC key header with value 123"
|
|
16
|
+
Current parameters: { "url": "...", "sendHeaders": false }
|
|
17
|
+
Updated parameters: {
|
|
18
|
+
"url": "...",
|
|
19
|
+
"sendHeaders": true,
|
|
20
|
+
"headerParameters": {
|
|
21
|
+
"parameters": [
|
|
22
|
+
{
|
|
23
|
+
"name": "ABC",
|
|
24
|
+
"value": "123"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
### Example 3: Update condition
|
|
31
|
+
Change: "Check if temperature is above 25 degrees"
|
|
32
|
+
Current parameters: { "conditions": { "conditions": [] } }
|
|
33
|
+
Updated parameters: {
|
|
34
|
+
"conditions": {
|
|
35
|
+
"options": {
|
|
36
|
+
"caseSensitive": false,
|
|
37
|
+
"leftValue": "",
|
|
38
|
+
"typeValidation": "loose"
|
|
39
|
+
},
|
|
40
|
+
"conditions": [
|
|
41
|
+
{
|
|
42
|
+
"leftValue": "={{ $('Weather Node').item.json.main.temp }}",
|
|
43
|
+
"rightValue": 25,
|
|
44
|
+
"operator": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"operation": "gt"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"combinator": "and"
|
|
51
|
+
}
|
|
52
|
+
}`,
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=simple-updates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simple-updates.js","sourceRoot":"","sources":["../../../../../src/prompts/chains/parameter-updater/examples/simple-updates.ts"],"names":[],"mappings":";;;AAGa,QAAA,sBAAsB,GAAqB;IACvD,QAAQ,EAAE,CAAC,GAAG,CAAC;IACf,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CR;CACD,CAAC"}
|