8
n8n ํ•œ๊ตญ์–ดamn8n.com

๐Ÿง  AI ์ฑ„ํŒ… ๋กœ๋ด‡์— ์žฅ๊ธฐ ๊ธฐ์–ต๊ณผ ๋™์  ๋„๊ตฌ ๋ผ์šฐํŒ… ์ œ๊ณต

๊ณ ๊ธ‰

์ด๊ฒƒ์€Building Blocks, AI๋ถ„์•ผ์˜์ž๋™ํ™” ์›Œํฌํ”Œ๋กœ์šฐ๋กœ, 39๊ฐœ์˜ ๋…ธ๋“œ๋ฅผ ํฌํ•จํ•ฉ๋‹ˆ๋‹ค.์ฃผ๋กœ Set, Gmail, Switch, Telegram, GoogleDocs ๋“ฑ์˜ ๋…ธ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉฐ์ธ๊ณต์ง€๋Šฅ ๊ธฐ์ˆ ์„ ๊ฒฐํ•ฉํ•˜์—ฌ ์Šค๋งˆํŠธ ์ž๋™ํ™”๋ฅผ ๊ตฌํ˜„ํ•ฉ๋‹ˆ๋‹ค. ๐Ÿง  AI ์ฑ„ํŒ… ๋กœ๋ด‡์— ์žฅ๊ธฐ ๊ธฐ์–ต๊ณผ ๋™์  ๋„๊ตฌ ๋ผ์šฐํŒ…์„ ์ œ๊ณตํ•˜์„ธ์š”

์‚ฌ์ „ ์š”๊ตฌ์‚ฌํ•ญ
  • โ€ขGoogle ๊ณ„์ • ๋ฐ Gmail API ์ธ์ฆ ์ •๋ณด
  • โ€ขTelegram Bot Token
  • โ€ขOpenAI API Key
