n8n-editor-ui 1.103.0 → 1.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ActionDropdown-oe2q-18e.js → ActionDropdown-Ct6XJ0cl.js} +1 -1
- package/dist/assets/{AnimatedSpinner-DNQK2Lvb.js → AnimatedSpinner-CIyQ3zKd.js} +1 -1
- package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-CTPMm7Da.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-xv6FYiyR.js} +1 -1
- package/dist/assets/{AuthView-BLYDBurX.js → AuthView-dJdngoqx.js} +2 -2
- package/dist/assets/{ChangePasswordView-D_oe3bys.js → ChangePasswordView-C74U84q5.js} +3 -3
- package/dist/assets/CollectionParameter-DCn5Jtcj.js +4 -0
- package/dist/assets/ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-CkASni2S.js +44 -0
- package/dist/assets/{CredentialsView-yjXzQeha.js → CredentialsView-jouDB3H1.js} +8 -8
- package/dist/assets/{DemoFooter-CLoho_f5.js → DemoFooter-CHlbEpB-.js} +9 -8
- package/dist/assets/{EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-Dtt1q_gN.js → EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-CbDihlsO.js} +1 -1
- package/dist/assets/{EntityNotFound-DKLj80gn.js → EntityNotFound-Dtqj9thX.js} +1 -1
- package/dist/assets/{EntityUnAuthorised-BUd46dmn.js → EntityUnAuthorised-BBsbc6du.js} +1 -1
- package/dist/assets/{ErrorView-DOjK08aR.js → ErrorView-BN4Jm32q.js} +1 -1
- package/dist/assets/{EvaluationsRootView-Cms0XlYE.js → EvaluationsRootView-B70WfmnQ.js} +5 -3
- package/dist/assets/{EvaluationsView-6l_Invxt.css → EvaluationsView-BTyYfInB.css} +6 -6
- package/dist/assets/{EvaluationsView-X9pjkssi.js → EvaluationsView-DQd7op3j.js} +53 -40
- package/dist/assets/{ExecutionsTime-DkME6I3E.css → ExecutionsTime-Bo7IOE5K.css} +6 -6
- package/dist/assets/{ExecutionsTime.vue_vue_type_script_setup_true_lang-CQDOSq4d.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-C_2brmCr.js} +15 -12
- package/dist/assets/{ExecutionsView-NLnln1YQ.js → ExecutionsView-CKPZTnZV.js} +21 -18
- package/dist/assets/{FileSaver.min-BoHgd5iv.js → FileSaver.min-BvxTURBB.js} +1 -1
- package/dist/assets/{FixedCollectionParameter-BfKt_vOb.js → FixedCollectionParameter-CA-CigeR.js} +1 -1
- package/dist/assets/{ForgotMyPasswordView-OP-Zoaqi.js → ForgotMyPasswordView-YyVmo-nw.js} +3 -3
- package/dist/assets/{InfoAccordion-KgxR9XUm.js → InfoAccordion-BNmUe2V9.js} +1 -1
- package/dist/assets/{InsightsChartAverageRuntime-COSI3_o5.js → InsightsChartAverageRuntime-C9sCNhzD.js} +5 -4
- package/dist/assets/{InsightsChartFailed-zPbPiVrK.js → InsightsChartFailed-DWA6YbZj.js} +5 -4
- package/dist/assets/{InsightsChartFailureRate-BijFuiun.js → InsightsChartFailureRate-CfknGtrr.js} +5 -4
- package/dist/assets/{InsightsChartTimeSaved-QPkPrxuo.js → InsightsChartTimeSaved-DtLO9DJx.js} +5 -4
- package/dist/assets/{InsightsChartTotal-CAIfpPOZ.js → InsightsChartTotal-yX_QJ-44.js} +5 -4
- package/dist/assets/{InsightsDashboard-D8_DXUIT.js → InsightsDashboard-BlYvn96O.js} +19 -19
- package/dist/assets/{InsightsDashboard-CXbI-Jyg.css → InsightsDashboard-C27Avzrv.css} +2 -2
- package/dist/assets/{InsightsPaywall-BlFkYC7C.js → InsightsPaywall-BCfIY_xn.js} +3 -3
- package/dist/assets/{InsightsSummary-DT-p4HNY.js → InsightsSummary-OiO7efWD.js} +9 -4
- package/dist/assets/{InsightsTableWorkflows-RGpSnp7n.css → InsightsTableWorkflows-BTHSCwX8.css} +27 -3
- package/dist/assets/{InsightsTableWorkflows-CN4YWTtH.js → InsightsTableWorkflows-pTl3m7wx.js} +80 -26
- package/dist/assets/{Logo-BhBstNGh.js → Logo-8g4P9vyv.js} +1 -1
- package/dist/assets/{LogsPanel-Bvy4ANV7.css → LogsPanel-D0xdq4fV.css} +21 -21
- package/dist/assets/{LogsPanel-Ceg5ubnO.js → LogsPanel-so01MtIR.js} +16 -11
- package/dist/assets/{MainHeader-4a5SCN9a.js → MainHeader-CcUlKfHC.js} +17 -16
- package/dist/assets/{MainHeader-DYYEm7nF.css → MainHeader-qSHM1Rvp.css} +12 -12
- package/dist/assets/{MainSidebar-CaLHZgDB.css → MainSidebar-D74VZmM5.css} +7 -8
- package/dist/assets/{MainSidebar-PaqIlcl_.js → MainSidebar-DOGhP_oY.js} +26 -25
- package/dist/assets/{N8nDataTableServer-OWjVTbuy.js → N8nDataTableServer-9HerjyzX.js} +20 -10
- package/dist/assets/{NodeCreation-vn1s6ViE.js → NodeCreation-CVbCKnet.js} +11 -9
- package/dist/assets/{NodeCreator-8yXN9-3-.js → NodeCreator-BOosPF8_.js} +114 -197
- package/dist/assets/{NodeCreator-DWE25utr.css → NodeCreator-CkvY2niF.css} +0 -128
- package/dist/assets/{NodeDetailsView-Bfqrvndc.js → NodeDetailsView-KFidngJi.js} +21 -16
- package/dist/assets/{NodeDetailsViewV2-DvXkio7Z.js → NodeDetailsViewV2-BL4KKqW-.js} +21 -16
- package/dist/assets/{NodeView-4YXAVrWh.js → NodeView-BzC6ELga.js} +2068 -746
- package/dist/assets/{NodeView-hst6fesm.css → NodeView-G2qfXaOy.css} +755 -71
- package/dist/assets/{ProjectHeader-BXo_XGDO.js → ProjectHeader-B9-GdGvC.js} +2 -2
- package/dist/assets/{ProjectSettings-Z5Kp6E53.js → ProjectSettings-CE4_geFa.js} +7 -5
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-DK8Mp74c.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-Bb8zUJvi.js} +1 -1
- package/dist/assets/{ResourcesListLayout-DoL3gqUA.js → ResourcesListLayout-ClTEnqVS.js} +3 -3
- package/dist/assets/{RunDataJson-CI2PEX1Z.js → RunDataJson-fXQKTIFD.js} +6 -7
- package/dist/assets/{RunDataJsonActions-CdUL1gL3.js → RunDataJsonActions-CMP1sUPZ.js} +1 -1
- package/dist/assets/{RunDataParsedAiContent-B6Ss5mvl.js → RunDataParsedAiContent-CHK6Y4ET.js} +2 -2
- package/dist/assets/{RunDataSearch-DKaXYju2.js → RunDataSearch-CAZGWZzz.js} +1 -1
- package/dist/assets/{RunDataTable-BQ3rdzoF.js → RunDataTable-CeqmA-n3.js} +17 -17
- package/dist/assets/{SamlOnboarding-C_au26AK.js → SamlOnboarding-BrdzPMSK.js} +3 -3
- package/dist/assets/{SettingsApiView-aoaIK5C5.js → SettingsApiView-Cj2YYKAl.js} +5 -4
- package/dist/assets/{SettingsCommunityNodesView-Bii1jYzp.js → SettingsCommunityNodesView-ChB--kZD.js} +4 -3
- package/dist/assets/{SettingsExternalSecrets-DzoOLUAJ.js → SettingsExternalSecrets-BjghCvkE.js} +5 -3
- package/dist/assets/{SettingsLdapView-CkLOtGjj.js → SettingsLdapView-DIB1-nTk.js} +1 -1
- package/dist/assets/{SettingsLogStreamingView-CKBVxNwk.js → SettingsLogStreamingView-BOOGkcwK.js} +1 -1
- package/dist/assets/{SettingsPersonalView-gOoSkTpX.js → SettingsPersonalView-DaNZTNUy.js} +1 -1
- package/dist/assets/{SettingsSourceControl-C6XS-Myv.js → SettingsSourceControl-B5fQRT0V.js} +10 -8
- package/dist/assets/{SettingsSso-CobNvKat.js → SettingsSso-CWX-T13W.js} +1 -1
- package/dist/assets/{SettingsUsageAndPlan-3r39YZW1.js → SettingsUsageAndPlan-Cnnf9k6X.js} +15 -10
- package/dist/assets/{SettingsUsageAndPlan-D6TiPwUx.css → SettingsUsageAndPlan-ZZQpCmyQ.css} +3 -3
- package/dist/assets/{SettingsUsersView-DrrH1dLq.js → SettingsUsersView-BLDi4lpv.js} +105 -44
- package/dist/assets/{SettingsUsersView-B81cHl3f.css → SettingsUsersView-RQTdLxyb.css} +11 -7
- package/dist/assets/{SettingsView-D_wEAbZb.js → SettingsView-Dtc8MEv6.js} +1 -1
- package/dist/assets/{SetupView-CU1QrNSu.js → SetupView-C4C-2Idz.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-Do2E5w2d.js → SetupWorkflowCredentialsButton-Pzrxag-k.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-cuwHIvkB.js → SetupWorkflowFromTemplateView-CRsZDYct.js} +3 -3
- package/dist/assets/{SigninView-DA11h2Kr.js → SigninView-COyoSAUi.js} +3 -3
- package/dist/assets/{SignoutView-VJrMh5w7.js → SignoutView-B0t9kc5s.js} +1 -1
- package/dist/assets/{SignupView-BNTIWYSE.js → SignupView-BN8MCOnb.js} +3 -3
- package/dist/assets/{TableBase-B5rreQVh.js → TableBase-BmhIwPwZ.js} +1 -1
- package/dist/assets/{Tags-SJm7l2s6.js → Tags-DeTgaVsD.js} +1 -1
- package/dist/assets/{TemplateDetails-B6-Nkya8.js → TemplateDetails-Bh-WSvQ-.js} +2 -2
- package/dist/assets/{TemplateList-C4Dqsvfp.js → TemplateList-DxvJMjPE.js} +1 -1
- package/dist/assets/{TemplatesCollectionView-BMGZ939P.js → TemplatesCollectionView-BhilAS_8.js} +6 -6
- package/dist/assets/{TemplatesSearchView-CIo8eprI.js → TemplatesSearchView-CWxnTQ8Z.js} +3 -3
- package/dist/assets/{TemplatesView-MshXkM2_.js → TemplatesView-Co-FQLhr.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-LWBGoJBO.js → TemplatesWorkflowView-DAWgsT0T.js} +6 -6
- package/dist/assets/{TriggerPanel-DRpKKKun.css → TriggerPanel-DJv04feX.css} +1 -354
- package/dist/assets/{TriggerPanel-C-0JCegt.js → TriggerPanel-JaXhe1VW.js} +133 -981
- package/dist/assets/{VariablesView-omKbxNoc.js → VariablesView-JnfEn1f-.js} +5 -5
- package/dist/assets/VueMarkdown-DDKnTMgT.js +1570 -0
- package/dist/assets/{WorkerView-DPnCbr1B.js → WorkerView-DZG4C_Qp.js} +6 -5
- package/dist/assets/{WorkflowActivator-Hn_uDFPH.js → WorkflowActivator-C8hP37n7.js} +2 -2
- package/dist/assets/{WorkflowExecutionsInfoAccordion-DWSeluMM.js → WorkflowExecutionsInfoAccordion-DCNvkxhh.js} +2 -2
- package/dist/assets/{WorkflowExecutionsLandingPage-BMcxBJEl.js → WorkflowExecutionsLandingPage-DVp6SoPy.js} +3 -3
- package/dist/assets/{WorkflowExecutionsPreview-Csq6C8Vh.js → WorkflowExecutionsPreview-CKYWZWv1.js} +5 -5
- package/dist/assets/{WorkflowExecutionsView-6L7iZJq1.js → WorkflowExecutionsView-BIkweP3p.js} +8 -8
- package/dist/assets/{WorkflowHistory-B0t-0Z77.js → WorkflowHistory-C0LrWJW0.js} +6 -6
- package/dist/assets/{WorkflowOnboardingView-DuI2I9MQ.js → WorkflowOnboardingView-CWMUgnLK.js} +1 -1
- package/dist/assets/{WorkflowPreview-D4kwrMFk.js → WorkflowPreview-DmYMBSH3.js} +1 -1
- package/dist/assets/{WorkflowsView-WU-IKn4K.js → WorkflowsView-jEphnf90.js} +125 -17
- package/dist/assets/aiTemplatesStarterCollection.store-oECEA5nR.js +794 -0
- package/dist/assets/{chartjs.utils-Bc5bGj66.js → chartjs.utils-CP28DnUQ.js} +2 -2
- package/dist/assets/{en-FjyeYndD.js → en-BX7CKkqE.js} +22 -6
- package/dist/assets/{global-link-actions-BZz1vmQq.js → global-link-actions-BjpAG7gt.js} +1 -1
- package/dist/assets/{import-curl-jc1UtwMR.js → import-curl-BD22LJ4z.js} +1 -1
- package/dist/assets/{index-C6LoGNAx.css → index-BWpYwmXd.css} +548 -948
- package/dist/assets/{index-Cohi4onR.js → index-CjbtyS1n.js} +1 -1
- package/dist/assets/{index-CAU8Zeff.js → index-Cm5yBbby.js} +48318 -42852
- package/dist/assets/{pickBy-Bmcb35Dl.js → pickBy-DA-1tKxT.js} +1 -1
- package/dist/assets/{templateActions-Bsj8nngl.js → templateActions-D9IAsJ2m.js} +1 -1
- package/dist/assets/{typescript.worker-CUj0Nj-S.js → typescript.worker-KwUz68Jx.js} +2499 -157
- package/dist/assets/{useBeforeUnload-aOI6YxZR.js → useBeforeUnload-BR-V9Uaz.js} +1 -1
- package/dist/assets/{useExecutionDebugging-dVW9cpg5.js → useExecutionDebugging-C8zR-uFJ.js} +1 -1
- package/dist/assets/{useExecutionHelpers-BIfEl-h7.js → useExecutionHelpers-DQcWcZ8o.js} +1 -1
- package/dist/assets/{useImportCurlCommand-B4EFH3RG.js → useImportCurlCommand-B3-fEq8S.js} +9 -9
- package/dist/assets/{RunData-D0dKnadD.css → useKeybindings-2A271Jke.css} +134 -2
- package/dist/assets/{RunData-B9jGswDT.js → useKeybindings-DetzdpXy.js} +223 -1644
- package/dist/assets/{useProjectPages-4b50pSat.js → useProjectPages-qXIMd_UF.js} +1 -1
- package/dist/assets/{usePushConnection-CKW8UPyl.js → usePushConnection-Duvg6z8O.js} +10 -2
- package/dist/assets/{useWorkflowActivate-C39vU0rW.js → useWorkflowActivate-BE4Ckf9k.js} +1 -1
- package/dist/index.html +3 -7
- package/index.html +1 -5
- package/package.json +1 -1
- package/vite.config.mts +23 -3
- package/dist/assets/CollectionParameter-DMWMZwmI.js +0 -4
- package/dist/assets/useKeybindings-0d48UFTt.js +0 -188
- package/dist/assets/useKeybindings-BUK7Ngh6.css +0 -133
|
@@ -0,0 +1,794 @@
|
|
|
1
|
+
import { a3 as defineStore, ah as useFoldersStore, a5 as useWorkflowsStore, c_ as usePostHog, aP as useLocalStorage, x as computed, g_ as TEMPLATE_ONBOARDING_EXPERIMENT, c as useI18n, az as useTelemetry, a8 as STORES } from "./index-Cm5yBbby.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 calloutDismissedRef = useLocalStorage(LOCAL_STORAGE_SETTING_KEY, false);
|
|
730
|
+
const calloutDismissed = computed(() => calloutDismissedRef.value);
|
|
731
|
+
const isFeatureEnabled = computed(() => {
|
|
732
|
+
return posthogStore.getVariant(TEMPLATE_ONBOARDING_EXPERIMENT.name) === TEMPLATE_ONBOARDING_EXPERIMENT.variantStarterPack;
|
|
733
|
+
});
|
|
734
|
+
const dismissCallout = () => {
|
|
735
|
+
calloutDismissedRef.value = true;
|
|
736
|
+
};
|
|
737
|
+
const createStarterWorkflows = async (projectId, parentFolderId) => {
|
|
738
|
+
const collectionFolder = await foldersStore.createFolder(
|
|
739
|
+
i18n.baseText("workflows.ai.starter.collection.folder.name"),
|
|
740
|
+
projectId,
|
|
741
|
+
parentFolderId
|
|
742
|
+
);
|
|
743
|
+
const agentWitheMemory = {
|
|
744
|
+
...AGENT_WITH_MEMORY,
|
|
745
|
+
parentFolderId: collectionFolder.id
|
|
746
|
+
};
|
|
747
|
+
const agentWithTools = {
|
|
748
|
+
...AGENT_WITH_TOOLS,
|
|
749
|
+
parentFolderId: collectionFolder.id
|
|
750
|
+
};
|
|
751
|
+
const agentWithKnowledge = {
|
|
752
|
+
...AGENT_WITH_KNOWLEDGE,
|
|
753
|
+
parentFolderId: collectionFolder.id
|
|
754
|
+
};
|
|
755
|
+
await workflowsStore.createNewWorkflow(agentWithKnowledge);
|
|
756
|
+
await workflowsStore.createNewWorkflow(agentWithTools);
|
|
757
|
+
await workflowsStore.createNewWorkflow(agentWitheMemory);
|
|
758
|
+
dismissCallout();
|
|
759
|
+
return collectionFolder;
|
|
760
|
+
};
|
|
761
|
+
const trackUserCreatedStarterCollection = (source) => {
|
|
762
|
+
telemetry.track("User created AI templates starter collection", {
|
|
763
|
+
source
|
|
764
|
+
});
|
|
765
|
+
};
|
|
766
|
+
const trackUserDismissedCallout = () => {
|
|
767
|
+
telemetry.track("User dismissed AI templates starter collection callout");
|
|
768
|
+
};
|
|
769
|
+
const trackUserOpenedWorkflow = (template) => {
|
|
770
|
+
telemetry.track("User opened AI template workflow", {
|
|
771
|
+
template
|
|
772
|
+
});
|
|
773
|
+
};
|
|
774
|
+
const trackUserExecutedWorkflow = (template, status) => {
|
|
775
|
+
telemetry.track("User executed AI template", {
|
|
776
|
+
template,
|
|
777
|
+
status
|
|
778
|
+
});
|
|
779
|
+
};
|
|
780
|
+
return {
|
|
781
|
+
isFeatureEnabled,
|
|
782
|
+
calloutDismissed,
|
|
783
|
+
dismissCallout,
|
|
784
|
+
createStarterWorkflows,
|
|
785
|
+
trackUserCreatedStarterCollection,
|
|
786
|
+
trackUserDismissedCallout,
|
|
787
|
+
trackUserOpenedWorkflow,
|
|
788
|
+
trackUserExecutedWorkflow
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
);
|
|
792
|
+
export {
|
|
793
|
+
useAITemplatesStarterCollectionStore as u
|
|
794
|
+
};
|