{
  "name": "AI Telegram bot agent: smart assistant & content summarizer",
  "nodes": [
    {
      "id": "4a19458b-0bf2-45db-8146-734e4e8b352b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        60
      ],
      "parameters": {
        "width": 400,
        "height": null,
        "content": "Quick-Start Telegram Echo Bot\n\nA single-node Telegram bot that parses /help, /summary <URL>, or /img <prompt> and returns either a help menu, a 10–12-point article summary, or an “image in progress” a"
      }
    },
    {
      "id": "d2cceb34-b932-48ce-baf7-43535cfbad29",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        420
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Listener\n\nWatches for any new message from Telegram and kicks the flow off."
      }
    },
    {
      "id": "a279a398-4b55-4055-9c9f-8ea937d4d974",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        780
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Command Router\n\nChecks if the message starts with /help, /summary, or /img, and sends it down the right path."
      }
    },
    {
      "id": "868bb629-1288-4c8f-816b-001a7ca56be2",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        20
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Help Responder\n\nWhen it sees /help, replies with a simple list of commands and how to use them."
      }
    },
    {
      "id": "ec490084-aa34-41bd-8dfd-4e0cdfee5dab",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        340,
        740
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Summary Checker\n\nSees if the text begins with /summary. If yes, it moves on to fetch the article; if no, skips onward."
      }
    },
    {
      "id": "370842c3-18d9-42cd-946d-694e90a41ff1",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        220
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Fetcher\n\nGoes to the provided URL and downloads the page’s HTML.\n"
      }
    },
    {
      "id": "0217818c-85e4-43bb-a8d8-5053394c773f",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        780,
        1180
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Image Prompt Checker\n\nSees if the text begins with /img. If yes, forwards the prompt to the image generator; if not, ends the flow."
      }
    },
    {
      "id": "ba617c66-4b13-41a1-9428-6d1afc4f458f",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1100,
        440
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Text Extractor\n\nPulls out just the main article text (e.g. everything inside <body>)."
      }
    },
    {
      "id": "df9b404e-90d7-4f66-bcd4-9d64595e7b88",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1320,
        1360
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Image Generator\n\nSends your prompt to OpenAI’s image endpoint (or your chosen image API)."
      }
    },
    {
      "id": "e7eda1c8-e860-4df2-9d4f-5d12e52b0551",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1520,
        220
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Summarizer\n\nSends the raw article text to OpenAI and asks for a 10–12-point professional bullet-point summary."
      }
    },
    {
      "id": "50331c27-388c-490d-b9d7-ff5fe8449290",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1940,
        1020
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Image Acknowledger\n\nTells the user “Got it—your image is being made!” (and later you can hook this up to send the actual picture URL)."
      }
    },
    {
      "id": "7315f25a-d63d-4f49-a43f-87dc0ff64ffb",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2140,
        220
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Summary Sender\n\nDelivers the bullet-point summary back to the user in Telegram.\n"
      }
    },
    {
      "id": "bcae4d20-e9af-4008-88b6-cfa1a6dcd6c9",
      "name": "Listener",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -140,
        460
      ]
    },
    {
      "id": "8bbcc856-b323-4785-a8ec-9de61052531a",
      "name": "Command Router",
      "type": "n8n-nodes-base.if",
      "position": [
        160,
        600
      ]
    },
    {
      "id": "09bc69c7-8852-46a8-be96-ae10bc652cd8",
      "name": "Help Responder",
      "type": "n8n-nodes-base.telegram",
      "position": [
        380,
        220
      ]
    },
    {
      "id": "2780e14d-7ebd-43f4-87e9-1d5c7ead564e",
      "name": "Summary Checker",
      "type": "n8n-nodes-base.if",
      "position": [
        400,
        540
      ]
    },
    {
      "id": "bb3faac2-e3cf-4633-8a69-4e6aedefd0be",
      "name": "Fetcher",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        760,
        420
      ]
    },
    {
      "id": "7df71ce1-5680-46b5-a4fd-3fe3169aaaa5",
      "name": "Text Extractor",
      "type": "n8n-nodes-base.html",
      "position": [
        1160,
        700
      ]
    },
    {
      "id": "f1856af1-7236-42f9-88b5-f86e91b42262",
      "name": "Summarizer",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1520,
        440
      ]
    },
    {
      "id": "7fcdd8ab-1afa-4985-a9dd-bb9a13e723bf",
      "name": "Summary Sender",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2060,
        440
      ]
    },
    {
      "id": "c4f73e58-995e-4a6a-a785-72e248121742",
      "name": "Image Prompt Checker",
      "type": "n8n-nodes-base.if",
      "position": [
        800,
        1020
      ]
    },
    {
      "id": "3115364c-3632-4922-82f9-93b45eb9fcb6",
      "name": "Image Generator",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1400,
        1160
      ]
    },
    {
      "id": "7c01b0fa-7937-4688-945e-fc949c8a3f40",
      "name": "Image Acknowledger",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2000,
        820
      ]
    },
    {
      "id": "e0eae618-d330-4b74-b5a4-528a28ec91c6",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1260,
        220
      ],
      "parameters": {
        "width": 480,
        "height": 740,
        "content": "=======================================\n            WORKFLOW ASSISTANCE\n=======================================\nFor any questions or support, please contact:\n    Yaron@nofluff.online\n\nExplore more tip"
      }
    }
  ],
  "connections": {
    "Fetcher": {
      "main": [
        [
          {
            "node": "Text Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Listener": {
      "main": [
        [
          {
            "node": "Command Router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarizer": {
      "main": [
        [
          {
            "node": "Summary Sender",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Command Router": {
      "main": [
        [
          {
            "node": "Help Responder",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Summary Checker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Help Responder": {
      "main": [
        [
          {
            "node": "Command Router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Text Extractor": {
      "main": [
        [
          {
            "node": "Summarizer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Generator": {
      "main": [
        [
          {
            "node": "Image Acknowledger",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summary Checker": {
      "main": [
        [
          {
            "node": "Fetcher",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Image Prompt Checker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Prompt Checker": {
      "main": [
        [
          {
            "node": "Image Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}