{
  "name": "Generate hyper-realistic images from Telegram via Gemini Nano Banana 2",
  "nodes": [
    {
      "id": "f1b97dbf-fd7e-4f88-ac2d-71f124559ce4",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1200,
        304
      ]
    },
    {
      "id": "29bae06a-2e7a-4a20-8e14-90ecbd1c54ea",
      "name": "Send Acknowledgment",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -960,
        304
      ]
    },
    {
      "id": "6a34ee3a-10e1-4d22-8502-f4738c50f8cf",
      "name": "Config",
      "type": "n8n-nodes-base.set",
      "position": [
        -720,
        304
      ]
    },
    {
      "id": "a105cf67-99c8-49ef-9a28-27d0dc47279b",
      "name": "Expand to JSON Prompt",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -480,
        304
      ]
    },
    {
      "id": "f7fe310b-8a01-4e96-a1c1-9de2eb002077",
      "name": "Parse and Prepare",
      "type": "n8n-nodes-base.code",
      "position": [
        -240,
        288
      ]
    },
    {
      "id": "510871c8-ad50-4d25-89b7-48a2f6e80ccb",
      "name": "Generate Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -48,
        272
      ]
    },
    {
      "id": "8f360468-f104-4292-8670-8f9faf78f069",
      "name": "Send Photo to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        576,
        128
      ]
    },
    {
      "id": "1483b797-4b7f-403d-8923-29d31870f9fd",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1904,
        0
      ],
      "parameters": {
        "width": 456,
        "height": 752,
        "content": "## Generate hyper-realistic images from Telegram messages with Nano Banana 2\n\nSend any image description to your Telegram bot and receive a hyper-realistic AI-generated photo back in seconds. The work"
      }
    },
    {
      "id": "64f1d8c3-89ad-4252-aa45-7dfe9356f0f5",
      "name": "Section 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1216,
        480
      ],
      "parameters": {
        "width": 360,
        "height": 124,
        "content": "## Trigger & Acknowledgment\nReceives the Telegram message and immediately sends a confirmation reply."
      }
    },
    {
      "id": "f08bef29-4a29-458c-a85a-84da474ada1c",
      "name": "Section 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -752,
        480
      ],
      "parameters": {
        "width": 564,
        "height": 124,
        "content": "## Prompt Engineering\nThe Config node stores the system prompt and user input. Gemini Pro expands the plain-text request into a full Dense Narrative JSON prompt following the Nano Banana 2 schema."
      }
    },
    {
      "id": "02ebc309-9558-4ec0-8e67-39a14584533b",
      "name": "Upload to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        576,
        288
      ]
    },
    {
      "id": "c1c6485c-df10-419f-831d-27f23fca6ab4",
      "name": "Send Failure Notification",
      "type": "n8n-nodes-base.telegram",
      "position": [
        224,
        400
      ]
    },
    {
      "id": "50c265f8-917b-477d-9574-ab13fa9b22d9",
      "name": "Send Failure Notification1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -256,
        624
      ]
    },
    {
      "id": "2d4a3c45-86b1-4e61-8a21-599680b2ef3f",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        368,
        176
      ]
    },
    {
      "id": "54e03022-8bcb-455e-b659-ac3a5d0ec35a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -256,
        -16
      ],
      "parameters": {
        "width": 944,
        "height": 128,
        "content": "## Image Generation & Delivery\nGemini Flash generates the image via OpenRouter and returns a base64 URL. The Get Image URL node extracts it, Convert to File decodes it to binary, then the image is sen"
      }
    },
    {
      "id": "5e44f480-020d-4e2b-875f-9ee7432405c0",
      "name": "Get Image URL",
      "type": "n8n-nodes-base.set",
      "position": [
        192,
        176
      ]
    }
  ],
  "connections": {
    "Config": {
      "main": [
        [
          {
            "node": "Expand to JSON Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image URL": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image": {
      "main": [
        [
          {
            "node": "Get Image URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Failure Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Send Photo to Telegram",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Send Acknowledgment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse and Prepare": {
      "main": [
        [
          {
            "node": "Generate Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Acknowledgment": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Expand to JSON Prompt": {
      "main": [
        [
          {
            "node": "Parse and Prepare",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Failure Notification1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Google Drive": {
      "main": [
        []
      ]
    }
  }
}