{
  "name": "Generate AI videos from Telegram messages with Nano Banana & Veo-3",
  "nodes": [
    {
      "id": "b45ea84d-14ac-4b59-bb49-c15b148fa2c7",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -2528,
        1312
      ]
    },
    {
      "id": "778a1aca-ab5b-40b6-8f2a-26a3c5688f21",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -3248,
        728
      ]
    },
    {
      "id": "af683b31-52f5-4b6a-9d8b-073b33136ee8",
      "name": "Image Gen (Nano Banana)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1776,
        736
      ]
    },
    {
      "id": "5348286b-8213-41d0-962d-998f0737f491",
      "name": "Telegram: Send Photo",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -672,
        720
      ]
    },
    {
      "id": "f54bb79f-6f71-43df-8229-56ef95558f35",
      "name": "Telegram: Send Video",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -1632,
        1312
      ]
    },
    {
      "id": "c1dfa4a0-99e5-45f6-9ba7-065bf87da981",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -3024,
        728
      ]
    },
    {
      "id": "adb2cf39-adfd-465d-8aa2-ab02acce0c57",
      "name": "Transcribe a recording",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -2576,
        632
      ]
    },
    {
      "id": "2d0a4beb-61be-41b4-9013-e4a8b97430bc",
      "name": "Transcribed Audio",
      "type": "n8n-nodes-base.set",
      "position": [
        -2352,
        632
      ]
    },
    {
      "id": "c64b8143-194a-44aa-94f9-1ce915cecc94",
      "name": "Text Message",
      "type": "n8n-nodes-base.set",
      "position": [
        -2352,
        824
      ]
    },
    {
      "id": "43dd7fe4-fc18-414b-b6a2-09055dcc868e",
      "name": "Download Audio1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -2800,
        632
      ]
    },
    {
      "id": "76cfbf6d-d8a1-4021-a628-dfa70a776382",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -2128,
        624
      ]
    },
    {
      "id": "d62f235a-a587-4bd3-8af4-ad6a3f8ee935",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -2128,
        832
      ]
    },
    {
      "id": "7fae697c-bc24-4513-9bbd-9d0cab8414fb",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1984,
        800
      ]
    },
    {
      "id": "e0117af9-9d78-4bd3-b946-0bac95b88cac",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1552,
        728
      ]
    },
    {
      "id": "34ddc5e0-0108-4e4a-b2b7-e8be3629d9e2",
      "name": "Get Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1328,
        656
      ]
    },
    {
      "id": "548d27da-2049-4438-9ec3-0ae840d8be4b",
      "name": "Image created",
      "type": "n8n-nodes-base.if",
      "position": [
        -1104,
        728
      ]
    },
    {
      "id": "ab874839-5b4a-4d9b-98de-392aaa4b9f5f",
      "name": "Download Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -896,
        832
      ]
    },
    {
      "id": "d2545c6e-18ac-45d1-8eb7-903e7b70a6b5",
      "name": "Download Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1856,
        1312
      ]
    },
    {
      "id": "b39785b1-4599-4286-9adb-16653684393b",
      "name": "Get Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2304,
        1248
      ]
    },
    {
      "id": "ee07e63f-03a6-403c-b755-74d92237f303",
      "name": "Generate Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2752,
        1312
      ]
    },
    {
      "id": "844d7072-9b9e-40e3-b66f-15b47097aef8",
      "name": "Video created",
      "type": "n8n-nodes-base.if",
      "position": [
        -2080,
        1312
      ]
    },
    {
      "id": "596756e2-0cc5-49b9-a0f4-dbc8304ed20a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3424,
        448
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "fa91822f-5393-43a1-9d20-c82ee7c269fa",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3040,
        448
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "918d8b10-9184-4a68-bcd1-21aed6c5768c",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2192,
        448
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e64f9367-4f14-4da6-8864-57525ae04bee",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        448
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "ba314a4e-f424-4800-8e1c-8077947d3e11",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2896,
        1152
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Get Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Get Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Download Audio1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Text Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Image Gen (Nano Banana)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image": {
      "main": [
        [
          {
            "node": "Image created",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Video": {
      "main": [
        [
          {
            "node": "Video created",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Text Message": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image created": {
      "main": [
        [
          {
            "node": "Download Image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Video created": {
      "main": [
        [
          {
            "node": "Download Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image": {
      "main": [
        [
          {
            "node": "Telegram: Send Photo",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Video": {
      "main": [
        [
          {
            "node": "Telegram: Send Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Audio1": {
      "main": [
        [
          {
            "node": "Transcribe a recording",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Transcribed Audio": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe a recording": {
      "main": [
        [
          {
            "node": "Transcribed Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Gen (Nano Banana)": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}