์›Œํฌํ”Œ๋กœ์šฐ ๋ฏธ๋ฆฌ๋ณด๊ธฐ
๋…ธ๋“œ ์—ฐ๊ฒฐ ๊ด€๊ณ„๋ฅผ ์‹œ๊ฐ์ ์œผ๋กœ ํ‘œ์‹œํ•˜๋ฉฐ, ํ™•๋Œ€/์ถ•์†Œ ๋ฐ ์ด๋™์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค
์›Œํฌํ”Œ๋กœ์šฐ ๋‚ด๋ณด๋‚ด๊ธฐ
๋‹ค์Œ JSON ๊ตฌ์„ฑ์„ ๋ณต์‚ฌํ•˜์—ฌ n8n์— ๊ฐ€์ ธ์˜ค๋ฉด ์ด ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค
{
  "id": "p7xESnT1xMZD2hRk",
  "meta": {
    "instanceId": "31e69f7f4a77bf465b805824e303232f0227212ae922d12133a0f96ffeab4fef",
    "templateCredsSetupCompleted": true
  },
  "name": "๐Ÿง  Give Your AI Agent Chatbot Long Term Memory Tools Router",
  "tags": [],
  "nodes": [
    {
      "id": "d5947a9d-bad4-4db7-8cdb-dc277928565a",
      "name": "๋‹ค๋ฅธ ์›Œํฌํ”Œ๋กœ์šฐ์—์„œ ์‹คํ–‰ ์‹œ",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        320,
        -80
      ],
      "parameters": {
        "inputSource": "passthrough"
      },
      "typeVersion": 1.1
    },
    {
      "id": "c9e9715d-c691-4516-9e0c-cf393a18d814",
      "name": "์žฅ๊ธฐ ๊ธฐ์–ต ์ €์žฅ",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1020,
        -80
      ],
      "parameters": {
        "actionsUi": {
          "actionFields": [
            {
              "text": "={\n  \"date\": \"{{ $now }}\",\n  \"memory\": \"{{ $json.query }}\"\n},\n",
              "action": "insert"
            }
          ]
        },
        "operation": "update",
        "documentURL": "1YFTbVGlnpdYF5FuA6grfyvzmcdjcPviClAqbJ5HJIlc"
      },
      "credentials": {
        "googleDocsOAuth2Api": {
          "id": "YWEHuG28zOt532MQ",
          "name": "Google Docs account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "306272bf-e264-4cfb-b8b6-8c0af1de3f14",
      "name": "์ €์žฅ๋œ ์‘๋‹ต",
      "type": "n8n-nodes-base.set",
      "position": [
        1200,
        -80
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "6b7e85d8-379b-4a0f-9799-9193a29f0447",
              "name": "response",
              "type": "string",
              "value": "Memory saved"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "152b6922-8600-4fdb-8372-3b0102a7b73a",
      "name": "์žฅ๊ธฐ ๊ธฐ์–ต๊ณผ ํ•จ๊ป˜ ์‘๋‹ต",
      "type": "n8n-nodes-base.set",
      "position": [
        1200,
        220
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "6b7e85d8-379b-4a0f-9799-9193a29f0447",
              "name": "response",
              "type": "string",
              "value": "={{ $json.content }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "147ddd8d-6e42-44c0-95ca-9ab791f9452f",
      "name": "์žฅ๊ธฐ ๊ธฐ์–ต ๊ฒ€์ƒ‰3",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1020,
        900
      ],
      "parameters": {
        "operation": "get",
        "documentURL": "1YFTbVGlnpdYF5FuA6grfyvzmcdjcPviClAqbJ5HJIlc"
      },
      "credentials": {
        "googleDocsOAuth2Api": {
          "id": "YWEHuG28zOt532MQ",
          "name": "Google Docs account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "e3f1172b-ce33-4cce-8126-88e19afc53c6",
      "name": "์„ฑ๊ณต ๋ฉ”์‹œ์ง€๋ฅผ Telegram๋กœ ์ „์†ก",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1540,
        520
      ],
      "webhookId": "3ba1ee6d-1648-4421-823b-e68ae14d769b",
      "parameters": {
        "text": "=n8n User Memories\n{{ $json.text }}",
        "chatId": "={{ $env.TELEGRAM_CHAT_ID }}",
        "additionalFields": {
          "parse_mode": "HTML",
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "pAIFhguJlkO3c7aQ",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a77e8f01-889f-44b5-b4e1-493a97aa028c",
      "name": "์›Œํฌํ”Œ๋กœ์šฐ ํ†ต๊ณ„ ์ด๋ฉ”์ผ ์ „์†ก",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1540,
        900
      ],
      "webhookId": "d9ef6f36-941f-4110-9b3e-9e54d9bc9581",
      "parameters": {
        "sendTo": "={{ $env.EMAIL_ADDRESS_JOE }}",
        "message": "={{ $json.text }}",
        "options": {
          "appendAttribution": false
        },
        "subject": "n8n User Memories"
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "1xpVDEQ1yx8gV022",
          "name": "Gmail account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "2481fe73-9ef8-4e95-b7e5-38634b55837c",
      "name": "OpenAI ์ฑ„ํŒ… ๋ชจ๋ธ2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1320,
        660
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "jEMSvKmtYfzAkhe6",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "9a45e091-c91c-4505-a8df-7a2e1d079200",
      "name": "OpenAI ์ฑ„ํŒ… ๋ชจ๋ธ3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1320,
        1040
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "jEMSvKmtYfzAkhe6",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "6d12369e-38de-44c1-b764-64d6d9a79a25",
      "name": "๐Ÿ“ค๊ธฐ์–ต์„ Telegram๋กœ ์ „์†ก",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1360,
        -500
      ],
      "parameters": {
        "name": "send_memories_to_telegram",
        "fields": {
          "values": [
            {
              "name": "route",
              "stringValue": "=send_memories_to_telegram"
            }
          ]
        },
        "workflowId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $workflow.id }}"
        },
        "description": "Call this tool to send memories to Telegram",
        "jsonSchemaExample": ""
      },
      "typeVersion": 1.2
    },
    {
      "id": "f1d0b366-70d5-4da3-937b-ea08afd364e4",
      "name": "๐Ÿ“ซ๊ธฐ์–ต์„ Gmail๋กœ ์ „์†ก",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1620,
        -500
      ],
      "parameters": {
        "name": "send_memories_to_gmail",
        "fields": {
          "values": [
            {
              "name": "route",
              "stringValue": "=send_memories_to_gmail"
            }
          ]
        },
        "workflowId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $workflow.id }}"
        },
        "description": "Call this tool to send memories to Gmail",
        "jsonSchemaExample": ""
      },
      "typeVersion": 1.2
    },
    {
      "id": "25d99971-263a-44ef-abb0-b517743f72eb",
      "name": "๐Ÿง ๊ธฐ์–ต ์ €์žฅ",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        840,
        -500
      ],
      "parameters": {
        "name": "save_long_term_memory",
        "fields": {
          "values": [
            {
              "name": "route",
              "stringValue": "=save_memory"
            }
          ]
        },
        "workflowId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $workflow.id }}"
        },
        "description": "Call this tool to save long term memories",
        "jsonSchemaExample": ""
      },
      "typeVersion": 1.2
    },
    {
      "id": "0c9738d3-176a-4074-8340-ecfa3d9f9f7d",
      "name": "๐Ÿ”Ž๊ธฐ์–ต ๊ฒ€์ƒ‰",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1100,
        -500
      ],
      "parameters": {
        "name": "retrieve_long_term_memory",
        "fields": {
          "values": [
            {
              "name": "route",
              "stringValue": "=retrieve_memory"
            }
          ]
        },
        "workflowId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $workflow.id }}"
        },
        "description": "Call this tool to retrieve long term memories",
        "jsonSchemaExample": ""
      },
      "typeVersion": 1.2
    },
    {
      "id": "7967ec27-432e-4d35-b7e0-89eb84120754",
      "name": "๐Ÿคฏ์œˆ๋„์šฐ ๋ฒ„ํผ ๋ฉ”๋ชจ๋ฆฌ",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        520,
        -500
      ],
      "parameters": {
        "contextWindowLength": 10
      },
      "typeVersion": 1.3
    },
    {
      "id": "5f24781e-4f9a-4e33-8d33-ce281f7bcc46",
      "name": "๐Ÿง  ์žฅ๊ธฐ ๊ธฐ์–ต์„ ๊ฐ–์ถ˜ AI ์—์ด์ „ํŠธ",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        940,
        -920
      ],
      "parameters": {
        "options": {
          "systemMessage": "=You are a highly capable and intelligent assistant designed to assist users by leveraging tools for long-term memory, contextual understanding, and real-time information retrieval.  You have excellent long term memory.  The current date and time is {{ $now }}\n\n## TOOLS\n-save_long_term_memory\n-retrieve_long_term_memory\n-send_memories_to_gmail\n-send_memories_to_telegram\n\n## RULES\n- If you do not know the answer then consider checking the long term memories.\n\n\n\n\n\n"
        }
      },
      "typeVersion": 1.7
    },
    {
      "id": "ad644413-6587-415f-b7be-d58c05b94138",
      "name": "๐Ÿค–OpenAI ์ฑ„ํŒ… ๋ชจ๋ธ",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        260,
        -500
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "jEMSvKmtYfzAkhe6",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "076b0856-5ba4-498e-b279-21cf042f7f07",
      "name": "โ“‚๏ธ ์ฑ„ํŒ… ๋ฉ”์‹œ์ง€ ์ˆ˜์‹  ์‹œ",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        380,
        -920
      ],
      "webhookId": "2060403b-3fea-4fdf-a6d7-693bc477baaf",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "fcf5872c-fcdc-445e-b095-f9cef14453b8",
      "name": "Telegram ๋ฉ”์‹œ์ง€ ์ค€๋น„",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1200,
        520
      ],
      "parameters": {
        "text": "=Format this content into a simple unformatted list that can be sent to Telegram: {{ $json.content }}.  Avoid any preamble or further explanation.",
        "promptType": "define"
      },
      "typeVersion": 1.5
    },
    {
      "id": "c1d05bb9-390b-43aa-820d-45115df07f5c",
      "name": "Gmail ๋ฉ”์‹œ์ง€ ์ค€๋น„",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1200,
        900
      ],
      "parameters": {
        "text": "=Format this content into a simple and modern HTML table that is max 800px wide that can be used as the content for an email: {{ $json.content }}.  Avoid any preamble or further explanation.  Remove all ``` and ```html from response.",
        "promptType": "define"
      },
      "typeVersion": 1.5
    },
    {
      "id": "98aa87af-8329-4af6-85da-fc97cb4ed9c3",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        -620
      ],
      "parameters": {
        "color": 4,
        "height": 280,
        "content": "## 1๏ธโƒฃ Save Memories"
      },
      "typeVersion": 1
    },
    {
      "id": "677f62ba-b009-48da-988e-e58d5063d005",
      "name": "์žฅ๊ธฐ ๊ธฐ์–ต ๊ฒ€์ƒ‰",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1020,
        220
      ],
      "parameters": {
        "operation": "get",
        "documentURL": "1YFTbVGlnpdYF5FuA6grfyvzmcdjcPviClAqbJ5HJIlc"
      },
      "credentials": {
        "googleDocsOAuth2Api": {
          "id": "YWEHuG28zOt532MQ",
          "name": "Google Docs account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "1c732f83-fb09-4a51-8aea-0f9d29d1cdfe",
      "name": "๋ฉ”๋ชจ๋ฆฌ ๋„๊ตฌ ๋ผ์šฐํ„ฐ",
      "type": "n8n-nodes-base.switch",
      "position": [
        640,
        -100
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "1๏ธโƒฃ Save",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.route }}",
                    "rightValue": "save_memory"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": " 2๏ธโƒฃRetrieve ",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "86d44336-bab7-422f-9266-fcb513252d19",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.route }}",
                    "rightValue": "retrieve_memory"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": " 3๏ธโƒฃTelegram",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "29f37628-6381-46af-babb-74bf00b4a849",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.route }}",
                    "rightValue": "send_memories_to_telegram"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "4๏ธโƒฃGmail",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "fdb7c8aa-4108-43f6-8f6b-71cd8f383d2a",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.route }}",
                    "rightValue": "send_memories_to_gmail"
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "79de3862-b15a-4380-ab27-cfde66e8bb95",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        -620
      ],
      "parameters": {
        "color": 6,
        "height": 280,
        "content": "## 3๏ธโƒฃ Send Memories to Telegram"
      },
      "typeVersion": 1
    },
    {
      "id": "03df9947-9354-4f21-8b8a-fed130dcfc6a",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1540,
        -620
      ],
      "parameters": {
        "color": 6,
        "height": 280,
        "content": "## 4๏ธโƒฃ Send Memories to Gmail"
      },
      "typeVersion": 1
    },
    {
      "id": "9e8ee085-ec68-4f64-9098-877e166b1c37",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1020,
        -620
      ],
      "parameters": {
        "color": 4,
        "height": 280,
        "content": "## 2๏ธโƒฃ Retrieve Memories"
      },
      "typeVersion": 1
    },
    {
      "id": "9c3d6609-cc4a-4bf5-b914-ee57e085cecd",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        -620
      ],
      "parameters": {
        "color": 3,
        "height": 280,
        "content": "## Short Term Chat Memory"
      },
      "typeVersion": 1
    },
    {
      "id": "97f47b93-c1e1-4230-b84c-3b99aa140d55",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -620
      ],
      "parameters": {
        "color": 5,
        "height": 280,
        "content": "## Cloud LLM"
      },
      "typeVersion": 1
    },
    {
      "id": "4758ad55-d5f2-4a87-a05a-be465d803ca1",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        -1100
      ],
      "parameters": {
        "width": 1740,
        "height": 840,
        "content": "# ๐Ÿง  AI Agent Chatbot With Long Term Memory Tools"
      },
      "typeVersion": 1
    },
    {
      "id": "eb74a05d-7f34-4ba0-ae98-c22bb3637c6b",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -700
      ],
      "parameters": {
        "color": 7,
        "width": 1100,
        "height": 400,
        "content": "## ๐Ÿ› ๏ธ Agentic Long Term Memory Management Tool Options"
      },
      "typeVersion": 1
    },
    {
      "id": "d9d251d2-172b-4a8e-bec3-bf8f297628c6",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        -980
      ],
      "parameters": {
        "color": 4,
        "width": 300,
        "height": 240,
        "content": "## ๐Ÿ‘Try Me!"
      },
      "typeVersion": 1
    },
    {
      "id": "90554969-0b73-4d4d-87f2-37645b9f7f08",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        -160
      ],
      "parameters": {
        "color": 4,
        "width": 560,
        "height": 280,
        "content": "## 1๏ธโƒฃ Save Long Term Memories Tool"
      },
      "typeVersion": 1
    },
    {
      "id": "34cbb84d-48a5-480f-a7c3-81bbef24194a",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        140
      ],
      "parameters": {
        "color": 4,
        "width": 560,
        "height": 280,
        "content": "## 2๏ธโƒฃ Retrieve Long Term Memories Tool"
      },
      "typeVersion": 1
    },
    {
      "id": "dc23d68e-0f93-495a-aaa0-e4bb6f18870d",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        440
      ],
      "parameters": {
        "color": 6,
        "width": 840,
        "height": 360,
        "content": "## 3๏ธโƒฃ Send Memories to Telegram Tool"
      },
      "typeVersion": 1
    },
    {
      "id": "0ed43ec0-a39c-4323-9851-988e774302d7",
      "name": "์žฅ๊ธฐ ๊ธฐ์–ต ๊ฒ€์ƒ‰2",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1020,
        520
      ],
      "parameters": {
        "operation": "get",
        "documentURL": "1YFTbVGlnpdYF5FuA6grfyvzmcdjcPviClAqbJ5HJIlc"
      },
      "credentials": {
        "googleDocsOAuth2Api": {
          "id": "YWEHuG28zOt532MQ",
          "name": "Google Docs account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "17d2cef6-765c-4fb4-8af0-1ebc868f6669",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        820
      ],
      "parameters": {
        "color": 6,
        "width": 840,
        "height": 360,
        "content": "## 4๏ธโƒฃ Send Memories to Gmail Tool"
      },
      "typeVersion": 1
    },
    {
      "id": "03977fa0-a4cd-4cfe-8967-d6a5e3227200",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        -220
      ],
      "parameters": {
        "color": 2,
        "width": 300,
        "height": 380,
        "content": "## Memory Tool Router"
      },
      "typeVersion": 1
    },
    {
      "id": "994b124c-4f5b-44c6-845e-9886d7b5f07d",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -220
      ],
      "parameters": {
        "color": 7,
        "width": 260,
        "height": 380,
        "content": "## Receive Memory Tool Instructions from Agent"
      },
      "typeVersion": 1
    },
    {
      "id": "7c400ccf-af37-4b5a-8dfe-431a7d52286b",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -220
      ],
      "parameters": {
        "color": 7,
        "width": 920,
        "height": 1440,
        "content": "## ๐Ÿ› ๏ธ Long Term Memory Tool Kit"
      },
      "typeVersion": 1
    },
    {
      "id": "0b00f892-f98b-41be-952c-570da546f9f7",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        200
      ],
      "parameters": {
        "width": 720,
        "height": 1300,
        "content": "## Enhance Your AI Workflow with Long-Term Memory and Dynamic Tool Routing\n\n#### This n8n workflow empowers your AI agent with **long-term memory** and a **dynamic tools router**, enabling it to provide intelligent, context-aware responses while seamlessly managing tasks across multiple tools. By combining memory persistence and modular tool routing, this solution enhances the capabilities of your AI agent, making it smarter, more efficient, and highly adaptable.\n\n## ๐Ÿš€ How It Works\n\n#### ๐Ÿง  Long-Term Memory Management\n- The AI agent can **save** and **retrieve memories** using Google Docs as a storage system.\n- Persistent memory allows the agent to recall past interactions, user preferences, and contextual details for personalized responses.\n\n#### ๐Ÿ› ๏ธ Tools Router for Dynamic Task Management\n- A **tools router** directs tasks to the appropriate tools based on the AI agent's instructions.\n- Supported tools include:\n  - **Save Memories**: Store important data for future reference.\n  - **Retrieve Memories**: Access stored information when needed.\n  - **Send Notifications via Gmail or Telegram**: Share insights or updates with stakeholders.\n\n#### ๐Ÿค– AI-Powered Contextual Understanding\n- The workflow integrates an OpenAI GPT-based model to process user inputs intelligently.\n- The AI agent uses a **window buffer memory** for short-term context and leverages long-term memory when necessary.\n\n#### ๐Ÿ“ค Multi-Channel Notifications\n- Automatically send memory summaries or workflow updates via Gmail or Telegram for enhanced communication.\n\n---\n\n## ๐Ÿ”ง Setup Steps\n\n#### ๐Ÿ”‘ Configure API Credentials\nSet up API connections for:\n- **OpenAI** (for AI processing).\n- **Google Docs** (for long-term memory storage).\n- **Gmail/Telegram** (for notifications).\n\n#### โš™๏ธ Customize Workflow Parameters\n- Adjust the AI agent's system message to align with your specific use case or tone.\n- Define routing rules in the tools router to suit your workflow needs.\n\n#### ๐Ÿงช Test & Deploy\n- Test the workflow by interacting with the AI agent and verifying:\n  - Accurate memory saving/retrieval.\n  - Correct task routing via the tools router.\n  - Seamless notification delivery.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "timezone": "America/Vancouver",
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1"
  },
  "versionId": "5d92d73f-0341-4ab1-937e-6be387f6ea52",
  "connections": {
    "25d99971-263a-44ef-abb0-b517743f72eb": {
      "ai_tool": [
        [
          {
            "node": "5f24781e-4f9a-4e33-8d33-ce281f7bcc46",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "1c732f83-fb09-4a51-8aea-0f9d29d1cdfe": {
      "main": [
        [
          {
            "node": "c9e9715d-c691-4516-9e0c-cf393a18d814",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "677f62ba-b009-48da-988e-e58d5063d005",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "0ed43ec0-a39c-4323-9851-988e774302d7",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "147ddd8d-6e42-44c0-95ca-9ab791f9452f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2481fe73-9ef8-4e95-b7e5-38634b55837c": {
      "ai_languageModel": [
        [
          {
            "node": "fcf5872c-fcdc-445e-b095-f9cef14453b8",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "9a45e091-c91c-4505-a8df-7a2e1d079200": {
      "ai_languageModel": [
        [
          {
            "node": "c1d05bb9-390b-43aa-820d-45115df07f5c",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "c1d05bb9-390b-43aa-820d-45115df07f5c": {
      "main": [
        [
          {
            "node": "a77e8f01-889f-44b5-b4e1-493a97aa028c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0c9738d3-176a-4074-8340-ecfa3d9f9f7d": {
      "ai_tool": [
        [
          {
            "node": "5f24781e-4f9a-4e33-8d33-ce281f7bcc46",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "ad644413-6587-415f-b7be-d58c05b94138": {
      "ai_languageModel": [
        [
          {
            "node": "5f24781e-4f9a-4e33-8d33-ce281f7bcc46",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "c9e9715d-c691-4516-9e0c-cf393a18d814": {
      "main": [
        [
          {
            "node": "306272bf-e264-4cfb-b8b6-8c0af1de3f14",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fcf5872c-fcdc-445e-b095-f9cef14453b8": {
      "main": [
        [
          {
            "node": "e3f1172b-ce33-4cce-8126-88e19afc53c6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7967ec27-432e-4d35-b7e0-89eb84120754": {
      "ai_memory": [
        [
          {
            "node": "5f24781e-4f9a-4e33-8d33-ce281f7bcc46",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "f1d0b366-70d5-4da3-937b-ea08afd364e4": {
      "ai_tool": [
        [
          {
            "node": "5f24781e-4f9a-4e33-8d33-ce281f7bcc46",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "677f62ba-b009-48da-988e-e58d5063d005": {
      "main": [
        [
          {
            "node": "152b6922-8600-4fdb-8372-3b0102a7b73a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0ed43ec0-a39c-4323-9851-988e774302d7": {
      "main": [
        [
          {
            "node": "fcf5872c-fcdc-445e-b095-f9cef14453b8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "147ddd8d-6e42-44c0-95ca-9ab791f9452f": {
      "main": [
        [
          {
            "node": "c1d05bb9-390b-43aa-820d-45115df07f5c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6d12369e-38de-44c1-b764-64d6d9a79a25": {
      "ai_tool": [
        [
          {
            "node": "5f24781e-4f9a-4e33-8d33-ce281f7bcc46",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "d5947a9d-bad4-4db7-8cdb-dc277928565a": {
      "main": [
        [
          {
            "node": "1c732f83-fb09-4a51-8aea-0f9d29d1cdfe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "076b0856-5ba4-498e-b279-21cf042f7f07": {
      "main": [
        [
          {
            "node": "5f24781e-4f9a-4e33-8d33-ce281f7bcc46",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
์ž์ฃผ ๋ฌป๋Š” ์งˆ๋ฌธ

์ด ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉํ•˜๋‚˜์š”?

์œ„์˜ JSON ๊ตฌ์„ฑ ์ฝ”๋“œ๋ฅผ ๋ณต์‚ฌํ•˜์—ฌ n8n ์ธ์Šคํ„ด์Šค์—์„œ ์ƒˆ ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  "JSON์—์„œ ๊ฐ€์ ธ์˜ค๊ธฐ"๋ฅผ ์„ ํƒํ•œ ํ›„, ๊ตฌ์„ฑ์„ ๋ถ™์—ฌ๋„ฃ๊ณ  ํ•„์š”์— ๋”ฐ๋ผ ์ธ์ฆ ์„ค์ •์„ ์ˆ˜์ •ํ•˜์„ธ์š”.

์ด ์›Œํฌํ”Œ๋กœ์šฐ๋Š” ์–ด๋–ค ์‹œ๋‚˜๋ฆฌ์˜ค์— ์ ํ•ฉํ•œ๊ฐ€์š”?

๊ณ ๊ธ‰ - ๋นŒ๋”ฉ ๋ธ”๋ก, ์ธ๊ณต์ง€๋Šฅ

์œ ๋ฃŒ์ธ๊ฐ€์š”?

์ด ์›Œํฌํ”Œ๋กœ์šฐ๋Š” ์™„์ „ํžˆ ๋ฌด๋ฃŒ์ด๋ฉฐ ์ง์ ‘ ๊ฐ€์ ธ์™€ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค๋งŒ, ์›Œํฌํ”Œ๋กœ์šฐ์—์„œ ์‚ฌ์šฉํ•˜๋Š” ํƒ€์‚ฌ ์„œ๋น„์Šค(์˜ˆ: OpenAI API)๋Š” ์‚ฌ์šฉ์ž ์ง์ ‘ ๋น„์šฉ์„ ์ง€๋ถˆํ•ด์•ผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๊ด€๋ จ ์›Œํฌํ”Œ๋กœ์šฐ ์ถ”์ฒœ

โœจ๐Ÿฉท ์ž๋™ํ™” ์†Œ์…œ ๋ฏธ๋””์–ด ์ฝ˜ํ…์ธ  ๋ฐฐํฌ ๊ณต์žฅ + ์‹œ์Šคํ…œ ํŠœ๋‹ ์กฐํ•ฉ
โœจ๐Ÿฉท ์ž๋™ํ™” ์†Œ์…œ ๋ฏธ๋””์–ด ์ฝ˜ํ…์ธ  ๋ฐฐํฌ ๊ณต์žฅ + ์‹œ์Šคํ…œ ํŠœ๋ง ์กฐํ•ฉ
If
Set
Code
+
If
Set
Code
100 ๋…ธ๋“œJoseph LePage
๋งˆ์ผ€ํŒ…
๐Ÿ‹๐Ÿค– DeepSeek AI ๋Œ€๋ฆฌ์ž + Telegram + ์žฅ๊ธฐ ๊ธฐ์–ต ๐Ÿง 
๐Ÿ‹๐Ÿค– DeepSeek AI ๋Œ€๋ฆฌ์ž + Telegram + ์žฅ๊ธฐ ๊ธฐ์–ต ๐Ÿง 
If
Set
Merge
+
If
Set
Merge
23 ๋…ธ๋“œJoseph LePage
์ธ๊ณต์ง€๋Šฅ
๐Ÿค–๐Ÿง‘โ€๐Ÿ’ป n8nๅˆ›ไฝœ่€…ๆŽ’่กŒๆฆœ๋ณด๊ณ ์„œ์šฉ AI ๋Œ€๋ฆฌ์ž
๐Ÿค–๐Ÿง‘โ€๐Ÿ’ป AI ๋Œ€๋ฆฌ์ธ, ์ตœ์ƒ์œ„ n8nๅˆ›ไฝœ่€… ๋žญํ‚น ๋ณด๊ณ ์„œ์— ์‚ฌ์šฉ
Set
Sort
Gmail
+
Set
Sort
Gmail
49 ๋…ธ๋“œJoseph LePage
์ธ๊ณต์ง€๋Šฅ
Braze์—์„œ ๊ธฐ์กด ์ด๋ฉ”์ผ ํ…œํ”Œ๋ฆฟ ์—…๋ฐ์ดํŠธ
AI๋ฅผ ์‚ฌ์šฉํ•œ Instagram, Facebook, LinkedIn ๋ฐ X์šฉ ์†Œ์…œ ๋ฏธ๋””์–ด ์ฝ˜ํ…์ธ  ์ž๋™ํ™”
Set
Gmail
Merge
+
Set
Gmail
Merge
73 ๋…ธ๋“œLukaszB
๋””์ž์ธ
โœจ๐Ÿฉท์ž๋™ํ™”์†Œ์…œ ๋ฏธ๋””์–ด์ฝ˜ํ…์ธ ๊ฒŒ์‹œๅทฅๅŽ‚ + ็ณป็ปŸๆ็คบ็ป„ๅˆ
ๅŸบไบŽๅŠจๆ€็ณป็ปŸๆ็คบ๋ฐGPT-4o์˜AI้ฉฑๅŠจๅคšๅนณๅฐ์†Œ์…œ ๋ฏธ๋””์–ด์ฝ˜ํ…์ธ ๅทฅๅŽ‚
If
Set
Code
+
If
Set
Code
100 ๋…ธ๋“œAmit Mehta
์ฝ˜ํ…์ธ  ์ œ์ž‘
Mistral ํŠธ๋žœ์Šคํฌ๋ฆฝ์…˜
Google ์บ˜๋ฆฐ๋”์™€ ์‚ฌ์šฉ์ž ์ •์˜ ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ MCP ์„œ๋ฒ„ ๊ตฌ์ถ•
Set
Switch
Debug Helper
+
Set
Switch
Debug Helper
32 ๋…ธ๋“œSolomon
๋นŒ๋”ฉ ๋ธ”๋ก
์›Œํฌํ”Œ๋กœ์šฐ ์ •๋ณด
๋‚œ์ด๋„
๊ณ ๊ธ‰
๋…ธ๋“œ ์ˆ˜39
์นดํ…Œ๊ณ ๋ฆฌ2
๋…ธ๋“œ ์œ ํ˜•13
๋‚œ์ด๋„ ์„ค๋ช…

๊ณ ๊ธ‰ ์‚ฌ์šฉ์ž๋ฅผ ์œ„ํ•œ 16+๊ฐœ ๋…ธ๋“œ์˜ ๋ณต์žกํ•œ ์›Œํฌํ”Œ๋กœ์šฐ

์ €์ž
Joseph LePage

Joseph LePage

@joe

As an AI Automation consultant based in Canada, I partner with forward-thinking organizations to implement AI solutions that streamline operations and drive growth.

์™ธ๋ถ€ ๋งํฌ
n8n.io์—์„œ ๋ณด๊ธฐ โ†’

์ด ์›Œํฌํ”Œ๋กœ์šฐ ๊ณต์œ 

์นดํ…Œ๊ณ ๋ฆฌ

์นดํ…Œ๊ณ ๋ฆฌ: 34