Created
August 31, 2025 20:38
-
-
Save alnutile/b89c7182812df668ed70cec88075ff84 to your computer and use it in GitHub Desktop.
SetVar and N8N see https://youtu.be/vUaZgr0RFKU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "options": { | |
| "systemMessage": "You have this data from the Monday.com task system. Use it" | |
| } | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.agent", | |
| "typeVersion": 2.2, | |
| "position": [ | |
| 304, | |
| -112 | |
| ], | |
| "id": "cb4a8bc2-8b92-4dbb-ad81-d86e343ec083", | |
| "name": "AI Agent" | |
| }, | |
| { | |
| "parameters": { | |
| "authentication": "oAuth2", | |
| "resource": "boardItem", | |
| "operation": "getAll", | |
| "boardId": "9704173529", | |
| "groupId": "topics", | |
| "returnAll": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Return_All', ``, 'boolean') }}" | |
| }, | |
| "type": "n8n-nodes-base.mondayComTool", | |
| "typeVersion": 1, | |
| "position": [ | |
| 544, | |
| 112 | |
| ], | |
| "id": "1486e048-beb3-418c-9366-73ca9fa5c997", | |
| "name": "Get many items in Monday.com", | |
| "credentials": { | |
| "mondayComOAuth2Api": { | |
| "id": "W1z3KDRjbzsZumDL", | |
| "name": "Monday.com account" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.chatTrigger", | |
| "typeVersion": 1.3, | |
| "position": [ | |
| -656, | |
| -112 | |
| ], | |
| "id": "02993511-9aef-46b0-80f4-f8d3e5e7e599", | |
| "name": "When chat message received", | |
| "webhookId": "2d19b72a-cec8-41c9-a84b-75c951f34204" | |
| }, | |
| { | |
| "parameters": {}, | |
| "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", | |
| "typeVersion": 1.3, | |
| "position": [ | |
| 368, | |
| 128 | |
| ], | |
| "id": "0fd50511-51d9-4723-bc01-f3271acc3c01", | |
| "name": "Simple Memory" | |
| }, | |
| { | |
| "parameters": { | |
| "model": { | |
| "__rl": true, | |
| "mode": "list", | |
| "value": "gpt-4.1-mini" | |
| }, | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", | |
| "typeVersion": 1.2, | |
| "position": [ | |
| 192, | |
| 144 | |
| ], | |
| "id": "5d1f7745-45db-4695-a4d7-2512b353a2f1", | |
| "name": "OpenAI Chat Model", | |
| "credentials": { | |
| "openAiApi": { | |
| "id": "v5lKgV7PDt0H77GQ", | |
| "name": "Toolbot Token" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "rule": { | |
| "interval": [ | |
| {} | |
| ] | |
| } | |
| }, | |
| "type": "n8n-nodes-base.scheduleTrigger", | |
| "typeVersion": 1.2, | |
| "position": [ | |
| -656, | |
| 112 | |
| ], | |
| "id": "37a913d6-5063-4760-9c29-1c1f38f8b870", | |
| "name": "Schedule Trigger" | |
| }, | |
| { | |
| "parameters": { | |
| "httpMethod": "POST", | |
| "path": "64e06962-695c-4f07-923a-22eff2227335", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.webhook", | |
| "typeVersion": 2.1, | |
| "position": [ | |
| -640, | |
| 304 | |
| ], | |
| "id": "5364c61f-eede-4890-8dac-3dc6a287d3d0", | |
| "name": "Webhook", | |
| "webhookId": "64e06962-695c-4f07-923a-22eff2227335" | |
| }, | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.emailReadImap", | |
| "typeVersion": 2.1, | |
| "position": [ | |
| -624, | |
| 496 | |
| ], | |
| "id": "a5402115-9e46-4901-9a39-ea80b3b6ff44", | |
| "name": "Email Trigger (IMAP)", | |
| "credentials": { | |
| "imap": { | |
| "id": "JHYcpJPuMG5tqIbt", | |
| "name": "Assistant DailyAi" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "rules": { | |
| "values": [ | |
| { | |
| "conditions": { | |
| "options": { | |
| "caseSensitive": true, | |
| "leftValue": "", | |
| "typeValidation": "strict", | |
| "version": 2 | |
| }, | |
| "conditions": [ | |
| { | |
| "leftValue": "={{ $('merged_vars').item.json.source }}", | |
| "rightValue": "scheduled", | |
| "operator": { | |
| "type": "string", | |
| "operation": "equals" | |
| }, | |
| "id": "b6215afe-a781-41dd-beeb-a3b07fba0c20" | |
| } | |
| ], | |
| "combinator": "and" | |
| }, | |
| "renameOutput": true, | |
| "outputKey": "scheduled" | |
| } | |
| ] | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.switch", | |
| "typeVersion": 3.2, | |
| "position": [ | |
| 656, | |
| -112 | |
| ], | |
| "id": "05208c0e-b349-41dc-a3ca-9d179f74d39c", | |
| "name": "Switch" | |
| }, | |
| { | |
| "parameters": { | |
| "assignments": { | |
| "assignments": [ | |
| { | |
| "id": "22ba0792-6723-4a6a-88ab-6885aa122ea2", | |
| "name": "chatInput", | |
| "value": "={{ $json.chatInput }}", | |
| "type": "string" | |
| }, | |
| { | |
| "id": "914bcf90-57d0-4f07-90a7-d46b4a7b7f98", | |
| "name": "sessionId", | |
| "value": "={{ $json.sessionId }}", | |
| "type": "string" | |
| }, | |
| { | |
| "id": "88c89145-0555-4062-9da3-a97b22582076", | |
| "name": "source", | |
| "value": "={{ $json.chat}}", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.set", | |
| "typeVersion": 3.4, | |
| "position": [ | |
| 144, | |
| -112 | |
| ], | |
| "id": "6ae20a57-0e48-4ead-b687-597b57317008", | |
| "name": "merged_vars" | |
| }, | |
| { | |
| "parameters": { | |
| "assignments": { | |
| "assignments": [ | |
| { | |
| "id": "22ba0792-6723-4a6a-88ab-6885aa122ea2", | |
| "name": "chatInput", | |
| "value": "={{ $json.chatInput }}", | |
| "type": "string" | |
| }, | |
| { | |
| "id": "914bcf90-57d0-4f07-90a7-d46b4a7b7f98", | |
| "name": "sessionId", | |
| "value": "={{ $json.sessionId }}", | |
| "type": "string" | |
| }, | |
| { | |
| "id": "88c89145-0555-4062-9da3-a97b22582076", | |
| "name": "source", | |
| "value": "=chat", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.set", | |
| "typeVersion": 3.4, | |
| "position": [ | |
| -400, | |
| -96 | |
| ], | |
| "id": "fb026396-2b45-4a3a-a73b-04ac1afd568d", | |
| "name": "chat_vars" | |
| }, | |
| { | |
| "parameters": { | |
| "assignments": { | |
| "assignments": [ | |
| { | |
| "id": "22ba0792-6723-4a6a-88ab-6885aa122ea2", | |
| "name": "chatInput", | |
| "value": "=Give me a daily report of my items in monday", | |
| "type": "string" | |
| }, | |
| { | |
| "id": "914bcf90-57d0-4f07-90a7-d46b4a7b7f98", | |
| "name": "sessionId", | |
| "value": "=scheduled", | |
| "type": "string" | |
| }, | |
| { | |
| "id": "88c89145-0555-4062-9da3-a97b22582076", | |
| "name": "source", | |
| "value": "=scheduled", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.set", | |
| "typeVersion": 3.4, | |
| "position": [ | |
| -400, | |
| 112 | |
| ], | |
| "id": "3120691a-5818-4fca-8623-bacae88cf828", | |
| "name": "scheduled_vars" | |
| }, | |
| { | |
| "parameters": { | |
| "assignments": { | |
| "assignments": [ | |
| { | |
| "id": "22ba0792-6723-4a6a-88ab-6885aa122ea2", | |
| "name": "chatInput", | |
| "value": "={{ $json.message }}", | |
| "type": "string" | |
| }, | |
| { | |
| "id": "914bcf90-57d0-4f07-90a7-d46b4a7b7f98", | |
| "name": "sessionId", | |
| "value": "={{$json.user_id}}", | |
| "type": "string" | |
| }, | |
| { | |
| "id": "88c89145-0555-4062-9da3-a97b22582076", | |
| "name": "source", | |
| "value": "=api", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.set", | |
| "typeVersion": 3.4, | |
| "position": [ | |
| -400, | |
| 304 | |
| ], | |
| "id": "d1f7c48a-5db0-436c-ba46-6a80db4e298b", | |
| "name": "api_vars" | |
| }, | |
| { | |
| "parameters": { | |
| "assignments": { | |
| "assignments": [ | |
| { | |
| "id": "22ba0792-6723-4a6a-88ab-6885aa122ea2", | |
| "name": "chatInput", | |
| "value": "=Give me a daily report of my items in monday", | |
| "type": "string" | |
| }, | |
| { | |
| "id": "914bcf90-57d0-4f07-90a7-d46b4a7b7f98", | |
| "name": "sessionId", | |
| "value": "=scheduled", | |
| "type": "string" | |
| }, | |
| { | |
| "id": "88c89145-0555-4062-9da3-a97b22582076", | |
| "name": "source", | |
| "value": "=scheduled", | |
| "type": "string" | |
| } | |
| ] | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.set", | |
| "typeVersion": 3.4, | |
| "position": [ | |
| -400, | |
| 496 | |
| ], | |
| "id": "43fa6fba-d1e2-40e1-a0c8-9adf30ef8a6d", | |
| "name": "email_vars" | |
| } | |
| ], | |
| "connections": { | |
| "AI Agent": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Switch", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Get many items in Monday.com": { | |
| "ai_tool": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "ai_tool", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "When chat message received": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "chat_vars", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Simple Memory": { | |
| "ai_memory": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "ai_memory", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "OpenAI Chat Model": { | |
| "ai_languageModel": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "ai_languageModel", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Schedule Trigger": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "scheduled_vars", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Webhook": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "api_vars", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Email Trigger (IMAP)": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "email_vars", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Switch": { | |
| "main": [ | |
| [] | |
| ] | |
| }, | |
| "merged_vars": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "chat_vars": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "merged_vars", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "scheduled_vars": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "merged_vars", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "api_vars": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "merged_vars", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "email_vars": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "merged_vars", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| } | |
| }, | |
| "pinData": {}, | |
| "meta": { | |
| "templateCredsSetupCompleted": true, | |
| "instanceId": "b77b374d91a001765a8bf2832badc1f8fcc5407c99c4c6f3f68d6413d663ef83" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment