n8n-editor-ui 1.105.4 → 1.106.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AnimatedSpinner-DN2jXYlg.js → AnimatedSpinner-CNelXJxW.js} +1 -1
- package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-CI8fSX5_.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-BptELjdm.js} +1 -1
- package/dist/assets/{AuthView-CDj6SylT.js → AuthView-CPPbhtGS.js} +2 -2
- package/dist/assets/{ChangePasswordView-B5GRVadN.js → ChangePasswordView-Cmby8zoY.js} +3 -3
- package/dist/assets/CollectionParameter-mnvV48iw.js +4 -0
- package/dist/assets/{ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-BqZCYQqJ.js → ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-Dqqp4ac7.js} +1 -1
- package/dist/assets/{CredentialsView-LniKS1gL.js → CredentialsView-CJXL-1bL.js} +8 -8
- package/dist/assets/DataStoreView-_YRbyjCa.js +344 -0
- package/dist/assets/DataStoreView-bZrewhaR.css +159 -0
- package/dist/assets/{DemoFooter-BlcOl9Ia.js → DemoFooter-B15mfkPV.js} +6 -6
- package/dist/assets/{EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-CkI0vaWb.js → EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-DI7KmJ0_.js} +1 -1
- package/dist/assets/{EntityNotFound-D-i0iOEh.js → EntityNotFound-CcFUGyDP.js} +1 -1
- package/dist/assets/{EntityUnAuthorised-CtvzhcxM.js → EntityUnAuthorised-BG-TRxIJ.js} +1 -1
- package/dist/assets/{ErrorView-DqayUzyN.js → ErrorView-D48KsENu.js} +1 -1
- package/dist/assets/{EvaluationsRootView-u-tzY3TN.js → EvaluationsRootView-LdGwrJIs.js} +1 -1
- package/dist/assets/{EvaluationsView-Cv6F74cp.js → EvaluationsView-DsmpZjlG.js} +3 -3
- package/dist/assets/{ExecutionsTime.vue_vue_type_script_setup_true_lang-Ar7NipI9.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-a16EyLIx.js} +2 -2
- package/dist/assets/{ExecutionsView-BDCP9XVW.js → ExecutionsView-CLWAKvdy.js} +8 -8
- package/dist/assets/{FixedCollectionParameter-dYhz2Ism.js → FixedCollectionParameter-CR8LTPoG.js} +1 -1
- package/dist/assets/{ForgotMyPasswordView-C69Wn008.js → ForgotMyPasswordView-5tgaN8ke.js} +3 -3
- package/dist/assets/{InfoAccordion-CH0m5p8-.js → InfoAccordion-DeO6hC1F.js} +1 -1
- package/dist/assets/{InsightsChartAverageRuntime-DAN-ukDS.js → InsightsChartAverageRuntime-YWhQCYJi.js} +4 -4
- package/dist/assets/{InsightsChartFailed-DQmPYaEe.js → InsightsChartFailed-BKdlXvoJ.js} +4 -4
- package/dist/assets/{InsightsChartFailureRate-DO7uhap1.js → InsightsChartFailureRate-BQM3KyGw.js} +4 -4
- package/dist/assets/{InsightsChartTimeSaved-CQA_4401.js → InsightsChartTimeSaved-B9ZGnk2Y.js} +4 -4
- package/dist/assets/{InsightsChartTotal--CVbOXo5.js → InsightsChartTotal-B_QgLNJe.js} +4 -4
- package/dist/assets/{InsightsDashboard-CrBkWNMD.js → InsightsDashboard-DpKFXx1_.js} +10 -10
- package/dist/assets/{InsightsPaywall-C0dTxHKs.js → InsightsPaywall-BEnBA_oG.js} +1 -1
- package/dist/assets/{InsightsSummary-C6Y-SKzK.js → InsightsSummary-C2OXzc3_.js} +1 -1
- package/dist/assets/{InsightsTableWorkflows-BbVGyCBO.js → InsightsTableWorkflows-CHgPK1AG.js} +4 -5
- package/dist/assets/{Logo-CsvXL0P7.js → Logo-BoIqUrfh.js} +1 -1
- package/dist/assets/{LogsPanel-CN42eNUt.js → LogsPanel-wngrETx-.js} +6 -5
- package/dist/assets/{MainHeader-CoJhLOFm.js → MainHeader-CTjEFOEQ.js} +8 -8
- package/dist/assets/{MainSidebar-R8rwZ_Pn.js → MainSidebar-D5-JTqU5.js} +3 -5
- package/dist/assets/NodeCreation-Dx_ZFP4I.js +172 -0
- package/dist/assets/{NodeCreator-B4qIG19F.js → NodeCreator-EZL35vF_.js} +1 -2
- package/dist/assets/{NodeDetailsView-CaTI-1QQ.css → NodeDetailsView-Cam4nPwL.css} +0 -3
- package/dist/assets/{NodeDetailsView-DAAY8u0j.js → NodeDetailsView-D_zBP3Bb.js} +16 -30
- package/dist/assets/{NodeDetailsViewV2-rO5xAOLt.js → NodeDetailsViewV2-CAJnQ07m.js} +18 -31
- package/dist/assets/{NodeDetailsViewV2-LLVofUjw.css → NodeDetailsViewV2-LzYZcnv5.css} +0 -124
- package/dist/assets/{NodeView-B2097MY0.css → NodeView-BMiOpmk4.css} +184 -10
- package/dist/assets/{NodeView-COL17PiI.js → NodeView-BvMrPj18.js} +137 -69
- package/dist/assets/{ProjectHeader-eW3SFgfy.js → ProjectHeader-CPQrclqi.js} +46 -6
- package/dist/assets/{ProjectSettings-C2AHG6jb.js → ProjectSettings-DgMto7tc.js} +3 -3
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-qgsXLVHp.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-BZtkrOl0.js} +1 -1
- package/dist/assets/{ResourcesListLayout-uBbUHbxU.css → ResourcesListLayout-6eIqe4Ld.css} +8 -8
- package/dist/assets/{ResourcesListLayout-CRbZPcXi.js → ResourcesListLayout-DwQ-KO8O.js} +56 -30
- package/dist/assets/{RunDataJson-BsgYpb7j.js → RunDataJson-NKGXU_0S.js} +3 -3
- package/dist/assets/{RunDataJsonActions-BwVIOF0o.js → RunDataJsonActions-DWu07Sg3.js} +1 -1
- package/dist/assets/{RunDataParsedAiContent-uldVOLgS.js → RunDataParsedAiContent-CbuJCBp_.js} +2 -2
- package/dist/assets/{RunDataSearch-B_OkRO9N.js → RunDataSearch-CyaajiwJ.js} +3 -2
- package/dist/assets/{RunDataTable-BKnUlzVX.js → RunDataTable-DnoqsyNq.js} +1 -1
- package/dist/assets/{SamlOnboarding-uGmw-L7G.js → SamlOnboarding-BRzm3bo_.js} +3 -3
- package/dist/assets/{SettingsApiView-DIRnZSMH.js → SettingsApiView-ivqbOHhT.js} +1 -1
- package/dist/assets/{SettingsCommunityNodesView-BF3-gFEu.js → SettingsCommunityNodesView-Cx8vBXR6.js} +4 -4
- package/dist/assets/{SettingsExternalSecrets-BceN7BZL.js → SettingsExternalSecrets-Wn429MD6.js} +1 -1
- package/dist/assets/{SettingsLdapView-ErdD4koz.js → SettingsLdapView-DCtzJ_64.js} +1 -1
- package/dist/assets/{SettingsLogStreamingView-BAEs0SFs.js → SettingsLogStreamingView-DKXo0eU8.js} +1 -1
- package/dist/assets/{SettingsPersonalView-C-Jmfurq.js → SettingsPersonalView-VzUT1CPv.js} +1 -1
- package/dist/assets/{SettingsSourceControl-D0b0Y8tK.js → SettingsSourceControl-HcZJv6oW.js} +1 -1
- package/dist/assets/{SettingsSso-DHUWvjXP.js → SettingsSso-Cfx5v2kB.js} +1 -1
- package/dist/assets/{SettingsUsageAndPlan-CD14-RrC.js → SettingsUsageAndPlan-V2l1gNEl.js} +1 -1
- package/dist/assets/{SettingsUsersView-DjO-Sh89.js → SettingsUsersView-2-bhlusf.js} +1 -2
- package/dist/assets/{SettingsView-CHxTZS8i.js → SettingsView-fv8tG-N8.js} +1 -1
- package/dist/assets/{SetupView-C1Ln2UdV.js → SetupView-B_8QsEwf.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-BPymVgJe.js → SetupWorkflowCredentialsButton-YvSvOa40.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-wFX8bZAJ.js → SetupWorkflowFromTemplateView-DHUtu9hz.js} +3 -3
- package/dist/assets/{SigninView-C0kbXdPM.js → SigninView-DnY5XrJt.js} +3 -3
- package/dist/assets/{SignoutView-DAFKgMcr.js → SignoutView-DBW6U-W1.js} +1 -1
- package/dist/assets/{SignupView-PPupzKGC.js → SignupView-B2k8UZuK.js} +3 -3
- package/dist/assets/{TableBase-gdXXFVAP.js → TableBase-j-43b-BE.js} +1 -1
- package/dist/assets/{Tags-F2rWzlFg.js → Tags-DgGumzup.js} +1 -1
- package/dist/assets/{TemplateDetails-Cv5PGkmu.js → TemplateDetails-CXGIerQ_.js} +2 -2
- package/dist/assets/{TemplateList-18ftmcJJ.js → TemplateList-Do4Ut3DG.js} +1 -1
- package/dist/assets/{TemplatesCollectionView-DMVhS77J.js → TemplatesCollectionView-DLhzSdM1.js} +6 -6
- package/dist/assets/{TemplatesSearchView-CA5t-yFo.js → TemplatesSearchView-CfkkwaEu.js} +3 -3
- package/dist/assets/{TemplatesView-C0Eg9WLM.js → TemplatesView-DIc4T7Sq.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-CGBohTkh.js → TemplatesWorkflowView-DykWFToE.js} +6 -6
- package/dist/assets/{TriggerPanel-e3n6XSn6.js → TriggerPanel-CawHOOEB.js} +5 -5
- package/dist/assets/{VariablesView-xpXMqeMR.js → VariablesView-8ufP_Pbm.js} +5 -5
- package/dist/assets/{VueMarkdown-DB88HNOs.js → VueMarkdown-CXxTuRRR.js} +1 -1
- package/dist/assets/{WorkerView-CkGaZ7n4.js → WorkerView-4N9b1GrL.js} +6 -6
- package/dist/assets/{WorkflowActivator-D5g0kUNF.js → WorkflowActivator-By2YPIxR.js} +3 -3
- package/dist/assets/{WorkflowExecutionsInfoAccordion-Cgs62HlG.js → WorkflowExecutionsInfoAccordion-Dq5uAvFb.js} +2 -2
- package/dist/assets/{WorkflowExecutionsLandingPage-Dg7W4mV0.js → WorkflowExecutionsLandingPage-qTq7jXZd.js} +3 -3
- package/dist/assets/{WorkflowExecutionsPreview-C4vsWZbx.js → WorkflowExecutionsPreview-DH0t9oMG.js} +4 -4
- package/dist/assets/{WorkflowExecutionsView-lcK1FkoU.js → WorkflowExecutionsView-CvcWVL1q.js} +6 -6
- package/dist/assets/{WorkflowHistory-xHaZRT-3.js → WorkflowHistory-BoPbDI2w.js} +2 -2
- package/dist/assets/{WorkflowOnboardingView-DBkTMmpE.js → WorkflowOnboardingView-CfdRMdb_.js} +1 -1
- package/dist/assets/{WorkflowPreview-BwzoCwMQ.js → WorkflowPreview-CRcYeBph.js} +1 -1
- package/dist/assets/{WorkflowsView-uWjceF97.js → WorkflowsView-Dp2UtSsK.js} +125 -16
- package/dist/assets/{canvas-DJZKQR0M.js → canvas-FB8uqaY-.js} +1 -1
- package/dist/assets/{chartjs.utils-B_AakY6C.js → chartjs.utils-CDdXZsf8.js} +2 -2
- package/dist/assets/{en-D7cJPQEa.js → en-ORjqW56z.js} +41 -7
- package/dist/assets/{global-link-actions-CkD1SfM8.js → global-link-actions-CLAUq-Uc.js} +1 -1
- package/dist/assets/{index-BnmK7yJz.css → index-B09aakje.css} +1058 -482
- package/dist/assets/{index-0vi2zwei.js → index-BoUr_2PB.js} +12906 -8174
- package/dist/assets/{index-wfdzkZ5N.js → index-C7wt32Q4.js} +1 -1
- package/dist/assets/{pickBy-BVWE53bB.js → pickBy-BEyZL_eY.js} +1 -1
- package/dist/assets/readyToRunWorkflows.store-BujC1ADB.js +2436 -0
- package/dist/assets/{templateActions-DzOhSXT7.js → templateActions-bUKZTAXx.js} +1 -1
- package/dist/assets/{useBeforeUnload-D8cfIuzK.js → useBeforeUnload-CvFcYuae.js} +1 -1
- package/dist/assets/{useExecutionDebugging-DSzk_VRK.js → useExecutionDebugging-CuyWUrpA.js} +1 -1
- package/dist/assets/{useImportCurlCommand-C1X3Ke_i.js → useImportCurlCommand-KUrfAIVU.js} +1 -1
- package/dist/assets/useProjectPages-BJ7N1xfl.js +17 -0
- package/dist/assets/{usePushConnection-DoC4OSDa.js → usePushConnection-klqSpf_T.js} +10 -3
- package/dist/assets/{useWorkflowActivate-BwfqoMi7.js → useWorkflowActivate-DZbVs_iD.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/vite.config.mts +2 -0
- package/dist/assets/CollectionParameter-BPA801P5.js +0 -4
- package/dist/assets/N8nDataTableServer-BHILYG__.js +0 -3203
- package/dist/assets/NodeCreation-gPsMJZWq.js +0 -440
- package/dist/assets/aiTemplatesStarterCollection.store-BsCe0bSk.js +0 -795
- package/dist/assets/useProjectPages-DYrfMJmY.js +0 -21
|
@@ -1,795 +0,0 @@
|
|
|
1
|
-
import { a3 as defineStore, ah as useFoldersStore, a5 as useWorkflowsStore, d3 as usePostHog, v as useSettingsStore, aR as useLocalStorage, x as computed, fa as TEMPLATE_ONBOARDING_EXPERIMENT, c as useI18n, aA as useTelemetry, a8 as STORES } from "./index-0vi2zwei.js";
|
|
2
|
-
const AGENT_WITH_MEMORY = {
|
|
3
|
-
meta: {
|
|
4
|
-
templateId: "035_template_onboarding-agent_with_memory"
|
|
5
|
-
},
|
|
6
|
-
name: "1. Agent with memory",
|
|
7
|
-
nodes: [
|
|
8
|
-
{
|
|
9
|
-
id: "536fa635-c0c8-4fd1-84ef-d19585be64cf",
|
|
10
|
-
name: "When chat message received",
|
|
11
|
-
webhookId: "9baee3d2-b9cb-4333-b4d5-3b07db8da9b2",
|
|
12
|
-
type: "@n8n/n8n-nodes-langchain.chatTrigger",
|
|
13
|
-
typeVersion: 1.1,
|
|
14
|
-
position: [0, 0],
|
|
15
|
-
parameters: {
|
|
16
|
-
options: {}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
id: "1393095b-ec84-4514-b481-432609d1a5c5",
|
|
21
|
-
name: "AI Agent",
|
|
22
|
-
type: "@n8n/n8n-nodes-langchain.agent",
|
|
23
|
-
typeVersion: 2.1,
|
|
24
|
-
position: [208, 0],
|
|
25
|
-
parameters: {
|
|
26
|
-
options: {
|
|
27
|
-
systemMessage: "=You are a helpful assistant\n\nTodays date: {{ $now }}"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
id: "658eb127-5a9d-4404-9270-72ef1da36ea3",
|
|
33
|
-
name: "Sticky Note",
|
|
34
|
-
type: "n8n-nodes-base.stickyNote",
|
|
35
|
-
typeVersion: 1,
|
|
36
|
-
position: [-464, -32],
|
|
37
|
-
parameters: {
|
|
38
|
-
content: `### Readme
|
|
39
|
-
Chat with an AI agent that remembers your previous messages during a conversation.
|
|
40
|
-
|
|
41
|
-
**Quick Start**
|
|
42
|
-
1. Open the **Model** node to claim your free API credits and connect to OpenAI.
|
|
43
|
-
2. Click the **Open chat** button to start talking to the agent. Provide it with some information to remember, like your name.
|
|
44
|
-
3. Ask a follow-up question about the information you shared: "What's my name?"
|
|
45
|
-
|
|
46
|
-
---
|
|
47
|
-
|
|
48
|
-
**Learn More**
|
|
49
|
-
- [AI Agent node documentation](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/)
|
|
50
|
-
- [Simple Memory node documentation](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorybufferwindow/)`,
|
|
51
|
-
height: 396,
|
|
52
|
-
width: 392,
|
|
53
|
-
color: 4
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
id: "186173c3-d043-4485-b939-9fca3d1e906f",
|
|
58
|
-
name: "Model",
|
|
59
|
-
type: "@n8n/n8n-nodes-langchain.lmChatOpenAi",
|
|
60
|
-
typeVersion: 1.2,
|
|
61
|
-
position: [160, 240],
|
|
62
|
-
parameters: {
|
|
63
|
-
model: {
|
|
64
|
-
__rl: true,
|
|
65
|
-
mode: "list",
|
|
66
|
-
value: "gpt-4.1-mini"
|
|
67
|
-
},
|
|
68
|
-
options: {}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: "dadaaa19-8378-4e23-9573-f9d3ff52c884",
|
|
73
|
-
name: "Memory",
|
|
74
|
-
type: "@n8n/n8n-nodes-langchain.memoryBufferWindow",
|
|
75
|
-
typeVersion: 1.3,
|
|
76
|
-
position: [352, 240],
|
|
77
|
-
parameters: {}
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
connections: {
|
|
81
|
-
"When chat message received": {
|
|
82
|
-
main: [
|
|
83
|
-
[
|
|
84
|
-
{
|
|
85
|
-
node: "AI Agent",
|
|
86
|
-
type: "main",
|
|
87
|
-
index: 0
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
]
|
|
91
|
-
},
|
|
92
|
-
Model: {
|
|
93
|
-
ai_languageModel: [
|
|
94
|
-
[
|
|
95
|
-
{
|
|
96
|
-
node: "AI Agent",
|
|
97
|
-
type: "ai_languageModel",
|
|
98
|
-
index: 0
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
Memory: {
|
|
104
|
-
ai_memory: [
|
|
105
|
-
[
|
|
106
|
-
{
|
|
107
|
-
node: "AI Agent",
|
|
108
|
-
type: "ai_memory",
|
|
109
|
-
index: 0
|
|
110
|
-
}
|
|
111
|
-
]
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
// parentFolderId: newFolder.id,
|
|
116
|
-
};
|
|
117
|
-
const AGENT_WITH_TOOLS = {
|
|
118
|
-
meta: {
|
|
119
|
-
templateId: "035_template_onboarding-agent_with_tools"
|
|
120
|
-
},
|
|
121
|
-
name: "2. Agent with tools",
|
|
122
|
-
nodes: [
|
|
123
|
-
{
|
|
124
|
-
parameters: {
|
|
125
|
-
options: {}
|
|
126
|
-
},
|
|
127
|
-
type: "@n8n/n8n-nodes-langchain.chatTrigger",
|
|
128
|
-
typeVersion: 1.1,
|
|
129
|
-
position: [-48, -16],
|
|
130
|
-
id: "f6c9fe3c-cbde-4514-9fcf-9d618526965c",
|
|
131
|
-
name: "When chat message received",
|
|
132
|
-
webhookId: "1bf95244-fbc3-4210-9420-f34a45c4f5f5"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
parameters: {
|
|
136
|
-
options: {}
|
|
137
|
-
},
|
|
138
|
-
type: "@n8n/n8n-nodes-langchain.agent",
|
|
139
|
-
typeVersion: 2.1,
|
|
140
|
-
position: [208, -16],
|
|
141
|
-
id: "5db1043f-de79-425a-a66b-8288c3aaa7df",
|
|
142
|
-
name: "AI Agent"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
parameters: {},
|
|
146
|
-
type: "@n8n/n8n-nodes-langchain.memoryBufferWindow",
|
|
147
|
-
typeVersion: 1.3,
|
|
148
|
-
position: [208, 288],
|
|
149
|
-
id: "29f1ba2f-7511-4771-958a-be6463a64d83",
|
|
150
|
-
name: "Simple Memory"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
parameters: {
|
|
154
|
-
operation: "update",
|
|
155
|
-
documentId: {
|
|
156
|
-
__rl: true,
|
|
157
|
-
value: "1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8",
|
|
158
|
-
mode: "list",
|
|
159
|
-
cachedResultName: "Demo",
|
|
160
|
-
cachedResultUrl: "https://docs.google.com/spreadsheets/d/1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8/edit?usp=drivesdk"
|
|
161
|
-
},
|
|
162
|
-
sheetName: {
|
|
163
|
-
__rl: true,
|
|
164
|
-
value: "gid=0",
|
|
165
|
-
mode: "list",
|
|
166
|
-
cachedResultName: "Sheet1",
|
|
167
|
-
cachedResultUrl: "https://docs.google.com/spreadsheets/d/1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8/edit#gid=0"
|
|
168
|
-
},
|
|
169
|
-
columns: {
|
|
170
|
-
mappingMode: "defineBelow",
|
|
171
|
-
value: {
|
|
172
|
-
ID: "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('ID__using_to_match_', ``, 'string') }}",
|
|
173
|
-
Name: "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Name', ``, 'string') }}"
|
|
174
|
-
},
|
|
175
|
-
matchingColumns: ["ID"],
|
|
176
|
-
schema: [
|
|
177
|
-
{
|
|
178
|
-
id: "ID",
|
|
179
|
-
displayName: "ID",
|
|
180
|
-
required: false,
|
|
181
|
-
defaultMatch: false,
|
|
182
|
-
display: true,
|
|
183
|
-
type: "string",
|
|
184
|
-
canBeUsedToMatch: true,
|
|
185
|
-
removed: false
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
id: "Name",
|
|
189
|
-
displayName: "Name",
|
|
190
|
-
required: false,
|
|
191
|
-
defaultMatch: false,
|
|
192
|
-
display: true,
|
|
193
|
-
type: "string",
|
|
194
|
-
canBeUsedToMatch: true,
|
|
195
|
-
removed: false
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
id: "row_number",
|
|
199
|
-
displayName: "row_number",
|
|
200
|
-
required: false,
|
|
201
|
-
defaultMatch: false,
|
|
202
|
-
display: true,
|
|
203
|
-
type: "number",
|
|
204
|
-
canBeUsedToMatch: true,
|
|
205
|
-
readOnly: true,
|
|
206
|
-
removed: true
|
|
207
|
-
}
|
|
208
|
-
],
|
|
209
|
-
attemptToConvertTypes: false,
|
|
210
|
-
convertFieldsToString: false
|
|
211
|
-
},
|
|
212
|
-
options: {}
|
|
213
|
-
},
|
|
214
|
-
type: "n8n-nodes-base.googleSheetsTool",
|
|
215
|
-
typeVersion: 4.6,
|
|
216
|
-
position: [656, 640],
|
|
217
|
-
id: "24d82ca2-b666-415b-9020-f88cf3e095e6",
|
|
218
|
-
name: "Update",
|
|
219
|
-
credentials: {}
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
parameters: {
|
|
223
|
-
operation: "append",
|
|
224
|
-
documentId: {
|
|
225
|
-
__rl: true,
|
|
226
|
-
value: "1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8",
|
|
227
|
-
mode: "list",
|
|
228
|
-
cachedResultName: "Demo",
|
|
229
|
-
cachedResultUrl: "https://docs.google.com/spreadsheets/d/1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8/edit?usp=drivesdk"
|
|
230
|
-
},
|
|
231
|
-
sheetName: {
|
|
232
|
-
__rl: true,
|
|
233
|
-
value: "gid=0",
|
|
234
|
-
mode: "list",
|
|
235
|
-
cachedResultName: "Sheet1",
|
|
236
|
-
cachedResultUrl: "https://docs.google.com/spreadsheets/d/1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8/edit#gid=0"
|
|
237
|
-
},
|
|
238
|
-
columns: {
|
|
239
|
-
mappingMode: "defineBelow",
|
|
240
|
-
value: {
|
|
241
|
-
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
|
|
242
|
-
ID: "={{ `${Math.random()}`.replace('0.', '') }}",
|
|
243
|
-
Name: "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Name', ``, 'string') }}"
|
|
244
|
-
},
|
|
245
|
-
matchingColumns: ["ID"],
|
|
246
|
-
schema: [
|
|
247
|
-
{
|
|
248
|
-
id: "ID",
|
|
249
|
-
displayName: "ID",
|
|
250
|
-
required: false,
|
|
251
|
-
defaultMatch: false,
|
|
252
|
-
display: true,
|
|
253
|
-
type: "string",
|
|
254
|
-
canBeUsedToMatch: true,
|
|
255
|
-
removed: false
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
id: "Name",
|
|
259
|
-
displayName: "Name",
|
|
260
|
-
required: false,
|
|
261
|
-
defaultMatch: false,
|
|
262
|
-
display: true,
|
|
263
|
-
type: "string",
|
|
264
|
-
canBeUsedToMatch: true,
|
|
265
|
-
removed: false
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
id: "row_number",
|
|
269
|
-
displayName: "row_number",
|
|
270
|
-
required: false,
|
|
271
|
-
defaultMatch: false,
|
|
272
|
-
display: true,
|
|
273
|
-
type: "number",
|
|
274
|
-
canBeUsedToMatch: true,
|
|
275
|
-
readOnly: true,
|
|
276
|
-
removed: true
|
|
277
|
-
}
|
|
278
|
-
],
|
|
279
|
-
attemptToConvertTypes: false,
|
|
280
|
-
convertFieldsToString: false
|
|
281
|
-
},
|
|
282
|
-
options: {}
|
|
283
|
-
},
|
|
284
|
-
type: "n8n-nodes-base.googleSheetsTool",
|
|
285
|
-
typeVersion: 4.6,
|
|
286
|
-
position: [464, 640],
|
|
287
|
-
id: "a0554e4a-8a7a-480c-a9e6-5f9746252cdb",
|
|
288
|
-
name: "Create",
|
|
289
|
-
credentials: {}
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
parameters: {
|
|
293
|
-
documentId: {
|
|
294
|
-
__rl: true,
|
|
295
|
-
value: "1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8",
|
|
296
|
-
mode: "list",
|
|
297
|
-
cachedResultName: "Demo",
|
|
298
|
-
cachedResultUrl: "https://docs.google.com/spreadsheets/d/1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8/edit?usp=drivesdk"
|
|
299
|
-
},
|
|
300
|
-
sheetName: {
|
|
301
|
-
__rl: true,
|
|
302
|
-
value: "gid=0",
|
|
303
|
-
mode: "list",
|
|
304
|
-
cachedResultName: "Sheet1",
|
|
305
|
-
cachedResultUrl: "https://docs.google.com/spreadsheets/d/1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8/edit#gid=0"
|
|
306
|
-
},
|
|
307
|
-
options: {}
|
|
308
|
-
},
|
|
309
|
-
type: "n8n-nodes-base.googleSheetsTool",
|
|
310
|
-
typeVersion: 4.6,
|
|
311
|
-
position: [480, 288],
|
|
312
|
-
id: "ef476f0d-bdfe-4f41-8690-fb270ed82469",
|
|
313
|
-
name: "Read",
|
|
314
|
-
credentials: {}
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
parameters: {
|
|
318
|
-
operation: "delete",
|
|
319
|
-
documentId: {
|
|
320
|
-
__rl: true,
|
|
321
|
-
value: "1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8",
|
|
322
|
-
mode: "list",
|
|
323
|
-
cachedResultName: "Demo",
|
|
324
|
-
cachedResultUrl: "https://docs.google.com/spreadsheets/d/1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8/edit?usp=drivesdk"
|
|
325
|
-
},
|
|
326
|
-
sheetName: {
|
|
327
|
-
__rl: true,
|
|
328
|
-
value: "gid=0",
|
|
329
|
-
mode: "list",
|
|
330
|
-
cachedResultName: "Sheet1",
|
|
331
|
-
cachedResultUrl: "https://docs.google.com/spreadsheets/d/1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8/edit#gid=0"
|
|
332
|
-
},
|
|
333
|
-
startIndex: "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Start_Row_Number', ``, 'number') }}",
|
|
334
|
-
numberToDelete: "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Number_of_Rows_to_Delete', ``, 'number') }}"
|
|
335
|
-
},
|
|
336
|
-
type: "n8n-nodes-base.googleSheetsTool",
|
|
337
|
-
typeVersion: 4.6,
|
|
338
|
-
position: [864, 640],
|
|
339
|
-
id: "d0cca35f-9e74-4935-92e2-9b5e37f1c7f4",
|
|
340
|
-
name: "Delete",
|
|
341
|
-
credentials: {}
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
parameters: {
|
|
345
|
-
content: "### Readme\nThis agent uses tools to interact with a simple spreadsheet of orders.\n\n**Quick Start**\n1. Copy this [spreadsheet](https://docs.google.com/spreadsheets/d/1vbFb2dhys1VafAmX-hRtiyrEDgNKj_xaAA6ZmH09EL8/edit?usp=sharing) into your Google Drive.\n2. Open the **Read** tool and connect your Google account by creating a credential and selecting the spreadsheet.\n3. Ask the Agent to calculate the total in the amount column, you should see it use the **Read** tool followed by the **Calculator**.\n4. Try some other questions and see how the agent responds.\n5. Use what you've learned to connect the other tools in the **Next steps** section.\n\n---\n\n**Learn More**\n- [Google sheet tool documentation](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlesheets/?utm_source=n8n_app&utm_medium=node_settings_modal-credential_link&utm_campaign=n8n-nodes-base.googleSheetsTool)\n- [Calculator tool documentation](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolcalculator/)",
|
|
346
|
-
height: 460,
|
|
347
|
-
width: 440,
|
|
348
|
-
color: 4
|
|
349
|
-
},
|
|
350
|
-
type: "n8n-nodes-base.stickyNote",
|
|
351
|
-
position: [-576, -32],
|
|
352
|
-
typeVersion: 1,
|
|
353
|
-
id: "e57c1fe3-3ef9-447c-81e3-bdf8717706b9",
|
|
354
|
-
name: "Sticky Note"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
parameters: {},
|
|
358
|
-
type: "@n8n/n8n-nodes-langchain.toolCalculator",
|
|
359
|
-
typeVersion: 1,
|
|
360
|
-
position: [624, 288],
|
|
361
|
-
id: "49030d8b-0818-455b-a472-356b620566c4",
|
|
362
|
-
name: "Calculator"
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
parameters: {
|
|
366
|
-
model: {
|
|
367
|
-
__rl: true,
|
|
368
|
-
mode: "list",
|
|
369
|
-
value: "gpt-4.1-mini"
|
|
370
|
-
},
|
|
371
|
-
options: {}
|
|
372
|
-
},
|
|
373
|
-
type: "@n8n/n8n-nodes-langchain.lmChatOpenAi",
|
|
374
|
-
typeVersion: 1.2,
|
|
375
|
-
position: [48, 288],
|
|
376
|
-
id: "67c78b12-b088-41b4-aeb4-70a7f056c9a7",
|
|
377
|
-
name: "Model",
|
|
378
|
-
credentials: {}
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
parameters: {
|
|
382
|
-
content: "## 🛠️ Tools",
|
|
383
|
-
height: 224,
|
|
384
|
-
width: 368,
|
|
385
|
-
color: 7
|
|
386
|
-
},
|
|
387
|
-
type: "n8n-nodes-base.stickyNote",
|
|
388
|
-
position: [400, 224],
|
|
389
|
-
typeVersion: 1,
|
|
390
|
-
id: "14c03c2d-e0ea-4958-94c1-3598e5c273d9",
|
|
391
|
-
name: "Sticky Note1"
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
parameters: {
|
|
395
|
-
content: "## 🛠️ Next steps\n\nConnect these tools to perform create, read and update actions on your order list.",
|
|
396
|
-
height: 320,
|
|
397
|
-
width: 592,
|
|
398
|
-
color: 7
|
|
399
|
-
},
|
|
400
|
-
type: "n8n-nodes-base.stickyNote",
|
|
401
|
-
position: [400, 496],
|
|
402
|
-
typeVersion: 1,
|
|
403
|
-
id: "a683cb43-e740-497e-bb01-edebfe39a832",
|
|
404
|
-
name: "Sticky Note2"
|
|
405
|
-
}
|
|
406
|
-
],
|
|
407
|
-
connections: {
|
|
408
|
-
"When chat message received": {
|
|
409
|
-
main: [
|
|
410
|
-
[
|
|
411
|
-
{
|
|
412
|
-
node: "AI Agent",
|
|
413
|
-
type: "main",
|
|
414
|
-
index: 0
|
|
415
|
-
}
|
|
416
|
-
]
|
|
417
|
-
]
|
|
418
|
-
},
|
|
419
|
-
"Simple Memory": {
|
|
420
|
-
ai_memory: [
|
|
421
|
-
[
|
|
422
|
-
{
|
|
423
|
-
node: "AI Agent",
|
|
424
|
-
type: "ai_memory",
|
|
425
|
-
index: 0
|
|
426
|
-
}
|
|
427
|
-
]
|
|
428
|
-
]
|
|
429
|
-
},
|
|
430
|
-
Update: {
|
|
431
|
-
ai_tool: [[]]
|
|
432
|
-
},
|
|
433
|
-
Create: {
|
|
434
|
-
ai_tool: [[]]
|
|
435
|
-
},
|
|
436
|
-
Read: {
|
|
437
|
-
ai_tool: [
|
|
438
|
-
[
|
|
439
|
-
{
|
|
440
|
-
node: "AI Agent",
|
|
441
|
-
type: "ai_tool",
|
|
442
|
-
index: 0
|
|
443
|
-
}
|
|
444
|
-
]
|
|
445
|
-
]
|
|
446
|
-
},
|
|
447
|
-
Delete: {
|
|
448
|
-
ai_tool: [[]]
|
|
449
|
-
},
|
|
450
|
-
Calculator: {
|
|
451
|
-
ai_tool: [
|
|
452
|
-
[
|
|
453
|
-
{
|
|
454
|
-
node: "AI Agent",
|
|
455
|
-
type: "ai_tool",
|
|
456
|
-
index: 0
|
|
457
|
-
}
|
|
458
|
-
]
|
|
459
|
-
]
|
|
460
|
-
},
|
|
461
|
-
Model: {
|
|
462
|
-
ai_languageModel: [
|
|
463
|
-
[
|
|
464
|
-
{
|
|
465
|
-
node: "AI Agent",
|
|
466
|
-
type: "ai_languageModel",
|
|
467
|
-
index: 0
|
|
468
|
-
}
|
|
469
|
-
]
|
|
470
|
-
]
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
};
|
|
474
|
-
const AGENT_WITH_KNOWLEDGE = {
|
|
475
|
-
meta: {
|
|
476
|
-
templateId: "035_template_onboarding-agent_with_knowledge"
|
|
477
|
-
},
|
|
478
|
-
name: "3. Agent with knowledge",
|
|
479
|
-
nodes: [
|
|
480
|
-
{
|
|
481
|
-
parameters: {
|
|
482
|
-
formTitle: "Upload your data to test RAG",
|
|
483
|
-
formFields: {
|
|
484
|
-
values: [
|
|
485
|
-
{
|
|
486
|
-
fieldLabel: "Upload your file(s)",
|
|
487
|
-
fieldType: "file",
|
|
488
|
-
acceptFileTypes: ".pdf, .csv",
|
|
489
|
-
requiredField: true
|
|
490
|
-
}
|
|
491
|
-
]
|
|
492
|
-
},
|
|
493
|
-
options: {}
|
|
494
|
-
},
|
|
495
|
-
type: "n8n-nodes-base.formTrigger",
|
|
496
|
-
typeVersion: 2.2,
|
|
497
|
-
position: [-368, -304],
|
|
498
|
-
id: "e45eaedc-7ed9-4fd6-b79b-82a155734bce",
|
|
499
|
-
name: "Upload your file here",
|
|
500
|
-
webhookId: "82848bc4-5ea2-4e5a-8bb6-3c09b94a8c5d"
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
parameters: {
|
|
504
|
-
options: {}
|
|
505
|
-
},
|
|
506
|
-
type: "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
|
|
507
|
-
typeVersion: 1.2,
|
|
508
|
-
position: [288, 176],
|
|
509
|
-
id: "f9f1745a-9c6d-42cf-8f8b-19a1c4c91b77",
|
|
510
|
-
name: "Embeddings OpenAI"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
parameters: {
|
|
514
|
-
dataType: "binary",
|
|
515
|
-
options: {}
|
|
516
|
-
},
|
|
517
|
-
type: "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
|
|
518
|
-
typeVersion: 1.1,
|
|
519
|
-
position: [80, -144],
|
|
520
|
-
id: "56da285f-9ad9-4cb4-a7d4-fb0f035e9071",
|
|
521
|
-
name: "Default Data Loader"
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
parameters: {
|
|
525
|
-
content: "### Readme\nLoad your data into a vector database with the 📚 **Load Data** flow, and then use your data as chat context with the 🐕 **Retriever** flow.\n\n**Quick start**\n1. Click on the `Execute Workflow` button to run the 📚 **Load Data** flow.\n2. Click on `Open Chat` button to run the 🐕 **Retriever** flow. Then ask a question about content from your document(s)\n\n\nFor more info, check [our docs on RAG in n8n](https://docs.n8n.io/advanced-ai/rag-in-n8n/).",
|
|
526
|
-
height: 300,
|
|
527
|
-
width: 440,
|
|
528
|
-
color: 4
|
|
529
|
-
},
|
|
530
|
-
type: "n8n-nodes-base.stickyNote",
|
|
531
|
-
position: [-896, -368],
|
|
532
|
-
typeVersion: 1,
|
|
533
|
-
id: "72cb28c7-572b-41ce-ba4c-2dd0dc80acb4",
|
|
534
|
-
name: "Sticky Note"
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
parameters: {
|
|
538
|
-
content: "### 📚 Load Data Flow",
|
|
539
|
-
height: 460,
|
|
540
|
-
width: 700,
|
|
541
|
-
color: 7
|
|
542
|
-
},
|
|
543
|
-
type: "n8n-nodes-base.stickyNote",
|
|
544
|
-
position: [-416, -368],
|
|
545
|
-
typeVersion: 1,
|
|
546
|
-
id: "075a4895-8b5f-487b-b7ff-8766aa1d1450",
|
|
547
|
-
name: "Sticky Note1"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
parameters: {
|
|
551
|
-
mode: "insert",
|
|
552
|
-
memoryKey: {
|
|
553
|
-
__rl: true,
|
|
554
|
-
value: "vector_store_key",
|
|
555
|
-
mode: "list",
|
|
556
|
-
cachedResultName: "vector_store_key"
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
type: "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
|
|
560
|
-
typeVersion: 1.2,
|
|
561
|
-
position: [-176, -304],
|
|
562
|
-
id: "d24732cb-b6b4-4eb6-ad47-1f290f0da13d",
|
|
563
|
-
name: "Insert Data to Store"
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
parameters: {
|
|
567
|
-
mode: "retrieve-as-tool",
|
|
568
|
-
toolName: "knowledge_base",
|
|
569
|
-
toolDescription: "Use this knowledge base to answer questions from the user",
|
|
570
|
-
memoryKey: {
|
|
571
|
-
__rl: true,
|
|
572
|
-
mode: "list",
|
|
573
|
-
value: "vector_store_key"
|
|
574
|
-
}
|
|
575
|
-
},
|
|
576
|
-
type: "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
|
|
577
|
-
typeVersion: 1.2,
|
|
578
|
-
position: [704, -96],
|
|
579
|
-
id: "8915e9b6-2a6c-472c-b043-78c1d77888ae",
|
|
580
|
-
name: "Query Data Tool"
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
parameters: {
|
|
584
|
-
options: {}
|
|
585
|
-
},
|
|
586
|
-
type: "@n8n/n8n-nodes-langchain.agent",
|
|
587
|
-
typeVersion: 2,
|
|
588
|
-
position: [704, -320],
|
|
589
|
-
id: "a2baaa1d-beee-40a2-8b5f-757b2b1aaca9",
|
|
590
|
-
name: "AI Agent"
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
parameters: {
|
|
594
|
-
options: {}
|
|
595
|
-
},
|
|
596
|
-
type: "@n8n/n8n-nodes-langchain.chatTrigger",
|
|
597
|
-
typeVersion: 1.1,
|
|
598
|
-
position: [480, -320],
|
|
599
|
-
id: "c0a831dd-362c-4352-9409-bfe8c2e6f5ab",
|
|
600
|
-
name: "When chat message received",
|
|
601
|
-
webhookId: "4091fa09-fb9a-4039-9411-7104d213f601"
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
parameters: {
|
|
605
|
-
model: {
|
|
606
|
-
__rl: true,
|
|
607
|
-
mode: "list",
|
|
608
|
-
value: "gpt-4o-mini"
|
|
609
|
-
},
|
|
610
|
-
options: {}
|
|
611
|
-
},
|
|
612
|
-
type: "@n8n/n8n-nodes-langchain.lmChatOpenAi",
|
|
613
|
-
typeVersion: 1.2,
|
|
614
|
-
position: [480, -96],
|
|
615
|
-
id: "2ba103b5-7783-49a7-9693-a156383ca697",
|
|
616
|
-
name: "OpenAI Chat Model"
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
parameters: {
|
|
620
|
-
content: "### 🐕 2. Retriever Flow",
|
|
621
|
-
height: 460,
|
|
622
|
-
width: 680,
|
|
623
|
-
color: 7
|
|
624
|
-
},
|
|
625
|
-
type: "n8n-nodes-base.stickyNote",
|
|
626
|
-
position: [368, -368],
|
|
627
|
-
typeVersion: 1,
|
|
628
|
-
id: "729f9492-3811-43d8-8230-d9ad78d910f7",
|
|
629
|
-
name: "Sticky Note2"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
parameters: {
|
|
633
|
-
content: "### Embeddings\n\nThe Insert and Retrieve operation use the same embedding node.\n\nThis is to ensure that they are using the **exact same embeddings and settings**.\n\nDifferent embeddings might not work at all, or have unintended consequences.\n",
|
|
634
|
-
height: 240,
|
|
635
|
-
width: 320,
|
|
636
|
-
color: 4
|
|
637
|
-
},
|
|
638
|
-
type: "n8n-nodes-base.stickyNote",
|
|
639
|
-
position: [432, 144],
|
|
640
|
-
typeVersion: 1,
|
|
641
|
-
id: "20a6b946-5588-4df2-b1f6-952fc82d166c",
|
|
642
|
-
name: "Sticky Note3"
|
|
643
|
-
}
|
|
644
|
-
],
|
|
645
|
-
connections: {
|
|
646
|
-
"Upload your file here": {
|
|
647
|
-
main: [
|
|
648
|
-
[
|
|
649
|
-
{
|
|
650
|
-
node: "Insert Data to Store",
|
|
651
|
-
type: "main",
|
|
652
|
-
index: 0
|
|
653
|
-
}
|
|
654
|
-
]
|
|
655
|
-
]
|
|
656
|
-
},
|
|
657
|
-
"Embeddings OpenAI": {
|
|
658
|
-
ai_embedding: [
|
|
659
|
-
[
|
|
660
|
-
{
|
|
661
|
-
node: "Insert Data to Store",
|
|
662
|
-
type: "ai_embedding",
|
|
663
|
-
index: 0
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
node: "Query Data Tool",
|
|
667
|
-
type: "ai_embedding",
|
|
668
|
-
index: 0
|
|
669
|
-
}
|
|
670
|
-
]
|
|
671
|
-
]
|
|
672
|
-
},
|
|
673
|
-
"Default Data Loader": {
|
|
674
|
-
ai_document: [
|
|
675
|
-
[
|
|
676
|
-
{
|
|
677
|
-
node: "Insert Data to Store",
|
|
678
|
-
type: "ai_document",
|
|
679
|
-
index: 0
|
|
680
|
-
}
|
|
681
|
-
]
|
|
682
|
-
]
|
|
683
|
-
},
|
|
684
|
-
"Query Data Tool": {
|
|
685
|
-
ai_tool: [
|
|
686
|
-
[
|
|
687
|
-
{
|
|
688
|
-
node: "AI Agent",
|
|
689
|
-
type: "ai_tool",
|
|
690
|
-
index: 0
|
|
691
|
-
}
|
|
692
|
-
]
|
|
693
|
-
]
|
|
694
|
-
},
|
|
695
|
-
"When chat message received": {
|
|
696
|
-
main: [
|
|
697
|
-
[
|
|
698
|
-
{
|
|
699
|
-
node: "AI Agent",
|
|
700
|
-
type: "main",
|
|
701
|
-
index: 0
|
|
702
|
-
}
|
|
703
|
-
]
|
|
704
|
-
]
|
|
705
|
-
},
|
|
706
|
-
"OpenAI Chat Model": {
|
|
707
|
-
ai_languageModel: [
|
|
708
|
-
[
|
|
709
|
-
{
|
|
710
|
-
node: "AI Agent",
|
|
711
|
-
type: "ai_languageModel",
|
|
712
|
-
index: 0
|
|
713
|
-
}
|
|
714
|
-
]
|
|
715
|
-
]
|
|
716
|
-
}
|
|
717
|
-
},
|
|
718
|
-
pinData: {}
|
|
719
|
-
};
|
|
720
|
-
const LOCAL_STORAGE_SETTING_KEY = "N8N_AI_TEMPLATES_STARTER_COLLECTION_CALL_OUT_DISMISSED";
|
|
721
|
-
const useAITemplatesStarterCollectionStore = defineStore(
|
|
722
|
-
STORES.AI_TEMPLATES_STARTER_COLLECTION,
|
|
723
|
-
() => {
|
|
724
|
-
const telemetry = useTelemetry();
|
|
725
|
-
const i18n = useI18n();
|
|
726
|
-
const foldersStore = useFoldersStore();
|
|
727
|
-
const workflowsStore = useWorkflowsStore();
|
|
728
|
-
const posthogStore = usePostHog();
|
|
729
|
-
const settingsStore = useSettingsStore();
|
|
730
|
-
const calloutDismissedRef = useLocalStorage(LOCAL_STORAGE_SETTING_KEY, false);
|
|
731
|
-
const calloutDismissed = computed(() => calloutDismissedRef.value);
|
|
732
|
-
const isFeatureEnabled = computed(() => {
|
|
733
|
-
return settingsStore.isCloudDeployment && posthogStore.getVariant(TEMPLATE_ONBOARDING_EXPERIMENT.name) === TEMPLATE_ONBOARDING_EXPERIMENT.variantStarterPack;
|
|
734
|
-
});
|
|
735
|
-
const dismissCallout = () => {
|
|
736
|
-
calloutDismissedRef.value = true;
|
|
737
|
-
};
|
|
738
|
-
const createStarterWorkflows = async (projectId, parentFolderId) => {
|
|
739
|
-
const collectionFolder = await foldersStore.createFolder(
|
|
740
|
-
i18n.baseText("workflows.ai.starter.collection.folder.name"),
|
|
741
|
-
projectId,
|
|
742
|
-
parentFolderId
|
|
743
|
-
);
|
|
744
|
-
const agentWitheMemory = {
|
|
745
|
-
...AGENT_WITH_MEMORY,
|
|
746
|
-
parentFolderId: collectionFolder.id
|
|
747
|
-
};
|
|
748
|
-
const agentWithTools = {
|
|
749
|
-
...AGENT_WITH_TOOLS,
|
|
750
|
-
parentFolderId: collectionFolder.id
|
|
751
|
-
};
|
|
752
|
-
const agentWithKnowledge = {
|
|
753
|
-
...AGENT_WITH_KNOWLEDGE,
|
|
754
|
-
parentFolderId: collectionFolder.id
|
|
755
|
-
};
|
|
756
|
-
await workflowsStore.createNewWorkflow(agentWithKnowledge);
|
|
757
|
-
await workflowsStore.createNewWorkflow(agentWithTools);
|
|
758
|
-
await workflowsStore.createNewWorkflow(agentWitheMemory);
|
|
759
|
-
dismissCallout();
|
|
760
|
-
return collectionFolder;
|
|
761
|
-
};
|
|
762
|
-
const trackUserCreatedStarterCollection = (source) => {
|
|
763
|
-
telemetry.track("User created AI templates starter collection", {
|
|
764
|
-
source
|
|
765
|
-
});
|
|
766
|
-
};
|
|
767
|
-
const trackUserDismissedCallout = () => {
|
|
768
|
-
telemetry.track("User dismissed AI templates starter collection callout");
|
|
769
|
-
};
|
|
770
|
-
const trackUserOpenedWorkflow = (template) => {
|
|
771
|
-
telemetry.track("User opened AI template workflow", {
|
|
772
|
-
template
|
|
773
|
-
});
|
|
774
|
-
};
|
|
775
|
-
const trackUserExecutedWorkflow = (template, status) => {
|
|
776
|
-
telemetry.track("User executed AI template", {
|
|
777
|
-
template,
|
|
778
|
-
status
|
|
779
|
-
});
|
|
780
|
-
};
|
|
781
|
-
return {
|
|
782
|
-
isFeatureEnabled,
|
|
783
|
-
calloutDismissed,
|
|
784
|
-
dismissCallout,
|
|
785
|
-
createStarterWorkflows,
|
|
786
|
-
trackUserCreatedStarterCollection,
|
|
787
|
-
trackUserDismissedCallout,
|
|
788
|
-
trackUserOpenedWorkflow,
|
|
789
|
-
trackUserExecutedWorkflow
|
|
790
|
-
};
|
|
791
|
-
}
|
|
792
|
-
);
|
|
793
|
-
export {
|
|
794
|
-
useAITemplatesStarterCollectionStore as u
|
|
795
|
-
};
|