Skip to content

Commit 1f44ab0

Browse files
authored
Update N8N Test Agent Template
1 parent 4ab20cd commit 1f44ab0

1 file changed

Lines changed: 50 additions & 29 deletions

File tree

pipelines/n8n/Open_WebUI_Test_Agent.json

Lines changed: 50 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,6 @@
2323
}
2424
}
2525
},
26-
{
27-
"parameters": {
28-
"agent": "openAiFunctionsAgent",
29-
"text": "={{ $json.body.chatInput }}",
30-
"options": {
31-
"systemMessage": "={{ $json.body.systemPrompt }}"
32-
}
33-
},
34-
"id": "fcec32e7-b6fb-45ca-9ac1-acf81dc53ee1",
35-
"name": "AI Agent",
36-
"type": "@n8n/n8n-nodes-langchain.agent",
37-
"position": [
38-
2380,
39-
840
40-
],
41-
"typeVersion": 1.1
42-
},
4326
{
4427
"parameters": {
4528
"sessionKey": "={{ $('Webhook').item.json.body.user_id }}_{{ $('Webhook').item.json.body.chat_id }}",
@@ -151,26 +134,54 @@
151134
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
152135
"typeVersion": 1.1,
153136
"position": [
154-
2840,
137+
2960,
155138
1100
156139
],
157140
"id": "28fe049c-6fd7-4bde-9b44-85100001284d",
158141
"name": "Get Time"
142+
},
143+
{
144+
"parameters": {
145+
"promptType": "define",
146+
"text": "={{ $json.body.chatInput }}",
147+
"options": {
148+
"systemMessage": "={{ $json.body.systemPrompt }}"
149+
}
150+
},
151+
"type": "@n8n/n8n-nodes-langchain.agent",
152+
"typeVersion": 1.8,
153+
"position": [
154+
2380,
155+
840
156+
],
157+
"id": "d7d5e7d0-9e85-4c81-8b5e-d56b0ecbe15a",
158+
"name": "AI Agent"
159+
},
160+
{
161+
"parameters": {
162+
"includeTime": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Include_Current_Time', ``, 'boolean') }}",
163+
"options": {
164+
"timezone": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Timezone', ``, 'string') }}"
165+
}
166+
},
167+
"type": "n8n-nodes-base.dateTimeTool",
168+
"typeVersion": 2,
169+
"position": [
170+
2840,
171+
1100
172+
],
173+
"id": "b9f40873-67cc-48a6-b19a-28400805ca6a",
174+
"name": "Date & Time"
159175
}
160176
],
161177
"pinData": {},
162178
"connections": {
163179
"OpenAI Chat Model": {
164180
"ai_languageModel": [
165-
[]
166-
]
167-
},
168-
"AI Agent": {
169-
"main": [
170181
[
171182
{
172-
"node": "Respond to Webhook",
173-
"type": "main",
183+
"node": "AI Agent",
184+
"type": "ai_languageModel",
174185
"index": 0
175186
}
176187
]
@@ -222,16 +233,26 @@
222233
},
223234
"Azure OpenAI Chat Model": {
224235
"ai_languageModel": [
236+
[]
237+
]
238+
},
239+
"Get Time": {
240+
"ai_tool": [
241+
[]
242+
]
243+
},
244+
"AI Agent": {
245+
"main": [
225246
[
226247
{
227-
"node": "AI Agent",
228-
"type": "ai_languageModel",
248+
"node": "Respond to Webhook",
249+
"type": "main",
229250
"index": 0
230251
}
231252
]
232253
]
233254
},
234-
"Get Time": {
255+
"Date & Time": {
235256
"ai_tool": [
236257
[
237258
{
@@ -247,7 +268,7 @@
247268
"settings": {
248269
"executionOrder": "v1"
249270
},
250-
"versionId": "d064c617-0d7f-4f1f-ad9f-753679fc7a07",
271+
"versionId": "f8929012-f276-4c61-84e2-108146802a55",
251272
"meta": {
252273
"templateCredsSetupCompleted": true,
253274
"instanceId": "6350a4271a2777a60d73e3a3c6a9549015b6bfe8b8f285cb566cd69ef87215da"

0 commit comments

Comments
 (0)