🎬 Create AI dream videos with analysis using Veo3 and Telegram

262 views · 🎬 Content Creation & Video

Description

Who is this for?

What it does

  1. Receives dream descriptions via Telegram bot commands
  2. Parses visual style selection from 8 options (cinematic, ghibli, surreal, vintage, horror, abstract, watercolor, cyberpunk)
  3. Analyzes the dream using AI to extract themes, symbols, and psychological meaning
  4. Generates optimized video prompt tailored to the selected style with audio descriptions
  5. Creates AI video with native audio using Google Veo3 (single API call)
  6. Logs to Google Sheets as a searchable dream journal
  7. Sends video + analysis back to user via Telegram

How to set up

Estimated setup time: 15 minutes

Step 1: Create Telegram Bot

  1. Message @BotFather on Telegram
  2. Send /newbot and follow prompts
  3. Copy the API token

Step 2: Get fal.ai API Key

  1. Sign up at fal.ai
  2. Generate API key from dashboard
  3. In n8n, create Header Auth credential:
    • Name: Authorization
    • Value: Key YOUR_FAL_API_KEY

Step 3: Get OpenRouter API Key

  1. Sign up at openrouter.ai
  2. Generate API key
  3. Add to n8n as OpenRouter credential

Step 4: Set up Google Sheets (Optional)

  1. Create new spreadsheet with columns: Timestamp, Username, Style, Dream, Theme, Emotion, Type, Meaning, Video URL
  2. Connect Google Sheets credential in n8n
  3. Select your document and sheet in the “Log to Google Sheets” node

Step 5: Connect Credentials

  1. Add Telegram credential to all Telegram nodes
  2. Add fal.ai Header Auth to both HTTP Request nodes
  3. Add OpenRouter credential to the LLM node

Requirements

ServicePurposeCost
Telegram BotUser interfaceFree
fal.ai (Veo3)Video + audio generation~$0.10-0.15/video
OpenRouterLLM for dream analysis~$0.01-0.03/request
Google SheetsDream journal storageFree

How to customize

Commands

CommandDescription
/dream [text]Generate video in cinematic style
/dream [style] [text]Generate with specific style
/stylesShow all available styles

Example

Input: /dream ghibli I was flying over a forest where the trees had glowing leaves

Output: 8-second AI video with magical Ghibli-style visuals, ambient soundtrack, plus psychological analysis of flight symbolism and nature connection themes.

🔗 Nodes Used

Google Sheets, HTTP Request, Telegram, Telegram Trigger, AI Agent, OpenRouter Chat Model

📥 Import

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

📖 Importing guide · 🔑 Credential setup