Create AI Dream Videos with Analysis using Veo3 and Telegram

Go to Workflow
0 views
Built by 福壽一貴 福壽一貴
Created on June 16, 2026

Description

Who is this for?

Dream journaling enthusiasts** who want to visualize and record their dreams
Self-improvement practitioners** interested in dream analysis and psychology
Content creators** looking for unique, AI-generated dream-based content
Wellness coaches and therapists** who use dream work with clients

What it does

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

How to set up

Estimated setup time: 15 minutes

Step 1: Create Telegram Bot
Message @BotFather on Telegram
Send /newbot and follow prompts
Copy the API token

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

Step 3: Get OpenRouter API Key
Sign up at openrouter.ai
Generate API key
Add to n8n as OpenRouter credential

Step 4: Set up Google Sheets (Optional)
Create new spreadsheet with columns: Timestamp, Username, Style, Dream, Theme, Emotion, Type, Meaning, Video URL
Connect Google Sheets credential in n8n
Select your document and sheet in the "Log to Google Sheets" node

Step 5: Connect Credentials
Add Telegram credential to all Telegram nodes
Add fal.ai Header Auth to both HTTP Request nodes
Add OpenRouter credential to the LLM node

Requirements

| Service | Purpose | Cost |
|---------|---------|------|
| Telegram Bot | User interface | Free |
| fal.ai (Veo3) | Video + audio generation | ~$0.10-0.15/video |
| OpenRouter | LLM for dream analysis | ~$0.01-0.03/request |
| Google Sheets | Dream journal storage | Free |

How to customize

Change LLM**: Replace OpenRouter with OpenAI, Anthropic, or other providers
Add styles**: Edit the STYLES object in "Parse Dream Command" node
Modify analysis**: Edit system prompt in "AI Dream Analyzer Agent" node
Change video model**: Replace Veo3 URL with Kling, Luma, or other fal.ai models
Skip logging**: Remove or disable the Google Sheets node

Commands

| Command | Description |
|---------|-------------|
| /dream [text] | Generate video in cinematic style |
| /dream [style] [text] | Generate with specific style |
| /styles | Show 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 (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
Telegram
n8n-nodes-base.telegram