{
  "openruna_format": "flow-graph-v1",
  "title": "🤖🧠 AI Agent Chatbot + LONG TERM Memory + Note Storage + Telegram",
  "slug": "ai-agent-chatbot-long-term-memory-note-storage-telegram-2",
  "source_filename": "2053_Telegram_Googledocs_Automate_Triggered.json",
  "nodes": [
    {
      "id": "When chat message received",
      "name": "When chat message received",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "gpt-4o-mini",
      "name": "gpt-4o-mini",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Chat Response",
      "name": "Chat Response",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Window Buffer Memory",
      "name": "Window Buffer Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "Save Long Term Memories",
      "name": "Save Long Term Memories",
      "integration": "googleDocsTool",
      "kind": "action"
    },
    {
      "id": "Retrieve Long Term Memories",
      "name": "Retrieve Long Term Memories",
      "integration": "googleDocs",
      "kind": "action"
    },
    {
      "id": "Telegram Response",
      "name": "Telegram Response",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "DeepSeek-V3 Chat",
      "name": "DeepSeek-V3 Chat",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "AI Tools Agent",
      "name": "AI Tools Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Save Notes",
      "name": "Save Notes",
      "integration": "googleDocsTool",
      "kind": "action"
    },
    {
      "id": "Retrieve Notes",
      "name": "Retrieve Notes",
      "integration": "googleDocs",
      "kind": "action"
    },
    {
      "id": "Aggregate",
      "name": "Aggregate",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Merge",
      "to": "Aggregate"
    },
    {
      "from": "Aggregate",
      "to": "AI Tools Agent"
    },
    {
      "from": "AI Tools Agent",
      "to": "Telegram Response"
    },
    {
      "from": "AI Tools Agent",
      "to": "Chat Response"
    },
    {
      "from": "Retrieve Notes",
      "to": "Merge"
    },
    {
      "from": "When chat message received",
      "to": "Retrieve Long Term Memories"
    },
    {
      "from": "When chat message received",
      "to": "Retrieve Notes"
    },
    {
      "from": "Retrieve Long Term Memories",
      "to": "Merge"
    }
  ]
}