{
  "name": "Telegram research assistant for academic papers using Gemini AI and Decodo",
  "nodes": [
    {
      "id": "400ad243-eec7-4d97-8b02-3297a97bbe7e",
      "name": "Decodo",
      "type": "@decodo/n8n-nodes-decodo.decodoTool",
      "position": [
        4240,
        512
      ]
    },
    {
      "id": "74f140f1-a919-4229-b371-71f97de54ff8",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        4128,
        512
      ]
    },
    {
      "id": "bb8c9fc3-fc33-48bd-95f0-b89bf3a8988a",
      "name": "Send Fallback Text",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3088,
        624
      ]
    },
    {
      "id": "86ad6b93-6e93-4256-97ae-a6e71c2cfca0",
      "name": "Start Telegram Bot",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        2640,
        352
      ]
    },
    {
      "id": "62aa237c-2f6d-453d-a7b4-e7d193c7cade",
      "name": "Detect Message Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        2864,
        320
      ]
    },
    {
      "id": "b52b6402-1b68-4dce-8631-66d8f812e79b",
      "name": "Download Telegram Photo",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3088,
        144
      ]
    },
    {
      "id": "93952b16-c71b-443c-9fd4-4d8861b7f910",
      "name": "Download Telegram Voice",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3088,
        432
      ]
    },
    {
      "id": "c33a4ccc-8623-482c-828b-61600a8e2e80",
      "name": "Analyze Image Content",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        3312,
        144
      ]
    },
    {
      "id": "cda3ab72-0cfe-4222-85a4-995a962dde8e",
      "name": "Transcribe Voice Message",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        3312,
        432
      ]
    },
    {
      "id": "c83570ff-9886-496a-8187-417b976f5a4a",
      "name": "Format Image Text",
      "type": "n8n-nodes-base.set",
      "position": [
        3536,
        144
      ]
    },
    {
      "id": "b1da19d9-08bf-42de-871e-4d64f97b21c4",
      "name": "Format Voice Text",
      "type": "n8n-nodes-base.set",
      "position": [
        3536,
        432
      ]
    },
    {
      "id": "9698e757-be38-4e4b-b4d3-0bc83250915a",
      "name": "Prepare Chat Data",
      "type": "n8n-nodes-base.set",
      "position": [
        3760,
        288
      ]
    },
    {
      "id": "cee806e9-34ec-409a-bcc1-b68dc722aade",
      "name": "Research Summary Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        4048,
        288
      ]
    },
    {
      "id": "720cf61e-d06e-4643-9680-445df1b9a186",
      "name": "Gemini URL Interpreter",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        3792,
        -64
      ]
    },
    {
      "id": "f82195fb-e239-4053-b125-1c120626bdab",
      "name": "Gemini Research Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        3984,
        512
      ]
    },
    {
      "id": "e8c97abf-6f59-4a87-80c1-791a5a92468c",
      "name": "Check Telegram Message Length",
      "type": "n8n-nodes-base.if",
      "position": [
        4448,
        288
      ]
    },
    {
      "id": "73ccb2b8-e063-4dfe-929e-da5a9a26eded",
      "name": "Convert Output to Text File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        4672,
        192
      ]
    },
    {
      "id": "3f0282db-41dc-4e5c-81fc-214d0dec3e6f",
      "name": "Send Research Summary File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        4896,
        192
      ]
    },
    {
      "id": "85eafa78-d286-4b68-aa27-119c52ed98d3",
      "name": "Send Research Summary Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        4672,
        384
      ]
    },
    {
      "id": "0228d966-3120-4396-a34e-2c832d473043",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2560,
        -720
      ],
      "parameters": {
        "width": 816,
        "height": 816,
        "content": "![Waha Johan](https://drive.google.com/thumbnail?id=1L2Ipo5Q41Uyw7KE_CJSnOPPArR7FXOFG&sz=w2000)\n## AI Research Assistant Using Gemini AI and Decodo\n\nSign up for Decodo [HERE](https://visit.decodo.com/"
      }
    },
    {
      "id": "f5167a16-bfdb-4eb6-befc-ddaf088424c8",
      "name": "Generate Search URL Insights",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        3728,
        -288
      ]
    },
    {
      "id": "a0e3fe58-606f-4733-808d-38b79d71be68",
      "name": "Define Search URLs",
      "type": "n8n-nodes-base.set",
      "position": [
        3504,
        -176
      ]
    },
    {
      "id": "f916272b-b6be-4192-81b1-c186ae0f6afe",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3424,
        -608
      ],
      "parameters": {
        "width": 624,
        "height": 704,
        "content": "## Search URL Insights\nUse this workflow section to automatically generate clear explanation of academic search URLs (e.g., Google Scholar, arXiv, PubMed, etc.). It helps the `Research Summary Agent` "
      }
    },
    {
      "id": "5f1dacfb-b816-40dd-922b-d7f621a28d26",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2560,
        272
      ],
      "parameters": {
        "width": 256,
        "height": 256,
        "content": "### Create a Telegram bot using BotFather and paste its API key into n8n credentials"
      }
    },
    {
      "id": "f34cc5d4-2231-498a-9716-aeafec3ddbc1",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3952,
        192
      ],
      "parameters": {
        "width": 384,
        "height": 240,
        "content": "### Replace _{{INPUT_SEARCH_URL_INSIGHTS}}_ in the system message with your search URL insights (see to red sticky note)"
      }
    },
    {
      "id": "9aa3825c-e7d2-4162-bdcc-f8aaccdf9b14",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4096,
        -608
      ],
      "parameters": {
        "width": 1120,
        "height": 656,
        "content": "@[youtube](PDc0MwcicDQ)\n"
      }
    }
  ],
  "connections": {
    "Decodo": {
      "ai_tool": [
        [
          {
            "node": "Research Summary Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Research Summary Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Format Image Text": {
      "main": [
        [
          {
            "node": "Prepare Chat Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Voice Text": {
      "main": [
        [
          {
            "node": "Prepare Chat Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Chat Data": {
      "main": [
        [
          {
            "node": "Research Summary Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define Search URLs": {
      "main": [
        [
          {
            "node": "Generate Search URL Insights",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start Telegram Bot": {
      "main": [
        [
          {
            "node": "Detect Message Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detect Message Type": {
      "main": [
        [
          {
            "node": "Download Telegram Photo",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare Chat Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Download Telegram Voice",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Fallback Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Image Content": {
      "main": [
        [
          {
            "node": "Format Image Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Research Model": {
      "ai_languageModel": [
        [
          {
            "node": "Research Summary Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Gemini URL Interpreter": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Search URL Insights",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Research Summary Agent": {
      "main": [
        [
          {
            "node": "Check Telegram Message Length",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Telegram Photo": {
      "main": [
        [
          {
            "node": "Analyze Image Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Telegram Voice": {
      "main": [
        [
          {
            "node": "Transcribe Voice Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe Voice Message": {
      "main": [
        [
          {
            "node": "Format Voice Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Output to Text File": {
      "main": [
        [
          {
            "node": "Send Research Summary File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Telegram Message Length": {
      "main": [
        [
          {
            "node": "Convert Output to Text File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Research Summary Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}