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

2,772 views · 🎬 Content Creation & Video

Description

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


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)

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?


Security & reliability tips


Advanced: voice input (optional)


Example prompt patterns (keep it short & generic)

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


Final notes

🔗 Nodes Used

HTTP Request, Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model, Structured Output Parser

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup