Overview
This n8n workflow automates the creation of 9:16 aspect ratio images optimized for short-form video content and thumbnails. It integrates multiple tools to retrieve content, generate scripts, and create AI-generated imagery.
Key Features
– Trigger Workflow Manually
The workflow starts when triggered manually in n8n.
– Retrieve Brand Guidelines
Fetch brand elements like style, tone, and guidelines from Airtable.
– SEO Keywords and Blog Post Retrieval
Retrieves blog posts and associated SEO keywords from Airtable to form the basis of image content.
– Content Preparation
Uses GPT-4 to prepare a 4-scene script and thumbnail prompts for short-form videos.
– AI Image Generation
Uses Leonardo.ai API to generate:
– Thumbnail Images
– Scene-specific Images (9:16 Aspect Ratio)
– Airtable Asset Management
Generated assets (images) are saved back into Airtable with metadata like URLs and file sizes.
Tools and Integrations
– n8n: Workflow automation platform.
– OpenAI: Generates scripts and prompts (GPT-4O-MINI).
– Leonardo.ai: AI tool for improving prompts and generating high-quality images.
– Airtable: Used as a data source for brand guidelines, blog posts, and to store generated assets.
Workflow Steps
1. Manual Trigger
Initiate the workflow.
2. Retrieve Brand and SEO Guidelines
Fetch essential brand elements like tone, style, and keywords.
3. Filter and Fetch Blog Content
Search for blog posts relevant to selected SEO keywords.
4. Script Preparation
Use GPT-4 to generate a script with image prompts for scenes and thumbnails.
5. Image Generation
Call Leonardo.ai to create:
– Scene Images in 9:16 Aspect Ratio.
– A Thumbnail Image with an improved prompt.
6. Store Assets
Save generated assets (images) to Airtable for future use.
Workflow Structure
– Nodes Breakdown:
– Manual Trigger: Start the workflow.
– Get Brand Guidelines: Pull brand-related information (style, tagline, tone, etc.) from Airtable.
– Set Guidelines: Prepare fetched data.
– Get SEO Keywords: Retrieve keywords to filter relevant content.
– Keyword Filter: Filter results for specified keywords (e.g., “AI Automation”).
– Script Prep: Generate 4-scene scripts and prompts with GPT-4.
– Leo – Improve Prompt: Improve image prompts for clarity and detail.
– Leo – Generate Image: Create AI-generated images for scenes and thumbnails.
– Wait Nodes: Ensures Leonardo image generation is complete.
– Add Asset Info: Store the generated images back into Airtable with metadata.
API Credentials Required
Ensure the following credentials are configured in n8n:
– OpenAI API Key
– Leonardo.ai API Key
– Airtable API TokenOutput
– Generated Images: High-quality AI-generated images with a 9:16 aspect ratio.
– Saved Metadata: Asset details (URLs, sizes, types) stored in Airtable.
Usage
– Import this workflow into n8n.
– Set up your Airtable API, Leonardo.ai API, and OpenAI API credentials.
– Run the workflow manually.
– Monitor image generation and check the Airtable output for results.
Tags
OpenAI
RunwayML
Leonardo
Airtable
Video AutomationAuthor
AlexK1919
AI-Native Workflow Architect