Skip to main content

Generate AI videos from Telegram messages with Nano Banana & Veo-3

Workflow preview

Workflow preview
100%
Generate AI videos from Telegram messages with Nano Banana & Veo-3 preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

How to use the provided n8n workflow (step‑by‑step), what matters, what it’s good for, and costs per run. What this workflow does (in simple terms) 1) You write (or speak) your idea in Telegram . 2...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.wait, n8n-nodes-base.telegramtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.telegram, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by SuS.

Original n8n.io source

1.1 Workflow description

Title
Generate AI videos from Telegram messages with Nano Banana & Veo-3
Workflow name
Generate AI videos from Telegram messages with Nano Banana & Veo-3

How to use the provided n8n workflow (step‑by‑step), what matters, what it’s good for, and costs per run.


What this workflow does (in simple terms)

  1. You write (or speak) your idea in Telegram.
  2. The workflow builds two short prompts:
    • Image prompt → generates one thumbnail via KIE.ai – Nano Banana (Gemini 2.5 Flash Image).
    • Video prompt → starts a Veo‑3 (KIE.ai) video job using the thumbnail as init image.
  3. You receive the thumbnail first, then the short video back in Telegram once rendering completes.

Typical output: 1 PNG thumbnail + 1 short MP4 video (e.g., 8–12 s, 9:16).


Why this is useful

  • Rapid ideation: Turn a quick text/voice idea into a ready‑to‑post thumbnail + matching short video.
  • Consistent look: The video uses the thumbnail as init image, keeping colors, objects and mood consistent.
  • One chat = full pipeline: Everything happens directly inside Telegram—no context switches.
  • Agency‑ready: Collect ideas from clients/team chats, and deliver outputs quickly.

What you need before importing

  1. KIE.ai account & API key

    • Sign up/in at KIE.ai, go to Dashboard → API / Keys.
    • Copy your KIE_API_KEY (keep it private).
  2. Telegram Bot (BotFather)

    • In Telegram, open @BotFather → command /newbot.
    • Choose a name and a unique username (must end with bot).
    • Copy your Bot Token (keep it private).
  3. Your Telegram Chat ID (browser method)

    • Send any message to your bot so you have a active chat
    • Open Telegram web and the chat with the bot
    • Find the chatid in the URL

Import & minimal configuration (n8n)

  1. Import the provided workflow JSON in n8n.
  2. Create Credentials:
    • Telegram API: paste your Bot Token.
    • HTTP (KIE.ai): usually you’ll pass Authorization: Bearer {{ $env.KIE_API_KEY }} directly in the HTTP Request node headers, or make a generic HTTP credential that injects the header.
  3. Replace hardcoded values in the template:
    • Chat ID: use an Expression like {{$json.message.chat.id}} from the Telegram Trigger (prefer dynamic over hardcoded IDs).
    • Authorization headers: never in query params—always in Headers.
    • Content‑Type spelling: Content-Type (no typos). `

How to run it (basic flow)

  1. Start the workflow (activate trigger).
  2. Send a message to your bot, e.g.
    glass hourglass on a black mirror floor, minimal, elegant
  3. The bot replies with the thumbnail (PNG), then the Veo‑3 video (MP4).

If you send a voice message, the flow will download & transcribe it first, then proceed as above.


Pricing (rule of thumb)

  • Image (Nano Banana via KIE.ai): ~ $0.02–$0.04 per image (plan‑dependent).
  • Video (Veo‑3 via KIE.ai):
    • Fast: ~ $0.40 per 8 seconds (~$0.05/s)
    • Quality: ~ $2.00 per 8 seconds (~$0.25/s)

Typical run (1 image + 8 s Fast video)$0.42–$0.44.

> These are indicative values. Check your KIE.ai dashboard for the latest pricing/quotas.


Why KIE.ai over the “classic” Google API?

  • Cheaper in practice for short video clips and image gen in this pipeline.
  • One vendor for both image & video (same auth, similar responses) = less integration hassle.
  • Quick start: Playground/tasks/status endpoints are n8n‑friendly for polling workflows.

Security & reliability tips

  • Never hardcode API keys or Chat IDs into nodes—use Credentials or Environment variables.
  • Add IF + error paths after each HTTP node:
    • If status != 200 → Send friendly Telegram message (“Please try again”) + log to admin.
  • If you use callback URLs for video completion, ensure the URL is publicly reachable (n8n Webhook URL). Otherwise, stick to polling.
  • For rate limits, add a Wait node and limit concurrency in workflow settings.
  • Keep aspect & duration consistent across prompt + API calls to avoid unexpected crops.

Advanced: voice input (optional)

  • The template supports voice via a Switch → Download → Transcribe (Whisper/OpenAI).
  • Ensure your OpenAI credential is set and your n8n instance can fetch the audio file from Telegram.

Example prompt patterns (keep it short & generic)

  • Thumbnail prompt: “Minimal, elegant, surreal [OBJECT], clean composition, 9:16”
  • Video prompt: “Cinematic [OBJECT]. slow camera move, elegant reflections, minimal & surreal mood, 9:16, 8–12s.”

You can later replace the simple prompt builder with a dedicated LLM step or a fixed style guide for your brand.


Final notes

  • This template focuses on a solid, reliable pipeline first. You can always refine prompts later.
  • Start with Veo‑3 Fast to keep iteration costs low; switch to Quality for final renders.
  • Consider saving outputs (S3/Drive) and logging prompts/URLs to a sheet for audit & analytics.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 2 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1

Block 3 - Image Gen (Nano Banana)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Telegram: Send Photo

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1

Block 5 - Telegram: Send Video

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1

Block 6 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 7 - Transcribe a recording

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 8 - Transcribed Audio

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Text Message

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Download Audio1

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 11 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 12 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 13 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 14 - Wait1

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 15 - Get Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - Image created

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 17 - Download Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 18 - Download Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Get Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 20 - Generate Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 21 - Video created

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 22 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate AI videos from Telegram messages with Nano Banana & Veo-3
Complexity advanced
Nodes 26
Categories Content Creation, Multimodal AI
Author SuS
Published 02 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8189/8189.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate AI videos from Telegram messages with Nano Banana & Veo-3 do?

How to use the provided n8n workflow (step‑by‑step), what matters, what it’s good for, and costs per run. What this workflow does (in simple terms) 1) You write (or speak) your idea in Telegram . 2...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.