{
  "name": "AI research assistant via Telegram (GPT-4o mini + DeepSeek R1 + SerpAPI)",
  "nodes": [
    {
      "id": "2103bf29-ca9c-48a0-91f7-9ff81f2385b1",
      "name": "DeepSeek R1 AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -320,
        368
      ]
    },
    {
      "id": "c11f364a-f8f5-4894-b95a-c0aba8abdf70",
      "name": "DeepSeek Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "position": [
        -336,
        608
      ]
    },
    {
      "id": "2f14ea0b-67de-4eb2-bd20-37134914ae00",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -160,
        608
      ]
    },
    {
      "id": "09271ba5-f172-4463-a56e-e68c6509624e",
      "name": "Research AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        64,
        368
      ]
    },
    {
      "id": "34c0f954-121a-44cd-af1b-eda624d4e05a",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        48,
        608
      ]
    },
    {
      "id": "d1fcc1af-f669-42b7-9886-b59e3fd08f1c",
      "name": "SerpAPI",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        272,
        608
      ]
    },
    {
      "id": "be7af2e5-f78e-4354-9f37-3eaa4a47fd35",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -640,
        192
      ]
    },
    {
      "id": "c9d87edb-252b-4dc9-9d1b-67d5aeeb4e38",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        512,
        272
      ]
    },
    {
      "id": "60e010f3-cca8-4081-9ebc-e424444ce0f0",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        -336
      ],
      "parameters": {
        "width": 540,
        "height": 1240,
        "content": "## AI Research Assistant via Telegram (GPT-4o mini + DeepSeek R1 + SerpAPI)\n\n\n\n## 👥 Who’s it for\n\nThis workflow is perfect for anyone who wants to receive AI-powered research summaries directly on Tel"
      }
    },
    {
      "id": "eec392b0-3809-4d7f-8db8-cb31d378fe73",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -768,
        -336
      ],
      "parameters": {
        "width": 360,
        "height": 1240,
        "content": "## 📲 Telegram Trigger Node\n\nThis node starts the workflow when a user sends a message to your Telegram bot.\n\nTo set it up:\n\nCreate a bot via @BotFather\n\nCopy the bot token and add it to your Telegram "
      }
    },
    {
      "id": "c8c3f661-1d73-4117-ab00-67a634fd2ad2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        -336
      ],
      "parameters": {
        "width": 360,
        "height": 1240,
        "content": "## 📲 🧠 DeepSeek R1 Agent (with Simple Memory)\n\nThis AI Agent receives the user’s original question and reformulates it if necessary to make it clearer or more focused.\n\nIt also uses a Simple Memory no"
      }
    },
    {
      "id": "78f47408-284b-4ae3-a575-a056fca6d135",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -336
      ],
      "parameters": {
        "width": 360,
        "height": 1240,
        "content": "## 🔍 Research AI Agent (OpenAI GPT-4o mini + SerpAPI)\n\nThis agent performs the core task: researching the question using real-time web results from SerpAPI.\nIt summarizes the most relevant results wit"
      }
    },
    {
      "id": "6ba3e890-7a90-48e3-ab12-4cc8be49376a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        -336
      ],
      "parameters": {
        "width": 360,
        "height": 1240,
        "content": "## 📲 ✉️ Send Telegram Message\n\nThis node sends the final response back to the user on Telegram.\nIt uses the same bot credentials as the trigger and pulls the chat_id from the original message.\nThe con"
      }
    }
  ],
  "connections": {
    "SerpAPI": {
      "ai_tool": [
        [
          {
            "node": "Research AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "DeepSeek R1 AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "DeepSeek R1 AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Research AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Research AI Agent": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "DeepSeek R1 AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek R1 AI Agent": {
      "main": [
        [
          {
            "node": "Research AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}