@n8n/instance-ai 1.0.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/LICENSE.md +88 -0
- package/dist/agent/instance-agent.d.ts +3 -0
- package/dist/agent/instance-agent.js +215 -0
- package/dist/agent/instance-agent.js.map +1 -0
- package/dist/agent/register-with-mastra.d.ts +3 -0
- package/dist/agent/register-with-mastra.js +19 -0
- package/dist/agent/register-with-mastra.js.map +1 -0
- package/dist/agent/sanitize-mcp-schemas.d.ts +2 -0
- package/dist/agent/sanitize-mcp-schemas.js +91 -0
- package/dist/agent/sanitize-mcp-schemas.js.map +1 -0
- package/dist/agent/sub-agent-factory.d.ts +14 -0
- package/dist/agent/sub-agent-factory.js +48 -0
- package/dist/agent/sub-agent-factory.js.map +1 -0
- package/dist/agent/system-prompt.d.ts +13 -0
- package/dist/agent/system-prompt.js +226 -0
- package/dist/agent/system-prompt.js.map +1 -0
- package/dist/build.tsbuildinfo +1 -0
- package/dist/compaction/compaction-helper.d.ts +9 -0
- package/dist/compaction/compaction-helper.js +58 -0
- package/dist/compaction/compaction-helper.js.map +1 -0
- package/dist/compaction/index.d.ts +2 -0
- package/dist/compaction/index.js +6 -0
- package/dist/compaction/index.js.map +1 -0
- package/dist/domain-access/domain-access-tracker.d.ts +9 -0
- package/dist/domain-access/domain-access-tracker.js +46 -0
- package/dist/domain-access/domain-access-tracker.js.map +1 -0
- package/dist/domain-access/domain-gating.d.ts +65 -0
- package/dist/domain-access/domain-gating.js +68 -0
- package/dist/domain-access/domain-gating.js.map +1 -0
- package/dist/domain-access/index.d.ts +4 -0
- package/dist/domain-access/index.js +11 -0
- package/dist/domain-access/index.js.map +1 -0
- package/dist/event-bus/event-bus.interface.d.ts +15 -0
- package/dist/event-bus/event-bus.interface.js +3 -0
- package/dist/event-bus/event-bus.interface.js.map +1 -0
- package/dist/event-bus/index.d.ts +1 -0
- package/dist/event-bus/index.js +3 -0
- package/dist/event-bus/index.js.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.js +89 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/mcp-client-manager.d.ts +6 -0
- package/dist/mcp/mcp-client-manager.js +34 -0
- package/dist/mcp/mcp-client-manager.js.map +1 -0
- package/dist/memory/memory-config.d.ts +3 -0
- package/dist/memory/memory-config.js +29 -0
- package/dist/memory/memory-config.js.map +1 -0
- package/dist/memory/title-utils.d.ts +3 -0
- package/dist/memory/title-utils.js +42 -0
- package/dist/memory/title-utils.js.map +1 -0
- package/dist/memory/working-memory-template.d.ts +1 -0
- package/dist/memory/working-memory-template.js +25 -0
- package/dist/memory/working-memory-template.js.map +1 -0
- package/dist/planned-tasks/planned-task-service.d.ts +33 -0
- package/dist/planned-tasks/planned-task-service.js +151 -0
- package/dist/planned-tasks/planned-task-service.js.map +1 -0
- package/dist/runtime/background-task-manager.d.ts +53 -0
- package/dist/runtime/background-task-manager.js +127 -0
- package/dist/runtime/background-task-manager.js.map +1 -0
- package/dist/runtime/resumable-stream-executor.d.ts +75 -0
- package/dist/runtime/resumable-stream-executor.js +1552 -0
- package/dist/runtime/resumable-stream-executor.js.map +1 -0
- package/dist/runtime/run-state-registry.d.ts +109 -0
- package/dist/runtime/run-state-registry.js +210 -0
- package/dist/runtime/run-state-registry.js.map +1 -0
- package/dist/runtime/stream-runner.d.ts +27 -0
- package/dist/runtime/stream-runner.js +87 -0
- package/dist/runtime/stream-runner.js.map +1 -0
- package/dist/runtime/working-memory-tracing.d.ts +19 -0
- package/dist/runtime/working-memory-tracing.js +111 -0
- package/dist/runtime/working-memory-tracing.js.map +1 -0
- package/dist/storage/agent-tree-snapshot.d.ts +7 -0
- package/dist/storage/agent-tree-snapshot.js +3 -0
- package/dist/storage/agent-tree-snapshot.js.map +1 -0
- package/dist/storage/index.d.ts +10 -0
- package/dist/storage/index.js +17 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/iteration-log.d.ts +30 -0
- package/dist/storage/iteration-log.js +31 -0
- package/dist/storage/iteration-log.js.map +1 -0
- package/dist/storage/mastra-iteration-log-storage.d.ts +10 -0
- package/dist/storage/mastra-iteration-log-storage.js +57 -0
- package/dist/storage/mastra-iteration-log-storage.js.map +1 -0
- package/dist/storage/mastra-task-storage.d.ts +9 -0
- package/dist/storage/mastra-task-storage.js +35 -0
- package/dist/storage/mastra-task-storage.js.map +1 -0
- package/dist/storage/planned-task-storage.d.ts +10 -0
- package/dist/storage/planned-task-storage.js +97 -0
- package/dist/storage/planned-task-storage.js.map +1 -0
- package/dist/storage/thread-patch.d.ts +16 -0
- package/dist/storage/thread-patch.js +50 -0
- package/dist/storage/thread-patch.js.map +1 -0
- package/dist/storage/workflow-loop-storage.d.ts +217 -0
- package/dist/storage/workflow-loop-storage.js +59 -0
- package/dist/storage/workflow-loop-storage.js.map +1 -0
- package/dist/stream/consume-with-hitl.d.ts +22 -0
- package/dist/stream/consume-with-hitl.js +29 -0
- package/dist/stream/consume-with-hitl.js.map +1 -0
- package/dist/stream/map-chunk.d.ts +2 -0
- package/dist/stream/map-chunk.js +224 -0
- package/dist/stream/map-chunk.js.map +1 -0
- package/dist/tools/best-practices/get-best-practices.tool.d.ts +12 -0
- package/dist/tools/best-practices/get-best-practices.tool.js +64 -0
- package/dist/tools/best-practices/get-best-practices.tool.js.map +1 -0
- package/dist/tools/best-practices/guides/chatbot.d.ts +1 -0
- package/dist/tools/best-practices/guides/chatbot.js +111 -0
- package/dist/tools/best-practices/guides/chatbot.js.map +1 -0
- package/dist/tools/best-practices/guides/content-generation.d.ts +1 -0
- package/dist/tools/best-practices/guides/content-generation.js +108 -0
- package/dist/tools/best-practices/guides/content-generation.js.map +1 -0
- package/dist/tools/best-practices/guides/data-extraction.d.ts +1 -0
- package/dist/tools/best-practices/guides/data-extraction.js +115 -0
- package/dist/tools/best-practices/guides/data-extraction.js.map +1 -0
- package/dist/tools/best-practices/guides/data-persistence.d.ts +1 -0
- package/dist/tools/best-practices/guides/data-persistence.js +198 -0
- package/dist/tools/best-practices/guides/data-persistence.js.map +1 -0
- package/dist/tools/best-practices/guides/data-transformation.d.ts +1 -0
- package/dist/tools/best-practices/guides/data-transformation.js +139 -0
- package/dist/tools/best-practices/guides/data-transformation.js.map +1 -0
- package/dist/tools/best-practices/guides/document-processing.d.ts +1 -0
- package/dist/tools/best-practices/guides/document-processing.js +326 -0
- package/dist/tools/best-practices/guides/document-processing.js.map +1 -0
- package/dist/tools/best-practices/guides/form-input.d.ts +1 -0
- package/dist/tools/best-practices/guides/form-input.js +166 -0
- package/dist/tools/best-practices/guides/form-input.js.map +1 -0
- package/dist/tools/best-practices/guides/notification.d.ts +1 -0
- package/dist/tools/best-practices/guides/notification.js +128 -0
- package/dist/tools/best-practices/guides/notification.js.map +1 -0
- package/dist/tools/best-practices/guides/scheduling.d.ts +1 -0
- package/dist/tools/best-practices/guides/scheduling.js +145 -0
- package/dist/tools/best-practices/guides/scheduling.js.map +1 -0
- package/dist/tools/best-practices/guides/scraping-and-research.d.ts +1 -0
- package/dist/tools/best-practices/guides/scraping-and-research.js +151 -0
- package/dist/tools/best-practices/guides/scraping-and-research.js.map +1 -0
- package/dist/tools/best-practices/guides/triage.d.ts +1 -0
- package/dist/tools/best-practices/guides/triage.js +142 -0
- package/dist/tools/best-practices/guides/triage.js.map +1 -0
- package/dist/tools/best-practices/index.d.ts +2 -0
- package/dist/tools/best-practices/index.js +34 -0
- package/dist/tools/best-practices/index.js.map +1 -0
- package/dist/tools/best-practices/techniques.d.ts +20 -0
- package/dist/tools/best-practices/techniques.js +40 -0
- package/dist/tools/best-practices/techniques.js.map +1 -0
- package/dist/tools/credentials/delete-credential.tool.d.ts +21 -0
- package/dist/tools/credentials/delete-credential.tool.js +51 -0
- package/dist/tools/credentials/delete-credential.tool.js.map +1 -0
- package/dist/tools/credentials/get-credential.tool.d.ts +4 -0
- package/dist/tools/credentials/get-credential.tool.js +26 -0
- package/dist/tools/credentials/get-credential.tool.js.map +1 -0
- package/dist/tools/credentials/list-credentials.tool.d.ts +6 -0
- package/dist/tools/credentials/list-credentials.tool.js +30 -0
- package/dist/tools/credentials/list-credentials.tool.js.map +1 -0
- package/dist/tools/credentials/search-credential-types.tool.d.ts +6 -0
- package/dist/tools/credentials/search-credential-types.tool.js +44 -0
- package/dist/tools/credentials/search-credential-types.tool.js.map +1 -0
- package/dist/tools/credentials/setup-credentials.tool.d.ts +73 -0
- package/dist/tools/credentials/setup-credentials.tool.js +134 -0
- package/dist/tools/credentials/setup-credentials.tool.js.map +1 -0
- package/dist/tools/credentials/test-credential.tool.d.ts +7 -0
- package/dist/tools/credentials/test-credential.tool.js +30 -0
- package/dist/tools/credentials/test-credential.tool.js.map +1 -0
- package/dist/tools/data-tables/add-data-table-column.tool.d.ts +27 -0
- package/dist/tools/data-tables/add-data-table-column.tool.js +60 -0
- package/dist/tools/data-tables/add-data-table-column.tool.js.map +1 -0
- package/dist/tools/data-tables/create-data-table.tool.d.ts +36 -0
- package/dist/tools/data-tables/create-data-table.tool.js +79 -0
- package/dist/tools/data-tables/create-data-table.tool.js.map +1 -0
- package/dist/tools/data-tables/delete-data-table-column.tool.d.ts +21 -0
- package/dist/tools/data-tables/delete-data-table-column.tool.js +48 -0
- package/dist/tools/data-tables/delete-data-table-column.tool.js.map +1 -0
- package/dist/tools/data-tables/delete-data-table-rows.tool.d.ts +29 -0
- package/dist/tools/data-tables/delete-data-table-rows.tool.js +63 -0
- package/dist/tools/data-tables/delete-data-table-rows.tool.js.map +1 -0
- package/dist/tools/data-tables/delete-data-table.tool.d.ts +20 -0
- package/dist/tools/data-tables/delete-data-table.tool.js +46 -0
- package/dist/tools/data-tables/delete-data-table.tool.js.map +1 -0
- package/dist/tools/data-tables/get-data-table-schema.tool.d.ts +11 -0
- package/dist/tools/data-tables/get-data-table-schema.tool.js +27 -0
- package/dist/tools/data-tables/get-data-table-schema.tool.js.map +1 -0
- package/dist/tools/data-tables/insert-data-table-rows.tool.d.ts +21 -0
- package/dist/tools/data-tables/insert-data-table-rows.tool.js +52 -0
- package/dist/tools/data-tables/insert-data-table-rows.tool.js.map +1 -0
- package/dist/tools/data-tables/list-data-tables.tool.d.ts +6 -0
- package/dist/tools/data-tables/list-data-tables.tool.js +32 -0
- package/dist/tools/data-tables/list-data-tables.tool.js.map +1 -0
- package/dist/tools/data-tables/query-data-table-rows.tool.d.ts +21 -0
- package/dist/tools/data-tables/query-data-table-rows.tool.js +54 -0
- package/dist/tools/data-tables/query-data-table-rows.tool.js.map +1 -0
- package/dist/tools/data-tables/rename-data-table-column.tool.d.ts +22 -0
- package/dist/tools/data-tables/rename-data-table-column.tool.js +49 -0
- package/dist/tools/data-tables/rename-data-table-column.tool.js.map +1 -0
- package/dist/tools/data-tables/update-data-table-rows.tool.d.ts +29 -0
- package/dist/tools/data-tables/update-data-table-rows.tool.js +57 -0
- package/dist/tools/data-tables/update-data-table-rows.tool.js.map +1 -0
- package/dist/tools/executions/debug-execution.tool.d.ts +4 -0
- package/dist/tools/executions/debug-execution.tool.js +41 -0
- package/dist/tools/executions/debug-execution.tool.js.map +1 -0
- package/dist/tools/executions/get-execution.tool.d.ts +4 -0
- package/dist/tools/executions/get-execution.tool.js +26 -0
- package/dist/tools/executions/get-execution.tool.js.map +1 -0
- package/dist/tools/executions/get-node-output.tool.d.ts +7 -0
- package/dist/tools/executions/get-node-output.tool.js +44 -0
- package/dist/tools/executions/get-node-output.tool.js.map +1 -0
- package/dist/tools/executions/list-executions.tool.d.ts +8 -0
- package/dist/tools/executions/list-executions.tool.js +45 -0
- package/dist/tools/executions/list-executions.tool.js.map +1 -0
- package/dist/tools/executions/run-workflow.tool.d.ts +24 -0
- package/dist/tools/executions/run-workflow.tool.js +82 -0
- package/dist/tools/executions/run-workflow.tool.js.map +1 -0
- package/dist/tools/executions/stop-execution.tool.d.ts +7 -0
- package/dist/tools/executions/stop-execution.tool.js +22 -0
- package/dist/tools/executions/stop-execution.tool.js.map +1 -0
- package/dist/tools/filesystem/create-tools-from-mcp-server.d.ts +3 -0
- package/dist/tools/filesystem/create-tools-from-mcp-server.js +61 -0
- package/dist/tools/filesystem/create-tools-from-mcp-server.js.map +1 -0
- package/dist/tools/filesystem/get-file-tree.tool.d.ts +22 -0
- package/dist/tools/filesystem/get-file-tree.tool.js +64 -0
- package/dist/tools/filesystem/get-file-tree.tool.js.map +1 -0
- package/dist/tools/filesystem/list-files.tool.d.ts +30 -0
- package/dist/tools/filesystem/list-files.tool.js +100 -0
- package/dist/tools/filesystem/list-files.tool.js.map +1 -0
- package/dist/tools/filesystem/read-file.tool.d.ts +25 -0
- package/dist/tools/filesystem/read-file.tool.js +83 -0
- package/dist/tools/filesystem/read-file.tool.js.map +1 -0
- package/dist/tools/filesystem/search-files.tool.d.ts +31 -0
- package/dist/tools/filesystem/search-files.tool.js +96 -0
- package/dist/tools/filesystem/search-files.tool.js.map +1 -0
- package/dist/tools/index.d.ts +2385 -0
- package/dist/tools/index.js +195 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/nodes/explore-node-resources.tool.d.ts +21 -0
- package/dist/tools/nodes/explore-node-resources.tool.js +71 -0
- package/dist/tools/nodes/explore-node-resources.tool.js.map +1 -0
- package/dist/tools/nodes/get-node-description.tool.d.ts +23 -0
- package/dist/tools/nodes/get-node-description.tool.js +52 -0
- package/dist/tools/nodes/get-node-description.tool.js.map +1 -0
- package/dist/tools/nodes/get-node-type-definition.tool.d.ts +17 -0
- package/dist/tools/nodes/get-node-type-definition.tool.js +73 -0
- package/dist/tools/nodes/get-node-type-definition.tool.js.map +1 -0
- package/dist/tools/nodes/get-suggested-nodes.tool.d.ts +14 -0
- package/dist/tools/nodes/get-suggested-nodes.tool.js +54 -0
- package/dist/tools/nodes/get-suggested-nodes.tool.js.map +1 -0
- package/dist/tools/nodes/list-nodes.tool.d.ts +6 -0
- package/dist/tools/nodes/list-nodes.tool.js +33 -0
- package/dist/tools/nodes/list-nodes.tool.js.map +1 -0
- package/dist/tools/nodes/node-search-engine.d.ts +18 -0
- package/dist/tools/nodes/node-search-engine.js +266 -0
- package/dist/tools/nodes/node-search-engine.js.map +1 -0
- package/dist/tools/nodes/node-search-engine.types.d.ts +38 -0
- package/dist/tools/nodes/node-search-engine.types.js +18 -0
- package/dist/tools/nodes/node-search-engine.types.js.map +1 -0
- package/dist/tools/nodes/search-nodes.tool.d.ts +28 -0
- package/dist/tools/nodes/search-nodes.tool.js +87 -0
- package/dist/tools/nodes/search-nodes.tool.js.map +1 -0
- package/dist/tools/nodes/suggested-nodes-data.d.ts +11 -0
- package/dist/tools/nodes/suggested-nodes-data.js +326 -0
- package/dist/tools/nodes/suggested-nodes-data.js.map +1 -0
- package/dist/tools/orchestration/browser-credential-setup.tool.d.ts +14 -0
- package/dist/tools/orchestration/browser-credential-setup.tool.js +429 -0
- package/dist/tools/orchestration/browser-credential-setup.tool.js.map +1 -0
- package/dist/tools/orchestration/build-workflow-agent.prompt.d.ts +2 -0
- package/dist/tools/orchestration/build-workflow-agent.prompt.js +836 -0
- package/dist/tools/orchestration/build-workflow-agent.prompt.js.map +1 -0
- package/dist/tools/orchestration/build-workflow-agent.tool.d.ts +23 -0
- package/dist/tools/orchestration/build-workflow-agent.tool.js +503 -0
- package/dist/tools/orchestration/build-workflow-agent.tool.js.map +1 -0
- package/dist/tools/orchestration/cancel-background-task.tool.d.ts +6 -0
- package/dist/tools/orchestration/cancel-background-task.tool.js +24 -0
- package/dist/tools/orchestration/cancel-background-task.tool.js.map +1 -0
- package/dist/tools/orchestration/correct-background-task.tool.d.ts +7 -0
- package/dist/tools/orchestration/correct-background-task.tool.js +41 -0
- package/dist/tools/orchestration/correct-background-task.tool.js.map +1 -0
- package/dist/tools/orchestration/data-table-agent.prompt.d.ts +1 -0
- package/dist/tools/orchestration/data-table-agent.prompt.js +29 -0
- package/dist/tools/orchestration/data-table-agent.prompt.js.map +1 -0
- package/dist/tools/orchestration/data-table-agent.tool.d.ts +21 -0
- package/dist/tools/orchestration/data-table-agent.tool.js +171 -0
- package/dist/tools/orchestration/data-table-agent.tool.js.map +1 -0
- package/dist/tools/orchestration/delegate.schemas.d.ts +32 -0
- package/dist/tools/orchestration/delegate.schemas.js +29 -0
- package/dist/tools/orchestration/delegate.schemas.js.map +1 -0
- package/dist/tools/orchestration/delegate.tool.d.ts +27 -0
- package/dist/tools/orchestration/delegate.tool.js +307 -0
- package/dist/tools/orchestration/delegate.tool.js.map +1 -0
- package/dist/tools/orchestration/display-utils.d.ts +1 -0
- package/dist/tools/orchestration/display-utils.js +8 -0
- package/dist/tools/orchestration/display-utils.js.map +1 -0
- package/dist/tools/orchestration/plan.tool.d.ts +45 -0
- package/dist/tools/orchestration/plan.tool.js +99 -0
- package/dist/tools/orchestration/plan.tool.js.map +1 -0
- package/dist/tools/orchestration/report-verification-verdict.tool.d.ts +14 -0
- package/dist/tools/orchestration/report-verification-verdict.tool.js +66 -0
- package/dist/tools/orchestration/report-verification-verdict.tool.js.map +1 -0
- package/dist/tools/orchestration/research-agent-prompt.d.ts +1 -0
- package/dist/tools/orchestration/research-agent-prompt.js +28 -0
- package/dist/tools/orchestration/research-agent-prompt.js.map +1 -0
- package/dist/tools/orchestration/research-with-agent.tool.d.ts +23 -0
- package/dist/tools/orchestration/research-with-agent.tool.js +160 -0
- package/dist/tools/orchestration/research-with-agent.tool.js.map +1 -0
- package/dist/tools/orchestration/tracing-utils.d.ts +20 -0
- package/dist/tools/orchestration/tracing-utils.js +102 -0
- package/dist/tools/orchestration/tracing-utils.js.map +1 -0
- package/dist/tools/orchestration/update-tasks.tool.d.ts +10 -0
- package/dist/tools/orchestration/update-tasks.tool.js +26 -0
- package/dist/tools/orchestration/update-tasks.tool.js.map +1 -0
- package/dist/tools/orchestration/verify-built-workflow.tool.d.ts +13 -0
- package/dist/tools/orchestration/verify-built-workflow.tool.js +58 -0
- package/dist/tools/orchestration/verify-built-workflow.tool.js.map +1 -0
- package/dist/tools/shared/ask-user.tool.d.ts +61 -0
- package/dist/tools/shared/ask-user.tool.js +98 -0
- package/dist/tools/shared/ask-user.tool.js.map +1 -0
- package/dist/tools/templates/search-template-parameters.tool.d.ts +11 -0
- package/dist/tools/templates/search-template-parameters.tool.js +55 -0
- package/dist/tools/templates/search-template-parameters.tool.js.map +1 -0
- package/dist/tools/templates/search-template-structures.tool.d.ts +12 -0
- package/dist/tools/templates/search-template-structures.tool.js +45 -0
- package/dist/tools/templates/search-template-structures.tool.js.map +1 -0
- package/dist/tools/templates/template-api.d.ts +21 -0
- package/dist/tools/templates/template-api.js +104 -0
- package/dist/tools/templates/template-api.js.map +1 -0
- package/dist/tools/templates/types.d.ts +52 -0
- package/dist/tools/templates/types.js +37 -0
- package/dist/tools/templates/types.js.map +1 -0
- package/dist/tools/utils/mermaid.utils.d.ts +15 -0
- package/dist/tools/utils/mermaid.utils.js +622 -0
- package/dist/tools/utils/mermaid.utils.js.map +1 -0
- package/dist/tools/utils/node-configuration.utils.d.ts +6 -0
- package/dist/tools/utils/node-configuration.utils.js +77 -0
- package/dist/tools/utils/node-configuration.utils.js.map +1 -0
- package/dist/tools/web-research/fetch-url.tool.d.ts +27 -0
- package/dist/tools/web-research/fetch-url.tool.js +116 -0
- package/dist/tools/web-research/fetch-url.tool.js.map +1 -0
- package/dist/tools/web-research/index.d.ts +1 -0
- package/dist/tools/web-research/index.js +6 -0
- package/dist/tools/web-research/index.js.map +1 -0
- package/dist/tools/web-research/sanitize-web-content.d.ts +3 -0
- package/dist/tools/web-research/sanitize-web-content.js +36 -0
- package/dist/tools/web-research/sanitize-web-content.js.map +1 -0
- package/dist/tools/web-research/web-search.tool.d.ts +6 -0
- package/dist/tools/web-research/web-search.tool.js +57 -0
- package/dist/tools/web-research/web-search.tool.js.map +1 -0
- package/dist/tools/workflows/apply-workflow-credentials.tool.d.ts +10 -0
- package/dist/tools/workflows/apply-workflow-credentials.tool.js +87 -0
- package/dist/tools/workflows/apply-workflow-credentials.tool.js.map +1 -0
- package/dist/tools/workflows/build-workflow.tool.d.ts +16 -0
- package/dist/tools/workflows/build-workflow.tool.js +163 -0
- package/dist/tools/workflows/build-workflow.tool.js.map +1 -0
- package/dist/tools/workflows/delete-workflow.tool.d.ts +21 -0
- package/dist/tools/workflows/delete-workflow.tool.js +51 -0
- package/dist/tools/workflows/delete-workflow.tool.js.map +1 -0
- package/dist/tools/workflows/get-workflow-as-code.tool.d.ts +14 -0
- package/dist/tools/workflows/get-workflow-as-code.tool.js +37 -0
- package/dist/tools/workflows/get-workflow-as-code.tool.js.map +1 -0
- package/dist/tools/workflows/get-workflow-version.tool.d.ts +21 -0
- package/dist/tools/workflows/get-workflow-version.tool.js +38 -0
- package/dist/tools/workflows/get-workflow-version.tool.js.map +1 -0
- package/dist/tools/workflows/get-workflow.tool.d.ts +18 -0
- package/dist/tools/workflows/get-workflow.tool.js +36 -0
- package/dist/tools/workflows/get-workflow.tool.js.map +1 -0
- package/dist/tools/workflows/list-workflow-versions.tool.d.ts +8 -0
- package/dist/tools/workflows/list-workflow-versions.tool.js +47 -0
- package/dist/tools/workflows/list-workflow-versions.tool.js.map +1 -0
- package/dist/tools/workflows/list-workflows.tool.d.ts +14 -0
- package/dist/tools/workflows/list-workflows.tool.js +42 -0
- package/dist/tools/workflows/list-workflows.tool.js.map +1 -0
- package/dist/tools/workflows/materialize-node-type.tool.d.ts +23 -0
- package/dist/tools/workflows/materialize-node-type.tool.js +105 -0
- package/dist/tools/workflows/materialize-node-type.tool.js.map +1 -0
- package/dist/tools/workflows/publish-workflow.tool.d.ts +24 -0
- package/dist/tools/workflows/publish-workflow.tool.js +92 -0
- package/dist/tools/workflows/publish-workflow.tool.js.map +1 -0
- package/dist/tools/workflows/resolve-credentials.d.ts +14 -0
- package/dist/tools/workflows/resolve-credentials.js +89 -0
- package/dist/tools/workflows/resolve-credentials.js.map +1 -0
- package/dist/tools/workflows/restore-workflow-version.tool.d.ts +22 -0
- package/dist/tools/workflows/restore-workflow-version.tool.js +65 -0
- package/dist/tools/workflows/restore-workflow-version.tool.js.map +1 -0
- package/dist/tools/workflows/setup-workflow.schema.d.ts +331 -0
- package/dist/tools/workflows/setup-workflow.schema.js +21 -0
- package/dist/tools/workflows/setup-workflow.schema.js.map +1 -0
- package/dist/tools/workflows/setup-workflow.service.d.ts +40 -0
- package/dist/tools/workflows/setup-workflow.service.js +470 -0
- package/dist/tools/workflows/setup-workflow.service.js.map +1 -0
- package/dist/tools/workflows/setup-workflow.tool.d.ts +150 -0
- package/dist/tools/workflows/setup-workflow.tool.js +219 -0
- package/dist/tools/workflows/setup-workflow.tool.js.map +1 -0
- package/dist/tools/workflows/submit-workflow.tool.d.ts +33 -0
- package/dist/tools/workflows/submit-workflow.tool.js +258 -0
- package/dist/tools/workflows/submit-workflow.tool.js.map +1 -0
- package/dist/tools/workflows/unpublish-workflow.tool.d.ts +22 -0
- package/dist/tools/workflows/unpublish-workflow.tool.js +61 -0
- package/dist/tools/workflows/unpublish-workflow.tool.js.map +1 -0
- package/dist/tools/workflows/update-workflow-version.tool.d.ts +9 -0
- package/dist/tools/workflows/update-workflow-version.tool.js +35 -0
- package/dist/tools/workflows/update-workflow-version.tool.js.map +1 -0
- package/dist/tools/workflows/write-sandbox-file.tool.d.ts +13 -0
- package/dist/tools/workflows/write-sandbox-file.tool.js +53 -0
- package/dist/tools/workflows/write-sandbox-file.tool.js.map +1 -0
- package/dist/tools/workspace/cleanup-test-executions.tool.d.ts +22 -0
- package/dist/tools/workspace/cleanup-test-executions.tool.js +58 -0
- package/dist/tools/workspace/cleanup-test-executions.tool.js.map +1 -0
- package/dist/tools/workspace/create-folder.tool.d.ts +24 -0
- package/dist/tools/workspace/create-folder.tool.js +59 -0
- package/dist/tools/workspace/create-folder.tool.js.map +1 -0
- package/dist/tools/workspace/delete-folder.tool.d.ts +24 -0
- package/dist/tools/workspace/delete-folder.tool.js +60 -0
- package/dist/tools/workspace/delete-folder.tool.js.map +1 -0
- package/dist/tools/workspace/list-folders.tool.d.ts +6 -0
- package/dist/tools/workspace/list-folders.tool.js +26 -0
- package/dist/tools/workspace/list-folders.tool.js.map +1 -0
- package/dist/tools/workspace/list-projects.tool.d.ts +4 -0
- package/dist/tools/workspace/list-projects.tool.js +24 -0
- package/dist/tools/workspace/list-projects.tool.js.map +1 -0
- package/dist/tools/workspace/list-tags.tool.d.ts +7 -0
- package/dist/tools/workspace/list-tags.tool.js +23 -0
- package/dist/tools/workspace/list-tags.tool.js.map +1 -0
- package/dist/tools/workspace/move-workflow-to-folder.tool.d.ts +23 -0
- package/dist/tools/workspace/move-workflow-to-folder.tool.js +56 -0
- package/dist/tools/workspace/move-workflow-to-folder.tool.js.map +1 -0
- package/dist/tools/workspace/tag-workflow.tool.d.ts +22 -0
- package/dist/tools/workspace/tag-workflow.tool.js +52 -0
- package/dist/tools/workspace/tag-workflow.tool.js.map +1 -0
- package/dist/tracing/langsmith-tracing.d.ts +56 -0
- package/dist/tracing/langsmith-tracing.js +810 -0
- package/dist/tracing/langsmith-tracing.js.map +1 -0
- package/dist/types.d.ts +709 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/agent-tree.d.ts +3 -0
- package/dist/utils/agent-tree.js +23 -0
- package/dist/utils/agent-tree.js.map +1 -0
- package/dist/utils/format-timestamp.d.ts +1 -0
- package/dist/utils/format-timestamp.js +19 -0
- package/dist/utils/format-timestamp.js.map +1 -0
- package/dist/utils/stream-helpers.d.ts +15 -0
- package/dist/utils/stream-helpers.js +26 -0
- package/dist/utils/stream-helpers.js.map +1 -0
- package/dist/workflow-builder/extract-code.d.ts +5 -0
- package/dist/workflow-builder/extract-code.js +105 -0
- package/dist/workflow-builder/extract-code.js.map +1 -0
- package/dist/workflow-builder/index.d.ts +5 -0
- package/dist/workflow-builder/index.js +19 -0
- package/dist/workflow-builder/index.js.map +1 -0
- package/dist/workflow-builder/parse-validate.d.ts +6 -0
- package/dist/workflow-builder/parse-validate.js +49 -0
- package/dist/workflow-builder/parse-validate.js.map +1 -0
- package/dist/workflow-builder/patch-code.d.ts +14 -0
- package/dist/workflow-builder/patch-code.js +117 -0
- package/dist/workflow-builder/patch-code.js.map +1 -0
- package/dist/workflow-builder/sdk-prompt-sections.d.ts +4 -0
- package/dist/workflow-builder/sdk-prompt-sections.js +517 -0
- package/dist/workflow-builder/sdk-prompt-sections.js.map +1 -0
- package/dist/workflow-builder/types.d.ts +11 -0
- package/dist/workflow-builder/types.js +3 -0
- package/dist/workflow-builder/types.js.map +1 -0
- package/dist/workflow-loop/guidance.d.ts +5 -0
- package/dist/workflow-loop/guidance.js +37 -0
- package/dist/workflow-loop/guidance.js.map +1 -0
- package/dist/workflow-loop/index.d.ts +5 -0
- package/dist/workflow-loop/index.js +25 -0
- package/dist/workflow-loop/index.js.map +1 -0
- package/dist/workflow-loop/runtime.d.ts +8 -0
- package/dist/workflow-loop/runtime.js +40 -0
- package/dist/workflow-loop/runtime.js.map +1 -0
- package/dist/workflow-loop/workflow-loop-controller.d.ts +11 -0
- package/dist/workflow-loop/workflow-loop-controller.js +212 -0
- package/dist/workflow-loop/workflow-loop-controller.js.map +1 -0
- package/dist/workflow-loop/workflow-loop-state.d.ts +189 -0
- package/dist/workflow-loop/workflow-loop-state.js +77 -0
- package/dist/workflow-loop/workflow-loop-state.js.map +1 -0
- package/dist/workflow-loop/workflow-task-service.d.ts +13 -0
- package/dist/workflow-loop/workflow-task-service.js +35 -0
- package/dist/workflow-loop/workflow-task-service.js.map +1 -0
- package/dist/workspace/builder-sandbox-factory.d.ts +25 -0
- package/dist/workspace/builder-sandbox-factory.js +199 -0
- package/dist/workspace/builder-sandbox-factory.js.map +1 -0
- package/dist/workspace/create-workspace.d.ts +33 -0
- package/dist/workspace/create-workspace.js +56 -0
- package/dist/workspace/create-workspace.js.map +1 -0
- package/dist/workspace/daytona-filesystem.d.ts +25 -0
- package/dist/workspace/daytona-filesystem.js +109 -0
- package/dist/workspace/daytona-filesystem.js.map +1 -0
- package/dist/workspace/n8n-sandbox-client.d.ts +105 -0
- package/dist/workspace/n8n-sandbox-client.js +335 -0
- package/dist/workspace/n8n-sandbox-client.js.map +1 -0
- package/dist/workspace/n8n-sandbox-filesystem.d.ts +25 -0
- package/dist/workspace/n8n-sandbox-filesystem.js +128 -0
- package/dist/workspace/n8n-sandbox-filesystem.js.map +1 -0
- package/dist/workspace/n8n-sandbox-image-manager.d.ts +5 -0
- package/dist/workspace/n8n-sandbox-image-manager.js +25 -0
- package/dist/workspace/n8n-sandbox-image-manager.js.map +1 -0
- package/dist/workspace/n8n-sandbox-sandbox.d.ts +27 -0
- package/dist/workspace/n8n-sandbox-sandbox.js +103 -0
- package/dist/workspace/n8n-sandbox-sandbox.js.map +1 -0
- package/dist/workspace/sandbox-fs.d.ts +9 -0
- package/dist/workspace/sandbox-fs.js +43 -0
- package/dist/workspace/sandbox-fs.js.map +1 -0
- package/dist/workspace/sandbox-setup.d.ts +11 -0
- package/dist/workspace/sandbox-setup.js +139 -0
- package/dist/workspace/sandbox-setup.js.map +1 -0
- package/dist/workspace/snapshot-manager.d.ts +8 -0
- package/dist/workspace/snapshot-manager.js +31 -0
- package/dist/workspace/snapshot-manager.js.map +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-best-practices.tool.js","sourceRoot":"","sources":["../../../src/tools/best-practices/get-best-practices.tool.ts"],"names":[],"mappings":";;AAMA,gEAsEC;AA5ED,8CAAgD;AAChD,6BAAwB;AAExB,mCAAwC;AACxC,6CAAgF;AAEhF,SAAgB,0BAA0B;IACzC,OAAO,IAAA,kBAAU,EAAC;QACjB,EAAE,EAAE,oBAAoB;QACxB,WAAW,EACV,iJAAiJ;QAClJ,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;YACrB,SAAS,EAAE,OAAC;iBACV,MAAM,EAAE;iBACR,QAAQ,CACR,mIAAmI,CACnI;SACF,CAAC;QACF,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;YACrB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACpC,mBAAmB,EAAE,OAAC;iBACpB,KAAK,CACL,OAAC,CAAC,MAAM,CAAC;gBACR,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;gBACrB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;gBACvB,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE;aAC7B,CAAC,CACF;iBACA,QAAQ,EAAE;YACZ,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;SACnB,CAAC;QAEF,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;YAEhC,IAAI,SAAS,KAAK,MAAM,EAAE,CAAC;gBAC1B,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,CAAC,iCAAoB,CAAC,CAAC,GAAG,CACnE,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;oBACzB,SAAS,EAAE,IAAI;oBACf,WAAW;oBACX,gBAAgB,EAAE,qBAAa,CAAC,IAA6B,CAAC,KAAK,SAAS;iBAC5E,CAAC,CACF,CAAC;gBAEF,OAAO;oBACN,SAAS,EAAE,MAAM;oBACjB,mBAAmB;oBACnB,OAAO,EAAE,SAAS,mBAAmB,CAAC,MAAM,gBAAgB,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,MAAM,+BAA+B;iBACvJ,CAAC;YACH,CAAC;YAGD,MAAM,QAAQ,GAAG,qBAAa,CAAC,SAAkC,CAAC,CAAC;YACnE,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAEf,MAAM,WAAW,GAAG,iCAAoB,CAAC,SAAkC,CAAC,CAAC;gBAC7E,IAAI,WAAW,EAAE,CAAC;oBACjB,OAAO;wBACN,SAAS;wBACT,OAAO,EAAE,cAAc,SAAS,MAAM,WAAW,0HAA0H;qBAC3K,CAAC;gBACH,CAAC;gBAED,OAAO;oBACN,SAAS;oBACT,OAAO,EAAE,sBAAsB,SAAS,0DAA0D;iBAClG,CAAC;YACH,CAAC;YAED,OAAO;gBACN,SAAS;gBACT,aAAa,EAAE,QAAQ,EAAE;gBACzB,OAAO,EAAE,qCAAqC,SAAS,2BAA2B;aAClF,CAAC;QACH,CAAC;KACD,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getDocumentation(): string;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDocumentation = getDocumentation;
|
|
4
|
+
function getDocumentation() {
|
|
5
|
+
return `# Best Practices: Chatbot Workflows
|
|
6
|
+
|
|
7
|
+
## Workflow Design
|
|
8
|
+
|
|
9
|
+
Break chatbot logic into manageable steps and use error handling nodes (IF, Switch) with fallback mechanisms to manage unexpected inputs.
|
|
10
|
+
|
|
11
|
+
Most chatbots run through external platforms like Slack, Telegram, or WhatsApp rather than through the n8n chat interface - if the user requests a service like this don't use the built in chat interface nodes. But, the n8n chat node is easier to get started with tests. If the user mentions chatting but does not mention a service then use the built in n8n chat node.
|
|
12
|
+
|
|
13
|
+
CRITICAL: The user may ask to be able to chat to a workflow as well as trigger it via some other method, for example scheduling information gathering but also being able to chat with the agent - in scenarios like this the two separate workflows MUST be connected through shared memory, vector stores, data storage, or direct connections.
|
|
14
|
+
|
|
15
|
+
Example pattern:
|
|
16
|
+
- Schedule Trigger -> News Gathering Agent -> [memory node via ai_memory]
|
|
17
|
+
- Chat Trigger -> Chatbot Agent -> [SAME memory node via ai_memory]
|
|
18
|
+
- Result: Both agents share conversation/context history, enabling the chatbot to discuss gathered news
|
|
19
|
+
|
|
20
|
+
For the chatbot always use the same chat node type as used for response. If Telegram has been requested trigger the chatbot via telegram AND
|
|
21
|
+
respond via telegram - do not mix chatbot interfaces.
|
|
22
|
+
|
|
23
|
+
## Context & Memory Management
|
|
24
|
+
|
|
25
|
+
Always utilise memory in chatbot agent nodes - providing context gives you full conversation history and more control over context.
|
|
26
|
+
Memory nodes enable the bot to handle follow-up questions by maintaining short-term conversation history.
|
|
27
|
+
|
|
28
|
+
Include information with the user prompt such as timestamp, user ID, or session metadata. This enriches context without relying solely on memory and user prompt.
|
|
29
|
+
|
|
30
|
+
If there are other agents involved in the workflow you should share memory between the chatbot and those other agents where it makes sense.
|
|
31
|
+
Connect the same memory node to multiple agents to enable data sharing and context continuity.
|
|
32
|
+
|
|
33
|
+
## Context Engineering & AI Agent Output
|
|
34
|
+
|
|
35
|
+
It can be beneficial to respond to the user as a tool of the chatbot agent rather than using the agent output - this allows the agent to loop/carry out multiple responses if necessary.
|
|
36
|
+
This will require adding a note to the system prompt for the agent to tell it to use the tool to respond to the user.
|
|
37
|
+
|
|
38
|
+
## Message Attribution
|
|
39
|
+
|
|
40
|
+
n8n chatbots often attach the attribution "n8n workflow" to messages by default - you must disable this setting which will
|
|
41
|
+
often be called "Append n8n Attribution" for nodes that support it, add this setting and set it to false.
|
|
42
|
+
|
|
43
|
+
## Recommended Nodes
|
|
44
|
+
|
|
45
|
+
### Chat Trigger (@n8n/n8n-nodes-langchain.chatTrigger)
|
|
46
|
+
|
|
47
|
+
Purpose: Entry point for user messages in n8n-hosted chat interfaces
|
|
48
|
+
|
|
49
|
+
Pitfalls:
|
|
50
|
+
|
|
51
|
+
- Most production chatbots use external platforms (Slack, Telegram) rather than n8n's chat interface
|
|
52
|
+
|
|
53
|
+
### AI Agent (@n8n/n8n-nodes-langchain.agent)
|
|
54
|
+
|
|
55
|
+
Purpose: Orchestrates logic, tool use, and LLM calls for intelligent responses.
|
|
56
|
+
|
|
57
|
+
Unless user asks for a node by name, always use the AI Agent node over provider-specific nodes (like OpenAI, Google Gemini) or use-case-specific AI nodes (like Message a model) for chatbot workflows. The AI Agent node provides better orchestration, tool integration, and memory management capabilities essential for conversational interfaces.
|
|
58
|
+
For example, for "create a chatbot using OpenAI", implement: AI Agent -- OpenAI Chat Model.
|
|
59
|
+
|
|
60
|
+
### Chat Model Nodes
|
|
61
|
+
|
|
62
|
+
- OpenAI Chat Model (@n8n/n8n-nodes-langchain.lmChatOpenAi)
|
|
63
|
+
- Google Gemini Chat Model (@n8n/n8n-nodes-langchain.lmChatGoogleGemini)
|
|
64
|
+
- xAI Grok Chat Model (@n8n/n8n-nodes-langchain.lmChatXAiGrok)
|
|
65
|
+
- DeepSeek Chat Model (@n8n/n8n-nodes-langchain.lmChatDeepSeek)
|
|
66
|
+
|
|
67
|
+
Purpose: Connect to LLMs for natural, context-aware responses
|
|
68
|
+
|
|
69
|
+
### Simple Memory (@n8n/n8n-nodes-langchain.memoryBufferWindow)
|
|
70
|
+
|
|
71
|
+
Purpose: Maintains short-term conversation history for context continuity
|
|
72
|
+
|
|
73
|
+
### HTTP Request (n8n-nodes-base.httpRequest)
|
|
74
|
+
|
|
75
|
+
Purpose: Fetches external data to enrich chatbot responses with real-time or organizational information
|
|
76
|
+
|
|
77
|
+
### Database Nodes & Google Sheets
|
|
78
|
+
|
|
79
|
+
- Data Table (n8n-nodes-base.dataTable)
|
|
80
|
+
- Postgres (n8n-nodes-base.postgres)
|
|
81
|
+
- MySQL (n8n-nodes-base.mySql)
|
|
82
|
+
- MongoDB (n8n-nodes-base.mongoDb)
|
|
83
|
+
- Google Sheets (n8n-nodes-base.googleSheets)
|
|
84
|
+
|
|
85
|
+
Purpose: Store conversation logs, retrieve structured data, or maintain user preferences
|
|
86
|
+
|
|
87
|
+
### IF / Switch
|
|
88
|
+
|
|
89
|
+
- If (n8n-nodes-base.if)
|
|
90
|
+
- Switch (n8n-nodes-base.switch)
|
|
91
|
+
|
|
92
|
+
Purpose: Conditional logic and error handling for routing messages or managing conversation state
|
|
93
|
+
|
|
94
|
+
### Integration Nodes
|
|
95
|
+
|
|
96
|
+
- Slack (n8n-nodes-base.slack)
|
|
97
|
+
- Telegram (n8n-nodes-base.telegram)
|
|
98
|
+
- WhatsApp Business Cloud (n8n-nodes-base.whatsApp)
|
|
99
|
+
- Discord (n8n-nodes-base.discord)
|
|
100
|
+
|
|
101
|
+
Purpose: Multi-channel support for deploying chatbots on popular messaging platforms
|
|
102
|
+
|
|
103
|
+
## Common Pitfalls to Avoid
|
|
104
|
+
|
|
105
|
+
### Leaving Chatbot Disconnected
|
|
106
|
+
|
|
107
|
+
When a workflow has multiple triggers (e.g., scheduled data collection + chatbot interaction), the chatbot MUST have access to the data
|
|
108
|
+
generated by the workflow. Connect the chatbot through shared memory, vector stores, data storage, or direct data flow connections.
|
|
109
|
+
`;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=chatbot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot.js","sourceRoot":"","sources":["../../../../src/tools/best-practices/guides/chatbot.ts"],"names":[],"mappings":";;AAAA,4CA0GC;AA1GD,SAAgB,gBAAgB;IAC/B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwGP,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getDocumentation(): string;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDocumentation = getDocumentation;
|
|
4
|
+
function getDocumentation() {
|
|
5
|
+
return `# Best Practices: Content Generation Workflows
|
|
6
|
+
|
|
7
|
+
## Workflow Design
|
|
8
|
+
|
|
9
|
+
Break complex tasks into sequential steps (e.g., generate text, create image, compose video) for modularity and easier troubleshooting.
|
|
10
|
+
|
|
11
|
+
## Node Selection Guidelines
|
|
12
|
+
|
|
13
|
+
Always prefer built-in n8n nodes over HTTP Request nodes when a dedicated node exists for the service or API you need to integrate with. Built-in nodes provide:
|
|
14
|
+
- Pre-configured authentication handling
|
|
15
|
+
- Optimized data structures and field mappings
|
|
16
|
+
- Better error handling and user experience
|
|
17
|
+
- Simplified setup without manual API configuration
|
|
18
|
+
|
|
19
|
+
Only use HTTP Request nodes when no built-in node exists for the service, or when you need to access an API endpoint not covered by the built-in node's operations.
|
|
20
|
+
|
|
21
|
+
## Multi-Modal Content Generation - MANDATORY
|
|
22
|
+
|
|
23
|
+
When the user's request involves specific generative AI models or media-focused platforms, the workflow MUST include the appropriate media generation node from a
|
|
24
|
+
provider-specific node. The finished workflow MUST contain the relevant video, audio, or image generation capability.
|
|
25
|
+
|
|
26
|
+
Prompts that require multi-modal generation nodes:
|
|
27
|
+
|
|
28
|
+
Video Generation:
|
|
29
|
+
- Model mentions: Sora, Nano Banana, Veo, Runway, Pika
|
|
30
|
+
- Platform mentions: YouTube content, TikTok videos, Instagram Reels, video ads, short-form video
|
|
31
|
+
- Task mentions: generate video, create video, video from text, animate
|
|
32
|
+
|
|
33
|
+
Image Generation:
|
|
34
|
+
- Model mentions: DALL-E, Midjourney, Stable Diffusion, Imagen
|
|
35
|
+
- Platform mentions: thumbnails, social media graphics, product images, marketing visuals
|
|
36
|
+
- Task mentions: generate image, create artwork, design graphic, visualize
|
|
37
|
+
|
|
38
|
+
Audio Generation:
|
|
39
|
+
- Model mentions: ElevenLabs, text-to-speech, TTS
|
|
40
|
+
- Platform mentions: podcast audio, voiceovers, narration, audio content
|
|
41
|
+
- Task mentions: generate voice, create audio, synthesize speech, clone voice
|
|
42
|
+
|
|
43
|
+
If anything like the examples above are mentioned in the prompt, include the appropriate
|
|
44
|
+
provider node (OpenAI for DALL-E/Sora, Google Gemini for Nano Banana/Imagen, etc.)
|
|
45
|
+
with the media generation operation configured.
|
|
46
|
+
|
|
47
|
+
## Content-Specific Guidance
|
|
48
|
+
|
|
49
|
+
For text generation, validate and sanitize input/output to avoid malformed data. When generating images, prefer binary data over URLs for uploads to avoid media type errors.
|
|
50
|
+
|
|
51
|
+
## Recommended Nodes
|
|
52
|
+
|
|
53
|
+
### OpenAI (@n8n/n8n-nodes-langchain.openAi)
|
|
54
|
+
|
|
55
|
+
Purpose: GPT-based text generation, DALL-E image generation, text-to-speech (TTS), and audio transcription, SORA for video generation
|
|
56
|
+
|
|
57
|
+
### xAI Grok Chat Model (@n8n/n8n-nodes-langchain.lmChatXAiGrok)
|
|
58
|
+
|
|
59
|
+
Purpose: Conversational AI and text generation
|
|
60
|
+
|
|
61
|
+
### Google Gemini Chat Model (@n8n/n8n-nodes-langchain.lmChatGoogleGemini)
|
|
62
|
+
|
|
63
|
+
Purpose: Image analysis and generation, video generation from text prompts using nano banana, multimodal content creation
|
|
64
|
+
|
|
65
|
+
### ElevenLabs
|
|
66
|
+
|
|
67
|
+
Purpose: Natural-sounding AI voice generation
|
|
68
|
+
|
|
69
|
+
Note: Use HTTP Request node or a community node to integrate with ElevenLabs API
|
|
70
|
+
|
|
71
|
+
### HTTP Request (n8n-nodes-base.httpRequest)
|
|
72
|
+
|
|
73
|
+
Purpose: Integrating with other LLM and content generation APIs (e.g., Jasper, Writesonic, Anthropic, HuggingFace)
|
|
74
|
+
|
|
75
|
+
### Edit Image (n8n-nodes-base.editImage)
|
|
76
|
+
|
|
77
|
+
Purpose: Manipulating images - resize, crop, rotate, and format conversion
|
|
78
|
+
|
|
79
|
+
Pitfalls:
|
|
80
|
+
|
|
81
|
+
- Ensure input is valid binary image data
|
|
82
|
+
- Check output format compatibility with downstream nodes
|
|
83
|
+
|
|
84
|
+
### Markdown (n8n-nodes-base.markdown)
|
|
85
|
+
|
|
86
|
+
Purpose: Formatting and converting text to HTML or Markdown reports
|
|
87
|
+
|
|
88
|
+
### Facebook Graph API (n8n-nodes-base.facebookGraphApi)
|
|
89
|
+
|
|
90
|
+
Purpose: Uploading videos and images to Instagram and Facebook
|
|
91
|
+
|
|
92
|
+
Pitfalls:
|
|
93
|
+
|
|
94
|
+
- Use binary data fields rather than URLs for media uploads to prevent "media type" errors
|
|
95
|
+
- Verify page IDs and access tokens have correct permissions
|
|
96
|
+
|
|
97
|
+
### Wait (n8n-nodes-base.wait)
|
|
98
|
+
|
|
99
|
+
Purpose: Handling delays in video processing/uploading and respecting API rate limits
|
|
100
|
+
|
|
101
|
+
## Common Pitfalls to Avoid
|
|
102
|
+
|
|
103
|
+
Binary Data Handling: For media uploads, use binary fields rather than URLs to prevent "media type" errors, especially with Facebook and Instagram APIs. Download media to binary data first, then upload from binary rather than passing URLs.
|
|
104
|
+
|
|
105
|
+
Async Processing: For long-running content generation tasks (especially video), implement proper wait/polling mechanisms. Don't assume instant completion - many AI services process requests asynchronously.
|
|
106
|
+
`;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=content-generation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-generation.js","sourceRoot":"","sources":["../../../../src/tools/best-practices/guides/content-generation.ts"],"names":[],"mappings":";;AAAA,4CAuGC;AAvGD,SAAgB,gBAAgB;IAC/B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqGP,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getDocumentation(): string;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDocumentation = getDocumentation;
|
|
4
|
+
function getDocumentation() {
|
|
5
|
+
return `# Best Practices: Data Extraction Workflows
|
|
6
|
+
|
|
7
|
+
## Node Selection by Data Type
|
|
8
|
+
|
|
9
|
+
Choose the right node for your data source. Use Extract From File for CSV, Excel, PDF, and text files to convert binary data to JSON for further processing.
|
|
10
|
+
|
|
11
|
+
Use Information Extractor or AI nodes for extracting structured data from unstructured text such as PDFs or emails using LLMs.
|
|
12
|
+
|
|
13
|
+
For binary data, ensure you use nodes like Extract From File to handle files properly.
|
|
14
|
+
|
|
15
|
+
### Referencing Binary Data from Other Nodes
|
|
16
|
+
When you need to reference binary data from a previous node, use this syntax:
|
|
17
|
+
- Expression: '{{ $('Node Name').item.binary.property_name }}' or {{ $binary.property_name }} if previous item
|
|
18
|
+
- Example for Gmail attachments: '{{ $('Gmail Trigger').item.binary.attachment_0 }}' or {{ $binary.attachment_0 }} if previous item
|
|
19
|
+
- Example for webhook data: '{{ $('Webhook').item.binary.data }}' or {{ $binary.data }} if previous item
|
|
20
|
+
- Important: The property name depends on how the previous node names the binary data
|
|
21
|
+
|
|
22
|
+
## Data Structure & Type Management
|
|
23
|
+
|
|
24
|
+
Normalize data structure early in your workflow. Use transformation nodes like Split Out, Aggregate, or Set to ensure your data matches n8n's expected structure: an array of objects with a json key.
|
|
25
|
+
Not transforming incoming data to n8n's expected format causes downstream node failures.
|
|
26
|
+
|
|
27
|
+
When working with large amounts of information, n8n's display can be hard to view. Use the Edit Fields node to help organize and view data more clearly during development and debugging.
|
|
28
|
+
|
|
29
|
+
## Large File Handling
|
|
30
|
+
|
|
31
|
+
Process files in batches or use sub-workflows to avoid memory issues. For large binary files, consider enabling filesystem mode (N8N_DEFAULT_BINARY_DATA_MODE=filesystem) if self-hosted, to store binary data on disk instead of memory.
|
|
32
|
+
|
|
33
|
+
Processing too many items or large files at once can crash your instance. Always batch or split processing for large datasets to manage memory effectively.
|
|
34
|
+
|
|
35
|
+
## Binary Data Management
|
|
36
|
+
|
|
37
|
+
Binary data can be lost if intermediate nodes (like Set or Code) do not have "Include Other Input Fields" enabled, especially in sub-workflows. Always verify binary data is preserved through your workflow pipeline.
|
|
38
|
+
|
|
39
|
+
## AI-Powered Extraction
|
|
40
|
+
|
|
41
|
+
Leverage AI for unstructured data using nodes like Information Extractor or Summarization Chain to extract structured data from unstructured sources such as PDFs, emails, or web pages.
|
|
42
|
+
|
|
43
|
+
## Recommended Nodes
|
|
44
|
+
|
|
45
|
+
### Loop Over Items (n8n-nodes-base.splitInBatches)
|
|
46
|
+
|
|
47
|
+
Purpose: Looping over a set of items extracted from a data set, for example if pulling a lot of data
|
|
48
|
+
from a Google Sheet or database then looping over the items is required. This node MUST be used
|
|
49
|
+
if the user mentions a large amount of data, it is necessary to batch the data to process all of it.
|
|
50
|
+
|
|
51
|
+
### Extract From File (n8n-nodes-base.extractFromFile)
|
|
52
|
+
|
|
53
|
+
Purpose: Converts binary data from CSV, Excel, PDF, and text files to JSON for processing
|
|
54
|
+
|
|
55
|
+
Pitfalls:
|
|
56
|
+
|
|
57
|
+
- Ensure the correct binary field name is specified in the node configuration
|
|
58
|
+
- Verify file format compatibility before extraction
|
|
59
|
+
|
|
60
|
+
### HTML Extract (n8n-nodes-base.htmlExtract)
|
|
61
|
+
|
|
62
|
+
Purpose: Scrapes data from web pages using CSS selectors
|
|
63
|
+
|
|
64
|
+
### Split Out (n8n-nodes-base.splitOut)
|
|
65
|
+
|
|
66
|
+
Purpose: Processes arrays of items individually for sequential operations.
|
|
67
|
+
Example: If retrieving a JSON array using a HTTP request, this will return a single item,
|
|
68
|
+
containing that array. If you wish to use a Loop Over Items (n8n-nodes-base.splitInBatches) node,
|
|
69
|
+
then you will need to split out the array into items before looping over it. In a scenario like
|
|
70
|
+
this a split out node MUST be used before looping over the items.
|
|
71
|
+
|
|
72
|
+
### Edit Fields (Set) (n8n-nodes-base.set)
|
|
73
|
+
|
|
74
|
+
Purpose: Data transformation and mapping to normalize structure
|
|
75
|
+
|
|
76
|
+
Pitfalls:
|
|
77
|
+
|
|
78
|
+
- Enable "Include Other Input Fields" to preserve binary data
|
|
79
|
+
- Pay attention to data types - mixing types causes unexpected failures
|
|
80
|
+
|
|
81
|
+
### Information Extractor (@n8n/n8n-nodes-langchain.informationExtractor)
|
|
82
|
+
|
|
83
|
+
Purpose: AI-powered extraction of structured data from unstructured text
|
|
84
|
+
|
|
85
|
+
Pitfalls:
|
|
86
|
+
|
|
87
|
+
- Requires proper schema definition for extraction
|
|
88
|
+
|
|
89
|
+
### Summarization Chain (@n8n/n8n-nodes-langchain.chainSummarization)
|
|
90
|
+
|
|
91
|
+
Purpose: Summarizes large text blocks using AI for condensed information extraction
|
|
92
|
+
|
|
93
|
+
Pitfalls:
|
|
94
|
+
|
|
95
|
+
- Context window limits may truncate very long documents
|
|
96
|
+
- Verify summary quality matches requirements
|
|
97
|
+
|
|
98
|
+
### HTTP Request (n8n-nodes-base.httpRequest)
|
|
99
|
+
|
|
100
|
+
Purpose: Fetches data from APIs or web pages for extraction
|
|
101
|
+
|
|
102
|
+
### Code (n8n-nodes-base.code)
|
|
103
|
+
|
|
104
|
+
Purpose: Custom logic for complex data transformations
|
|
105
|
+
|
|
106
|
+
## Common Pitfalls to Avoid
|
|
107
|
+
|
|
108
|
+
Data Type Confusion: People often mix up data types - n8n can be very lenient but it can lead to problems. Pay close attention to what type you are getting and ensure consistency throughout the workflow.
|
|
109
|
+
|
|
110
|
+
Binary Data Loss: Binary data can be lost if intermediate nodes (Set, Code) do not have "Include Other Input Fields" enabled, especially in sub-workflows. Always verify binary data preservation.
|
|
111
|
+
|
|
112
|
+
Large Data Display Issues: n8n displaying large amounts of information can be hard to view during development. Use the Edit Fields node to help organize and view data more clearly.
|
|
113
|
+
`;
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=data-extraction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-extraction.js","sourceRoot":"","sources":["../../../../src/tools/best-practices/guides/data-extraction.ts"],"names":[],"mappings":";;AAAA,4CA8GC;AA9GD,SAAgB,gBAAgB;IAC/B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4GP,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getDocumentation(): string;
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDocumentation = getDocumentation;
|
|
4
|
+
function getDocumentation() {
|
|
5
|
+
return `# Best Practices: Data Persistence
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
Data persistence involves storing, updating, or retrieving records from durable storage systems. This technique is essential when you need to maintain data beyond the lifetime of a single workflow execution, or when you need to access existing data that users have stored in their spreadsheets, tables, or databases as part of your workflow logic.
|
|
10
|
+
|
|
11
|
+
## When to Use Data Persistence
|
|
12
|
+
|
|
13
|
+
Use data persistence when you need to:
|
|
14
|
+
- Store workflow results for later retrieval or audit trails
|
|
15
|
+
- Maintain records that multiple workflows can access and update
|
|
16
|
+
- Create a centralized data repository for your automation
|
|
17
|
+
- Archive historical data for reporting or compliance
|
|
18
|
+
- Build data that persists across workflow executions
|
|
19
|
+
- Track changes or maintain state over time
|
|
20
|
+
- Store raw form inputs
|
|
21
|
+
|
|
22
|
+
## Choosing the Right Storage Node
|
|
23
|
+
|
|
24
|
+
### Data Table (n8n-nodes-base.dataTable) - PREFERRED
|
|
25
|
+
|
|
26
|
+
**Best for:** Quick setup, small to medium amounts of data
|
|
27
|
+
|
|
28
|
+
Advantages:
|
|
29
|
+
- No credentials or external configuration required
|
|
30
|
+
- Built directly into n8n
|
|
31
|
+
- Fast and reliable for small to medium datasets
|
|
32
|
+
- Ideal for prototyping and internal workflows
|
|
33
|
+
- No additional costs or external dependencies
|
|
34
|
+
|
|
35
|
+
When to use:
|
|
36
|
+
- Internal workflow data storage
|
|
37
|
+
- Temporary or staging data
|
|
38
|
+
- Admin/audit trails
|
|
39
|
+
- Simple record keeping
|
|
40
|
+
- Development and testing
|
|
41
|
+
|
|
42
|
+
### Google Sheets (n8n-nodes-base.googleSheets)
|
|
43
|
+
|
|
44
|
+
**Best for:** Collaboration, reporting, easy data sharing
|
|
45
|
+
|
|
46
|
+
Advantages:
|
|
47
|
+
- Familiar spreadsheet interface for non-technical users
|
|
48
|
+
- Easy to share and collaborate on data
|
|
49
|
+
- Built-in visualization and formula capabilities
|
|
50
|
+
- Good for reporting and dashboards
|
|
51
|
+
- Accessible from anywhere
|
|
52
|
+
|
|
53
|
+
When to use:
|
|
54
|
+
- Data needs to be viewed/edited by multiple people
|
|
55
|
+
- Non-technical users need access to data
|
|
56
|
+
- Integration with other Google Workspace tools
|
|
57
|
+
- Simple data structures without complex relationships
|
|
58
|
+
- Workflow needs access to existing spreadsheets in Google Sheets
|
|
59
|
+
|
|
60
|
+
Pitfalls:
|
|
61
|
+
- API rate limits can affect high-volume workflows
|
|
62
|
+
- Not suitable for frequently changing data
|
|
63
|
+
- Performance degrades with very large datasets (>10k rows)
|
|
64
|
+
|
|
65
|
+
### Airtable (n8n-nodes-base.airtable)
|
|
66
|
+
|
|
67
|
+
**Best for:** Structured data with relationships, rich field types
|
|
68
|
+
|
|
69
|
+
Advantages:
|
|
70
|
+
- Supports relationships between tables
|
|
71
|
+
- Rich field types (attachments, select, links, etc.)
|
|
72
|
+
- Better structure than spreadsheets
|
|
73
|
+
|
|
74
|
+
When to use:
|
|
75
|
+
- Data has relationships or references between records
|
|
76
|
+
- Need structured database-like features
|
|
77
|
+
- Managing projects, tasks, or inventory
|
|
78
|
+
- Workflow needs access to existing data in Airtable
|
|
79
|
+
|
|
80
|
+
Pitfalls:
|
|
81
|
+
- Requires Airtable account and API key
|
|
82
|
+
- Schema changes require careful planning
|
|
83
|
+
|
|
84
|
+
## Storage Patterns
|
|
85
|
+
|
|
86
|
+
### Immediate Storage Pattern
|
|
87
|
+
|
|
88
|
+
Store data immediately after collection or generation:
|
|
89
|
+
|
|
90
|
+
\`\`\`mermaid
|
|
91
|
+
flowchart LR
|
|
92
|
+
Trigger --> Process_Data["Process Data"]
|
|
93
|
+
Process_Data --> Storage_Node["Storage Node"]
|
|
94
|
+
Storage_Node --> Continue_Workflow["Continue Workflow"]
|
|
95
|
+
\`\`\`
|
|
96
|
+
|
|
97
|
+
Best for: Raw data preservation, audit trails, form submissions
|
|
98
|
+
|
|
99
|
+
### Batch Storage Pattern
|
|
100
|
+
|
|
101
|
+
Collect multiple items and store them together:
|
|
102
|
+
|
|
103
|
+
\`\`\`mermaid
|
|
104
|
+
flowchart LR
|
|
105
|
+
Trigger --> Loop_Split["Loop/Split"]
|
|
106
|
+
Loop_Split --> Process["Process"]
|
|
107
|
+
Process --> Aggregate["Aggregate"]
|
|
108
|
+
Aggregate --> Storage_Node["Storage Node"]
|
|
109
|
+
\`\`\`
|
|
110
|
+
|
|
111
|
+
Best for: Processing lists, batch operations, scheduled aggregations
|
|
112
|
+
|
|
113
|
+
### Update Pattern
|
|
114
|
+
|
|
115
|
+
Retrieve, modify, and update existing records:
|
|
116
|
+
|
|
117
|
+
\`\`\`mermaid
|
|
118
|
+
flowchart LR
|
|
119
|
+
Trigger --> Retrieve["Retrieve from Storage"]
|
|
120
|
+
Retrieve --> Modify["Modify"]
|
|
121
|
+
Modify --> Update_Storage["Update Storage Node"]
|
|
122
|
+
\`\`\`
|
|
123
|
+
|
|
124
|
+
Best for: Maintaining state, updating records, tracking changes
|
|
125
|
+
|
|
126
|
+
### Lookup Pattern
|
|
127
|
+
|
|
128
|
+
Query storage to retrieve specific records:
|
|
129
|
+
|
|
130
|
+
\`\`\`mermaid
|
|
131
|
+
flowchart LR
|
|
132
|
+
Trigger --> Query_Storage["Query Storage Node"]
|
|
133
|
+
Query_Storage --> Use_Data["Use Retrieved Data"]
|
|
134
|
+
Use_Data --> Continue_Workflow["Continue Workflow"]
|
|
135
|
+
\`\`\`
|
|
136
|
+
|
|
137
|
+
Best for: Enrichment, validation, conditional logic based on stored data
|
|
138
|
+
|
|
139
|
+
## Key Considerations
|
|
140
|
+
|
|
141
|
+
### Data Structure
|
|
142
|
+
|
|
143
|
+
- **Plan your schema ahead:** Define what fields you need before creating storage
|
|
144
|
+
- **Use consistent field names:** Match field names across your workflow for easy mapping
|
|
145
|
+
- **Consider data types:** Ensure your storage supports the data types you need
|
|
146
|
+
- **Think about relationships:** If data is related, consider Airtable or use multiple tables
|
|
147
|
+
|
|
148
|
+
### Performance
|
|
149
|
+
|
|
150
|
+
- **Batch operations when possible:** Multiple small writes are slower than batch operations
|
|
151
|
+
- **Use appropriate operations:** Use "append" for new records, "update" for modifications
|
|
152
|
+
- **Consider API limits:** Google Sheets has rate limits; plan accordingly for high-volume workflows
|
|
153
|
+
|
|
154
|
+
### Data Integrity
|
|
155
|
+
|
|
156
|
+
- **Store raw data first:** Keep unmodified input before transformations
|
|
157
|
+
- **Handle errors gracefully:** Use error handling to prevent data loss on failures
|
|
158
|
+
- **Validate before storing:** Ensure data quality before persistence
|
|
159
|
+
- **Avoid duplicates:** Use unique identifiers or upsert operations when appropriate
|
|
160
|
+
|
|
161
|
+
## Referencing Documents, Sheets, or Tables
|
|
162
|
+
|
|
163
|
+
When configuring storage nodes, use ResourceLocator mode "list". This will allow users to select from existing documents, sheets, or tables rather than passing IDs dynamically.
|
|
164
|
+
Use modes "id", "url" or "name" only when user specifically mentions it in their prompt.
|
|
165
|
+
|
|
166
|
+
## Important Distinctions
|
|
167
|
+
|
|
168
|
+
### Storage vs. Transformation
|
|
169
|
+
|
|
170
|
+
- **Set/Merge nodes are NOT storage:** They transform data in memory only
|
|
171
|
+
- **Storage happens explicitly:** Data won't persist unless you explicitly write it to storage
|
|
172
|
+
|
|
173
|
+
### Temporary vs. Persistent Storage
|
|
174
|
+
|
|
175
|
+
- **NOT covered by this technique:** Redis, caching, session storage, in-memory operations
|
|
176
|
+
- **This technique covers:** Durable storage that persists beyond workflow execution
|
|
177
|
+
- **Focus on permanence:** Use these nodes when you need data to survive restarts and be queryable later
|
|
178
|
+
|
|
179
|
+
## Common Pitfalls to Avoid
|
|
180
|
+
|
|
181
|
+
### Not Handling Duplicates
|
|
182
|
+
|
|
183
|
+
Without proper unique identifiers or upsert logic, you may create duplicate records. Use unique IDs or check for existing records before inserting.
|
|
184
|
+
|
|
185
|
+
### Ignoring Storage Limits
|
|
186
|
+
|
|
187
|
+
Each storage system has limits (row counts, API rates, file sizes). Design your workflow to work within these constraints or implement pagination/batching.
|
|
188
|
+
|
|
189
|
+
### Not Handling Empty Query Results
|
|
190
|
+
|
|
191
|
+
Data Tables and other storage nodes return 0 items when:
|
|
192
|
+
- The table is freshly created and has no rows yet
|
|
193
|
+
- A filter/lookup query matches nothing
|
|
194
|
+
|
|
195
|
+
This silently breaks the downstream chain — all nodes after the empty result are skipped. Always set \`alwaysOutputData: true\` on data-fetching nodes (operation: 'get') when downstream nodes depend on their output.
|
|
196
|
+
`;
|
|
197
|
+
}
|
|
198
|
+
//# sourceMappingURL=data-persistence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-persistence.js","sourceRoot":"","sources":["../../../../src/tools/best-practices/guides/data-persistence.ts"],"names":[],"mappings":";;AAAA,4CAiMC;AAjMD,SAAgB,gBAAgB;IAC/B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+LP,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getDocumentation(): string;
|