|
23 | 23 | } |
24 | 24 | } |
25 | 25 | }, |
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 | | - }, |
43 | 26 | { |
44 | 27 | "parameters": { |
45 | 28 | "sessionKey": "={{ $('Webhook').item.json.body.user_id }}_{{ $('Webhook').item.json.body.chat_id }}", |
|
151 | 134 | "type": "@n8n/n8n-nodes-langchain.toolHttpRequest", |
152 | 135 | "typeVersion": 1.1, |
153 | 136 | "position": [ |
154 | | - 2840, |
| 137 | + 2960, |
155 | 138 | 1100 |
156 | 139 | ], |
157 | 140 | "id": "28fe049c-6fd7-4bde-9b44-85100001284d", |
158 | 141 | "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" |
159 | 175 | } |
160 | 176 | ], |
161 | 177 | "pinData": {}, |
162 | 178 | "connections": { |
163 | 179 | "OpenAI Chat Model": { |
164 | 180 | "ai_languageModel": [ |
165 | | - [] |
166 | | - ] |
167 | | - }, |
168 | | - "AI Agent": { |
169 | | - "main": [ |
170 | 181 | [ |
171 | 182 | { |
172 | | - "node": "Respond to Webhook", |
173 | | - "type": "main", |
| 183 | + "node": "AI Agent", |
| 184 | + "type": "ai_languageModel", |
174 | 185 | "index": 0 |
175 | 186 | } |
176 | 187 | ] |
|
222 | 233 | }, |
223 | 234 | "Azure OpenAI Chat Model": { |
224 | 235 | "ai_languageModel": [ |
| 236 | + [] |
| 237 | + ] |
| 238 | + }, |
| 239 | + "Get Time": { |
| 240 | + "ai_tool": [ |
| 241 | + [] |
| 242 | + ] |
| 243 | + }, |
| 244 | + "AI Agent": { |
| 245 | + "main": [ |
225 | 246 | [ |
226 | 247 | { |
227 | | - "node": "AI Agent", |
228 | | - "type": "ai_languageModel", |
| 248 | + "node": "Respond to Webhook", |
| 249 | + "type": "main", |
229 | 250 | "index": 0 |
230 | 251 | } |
231 | 252 | ] |
232 | 253 | ] |
233 | 254 | }, |
234 | | - "Get Time": { |
| 255 | + "Date & Time": { |
235 | 256 | "ai_tool": [ |
236 | 257 | [ |
237 | 258 | { |
|
247 | 268 | "settings": { |
248 | 269 | "executionOrder": "v1" |
249 | 270 | }, |
250 | | - "versionId": "d064c617-0d7f-4f1f-ad9f-753679fc7a07", |
| 271 | + "versionId": "f8929012-f276-4c61-84e2-108146802a55", |
251 | 272 | "meta": { |
252 | 273 | "templateCredsSetupCompleted": true, |
253 | 274 | "instanceId": "6350a4271a2777a60d73e3a3c6a9549015b6bfe8b8f285cb566cd69ef87215da" |
|
0 commit comments