{
  "name": "Telegram chat summarizer with AI - using @telepilotco/n8n-nodes-telepilot",
  "nodes": [
    {
      "id": "ce077951-bcd3-47b5-833f-ab6ffa45ba42",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -460,
        -220
      ]
    },
    {
      "id": "46856e0f-8bc1-43b4-ad99-0231ddae0cf8",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        200,
        -120
      ]
    },
    {
      "id": "0ffe7cdc-e5eb-46dd-9572-a6f904ae300a",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -80,
        140
      ]
    },
    {
      "id": "1a6e5385-1e93-4fa0-a5c5-009a50f1b4ce",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        140,
        140
      ]
    },
    {
      "id": "cb26e1b0-b6bf-4f2c-ba21-c9c67dc52631",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        120,
        360
      ]
    },
    {
      "id": "0278536a-f7d2-4e6b-af64-a3ca68f2f78a",
      "name": "MongoDB Chat Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryMongoDbChat",
      "position": [
        280,
        360
      ]
    },
    {
      "id": "47c84dce-62f2-44e2-9f83-1d477ac2ff9d",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -460,
        -20
      ]
    },
    {
      "id": "cfbe9deb-68cf-43e6-8c63-00d95265c8c1",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        220,
        -360
      ]
    },
    {
      "id": "f439d06c-b213-486d-8372-48895a3fc3e6",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        -560
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f318fa9a-2a33-4b0f-9f8f-8407448e31a2",
      "name": "Filter Last 2 hours",
      "type": "n8n-nodes-base.filter",
      "position": [
        640,
        -120
      ]
    },
    {
      "id": "359f44ca-ff53-49ad-b03b-3cb7f292f83a",
      "name": "Get message text",
      "type": "n8n-nodes-base.set",
      "position": [
        420,
        -120
      ]
    },
    {
      "id": "c6263e66-e4c0-4ac1-bd90-605c8cdfe758",
      "name": "Skip Empty Message",
      "type": "n8n-nodes-base.filter",
      "position": [
        880,
        -120
      ]
    },
    {
      "id": "413334ab-8855-4cac-9869-b9f51ca279b9",
      "name": "Send Summary To Chat",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        540,
        140
      ]
    },
    {
      "id": "80c82a08-c34a-4c41-b773-6e7f4040cd88",
      "name": "Last Messages History",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        -20,
        -120
      ]
    },
    {
      "id": "7d0d6d19-0631-4db2-82cf-0a5b08afd6c4",
      "name": "Get Chat Id By Name",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        -240,
        -120
      ]
    },
    {
      "id": "d48357c3-9e56-4e31-b76b-f2d5d663a1ab",
      "name": "Try this for check Login",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        740,
        -360
      ]
    },
    {
      "id": "2c1f5fa4-0c8b-4b1f-8811-611ce3d4d17d",
      "name": "Telegram Login",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        440,
        -360
      ]
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send Summary To Chat",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Get message text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get message text": {
      "main": [
        [
          {
            "node": "Filter Last 2 hours",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Chat Id By Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Skip Empty Message": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Last 2 hours": {
      "main": [
        [
          {
            "node": "Skip Empty Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Chat Id By Name": {
      "main": [
        [
          {
            "node": "Last Messages History",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MongoDB Chat Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Last Messages History": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Telegram Login",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get Chat Id By Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}