To build any example: – press Space to add nodes – drag connections – press Ctrl/⌘+Enter to run – add Preview nodes to inspect intermediate results
Pattern 1: Simple Pipeline
Use Case: Transform input → process → output
Example: Image Enhancement
When to Use:
- Simple data transformations
- Single input, single output
- No conditional logic needed
Pattern 2: Agent-Driven Generation
Use Case: LLM generates content based on input
Example: Image to Story
When to Use:
- Creative generation tasks
- Multimodal transformations (image→text→audio)
- Need semantic understanding
Key Nodes:
Agent: General-purpose LLM agent with streamingSummarizer: Specialized for text summarizationListGenerator: Streams list of items
Pattern 3: Streaming with Multiple Previews
Use Case: Show intermediate results during generation
Example: Movie Poster Generator
When to Use:
- Complex multi-stage generation
- User needs to see progress
- Agent planning + execution workflow
Key Concepts:
- Strategy Phase: Agent plans approach
- Preview Nodes: Show intermediate results
- ListGenerator: Streams generated prompts
- Image Generation: Final output
Pattern 4: RAG (Retrieval-Augmented Generation)
Use Case: Answer questions using documents as context
Example: Chat with Docs
When to Use:
- Question-answering over documents
- Need factual accuracy from specific sources
- Reduce LLM hallucinations
Key Components:
- Search: Query vector database for relevant documents
- Format: Inject retrieved context into prompt
- Generate: Stream LLM response with context
Pattern 5: Database Persistence
Use Case: Store generated data for later retrieval
Example: AI Flashcard Generator with SQLite
When to Use:
- Need persistent storage
- Building apps with memory
- Agent workflows that need to recall past interactions
Key Nodes:
CreateTable: Initialize database schemaInsert: Add recordsQuery: Retrieve recordsUpdate: Modify recordsDelete: Remove records
Database Flow:
- Create table structure
- Generate data with agent
- Insert into database
- Query and display results
Pattern 6: Email & Web Integration
Use Case: Process emails or web content
Example: Summarize Newsletters
When to Use:
- Automate email processing
- Monitor RSS feeds
- Extract web content
Key Nodes:
GmailSearch(lib.mail.GmailSearch): Search Gmail with queriesTemplate: Format email fields into text (lib.mail also providesAddLabel,MoveToArchive,SendEmail)FetchRSSFeed: Get RSS feed entriesGetRequest: Fetch web content
Pattern 7: Multi-Modal Workflows
Use Case: Convert between different media types
Example: Audio to Image
When to Use:
- Converting between media types
- Creating rich multimedia experiences
- Accessibility applications
Common Chains:
- Audio → Text → Image
- Image → Text → Audio
- Video → Audio → Text → Summary
Pattern 8: Advanced Image Processing
Use Case: AI-powered image transformations
Example: Style Transfer
When to Use:
- Style transfer between images
- Controlled image generation
- Preserving structure while changing style
Key Techniques:
- Img2Img: Transform while maintaining composition (
StableDiffusionV3MediumImageToImage, orStableDiffusion/StableDiffusionXLfor text-to-image) - Image-to-Text: Generate descriptions (
ImageToText) - Canny: Edge detection preprocessing
Pattern 9: Text-to-Video Generation
Use Case: Generate videos from text descriptions
Example: Cinematic Video from Prompt
When to Use:
- Create videos from text descriptions
- Generate concept videos and storyboards
- Produce cinematic content from prompts
- Rapid video prototyping
Key Nodes:
KlingVideoV16ProTextToVideo: High-quality text-to-video (Kling 1.6 Pro)MinimaxHailuo23ProTextToVideo: Professional quality (Hailuo 2.3)Sora2TextToVideo: OpenAI Sora 2 modelWanProTextToVideo: Alibaba Wan
Configuration Tips:
- Duration: 5-10 seconds for most models
- Resolution: 768P for faster generation, 1080P for quality
- Aspect ratios: 16:9 (landscape), 9:16 (portrait), 1:1 (square)
Pattern 10: Image-to-Video Generation
Use Case: Animate images into videos
Example: Bring Images to Life
When to Use:
- Animate static images
- Create motion from photographs
- Multi-image video generation
- Product showcases from images
Key Nodes:
KlingVideoV16StandardImageToVideo: Kling 1.6 Standard image-to-videoMinimaxHailuo02ProImageToVideo: High-quality animation (Hailuo 02 Pro)SeeDanceV15ProImageToVideo: ByteDance SeeDance 1.5 ProWanV225bImageToVideo: Alibaba Wan 2.2
Advanced Pattern: Multi-Image Animation
Pattern 11: Talking Avatar Generation
Use Case: Create lip-synced avatar videos
Example: Virtual Presenter
When to Use:
- Create virtual presenters
- Generate lip-synced avatar videos
- Educational content with AI speakers
- Virtual influencers and spokespersons
Key Nodes:
KlingVideoAiAvatarV2Pro: Pro-quality avatar generationKlingVideoAiAvatarV2Standard: Standard mode for faster generationInfinitalk: Audio-driven video generation
Workflow: Audio + Image → Talking Avatar
- Photo Input: Front-facing portrait image
- Audio Track: Speech recording or TTS output
- Optional Prompt: Guide emotions and expressions
- Mode Selection: Standard (faster) or Pro (higher quality)
Pattern 12: Image Enhancement & Upscaling
Use Case: Improve image quality and resolution
Example: HD Image Upscaling
When to Use:
- Upscale low-resolution images
- Remove noise and artifacts
- Enhance image quality
- Prepare images for high-resolution displays
Key Nodes:
TopazUpscaleImage: AI-powered upscaling to higher resolutions- Denoise option: Reduces artifacts during upscaling
Configuration:
- Higher target resolutions for crisp output
- Denoise: Enable for noisy input images
- Best for: Enhancing old photos, smartphone images, web graphics
Pattern 13: Storyboard to Video
Use Case: Convert image sequences to coherent videos
Example: Visual Story Generation
When to Use:
- Create narrative videos from storyboards
- Combine multiple scenes into one video
- Professional video pre-visualization
- Animated story creation
Key Nodes:
Sora2ImageToVideoPro: OpenAI Sora 2 Pro keyframe-driven generation- Supports: 1-3 keyframe images
- Output: Smooth transitions between scenes
Workflow:
- Story Prompt: Describe the narrative arc
- Keyframes: Provide 1-3 scene images
- Generation: Sora creates smooth transitions
- Duration: 1-60 frames configurable