Follow this step-by-step guide to build your own AI ads generation system
Estimated Setup Time: 2-3 hours | Generated Ads Per Run: 10+ | Cost Per Batch: $10-20
Before starting, ensure you have these accounts and tools ready:
Sign up at n8n.io - Free tier available, $20/month for production use
Get from platform.openai.com - Need credits for GPT-4 and DALL-E access
Free Google account - We'll use Drive for file storage and management
5-10 high-performing ads you like + quality product images
Goal: Set up the workflow foundation and teach AI to understand your products and ad styles.
Click the "Test" button - you should see green checkmark indicating successful trigger setup.
Run node - should return list of your uploaded reference ads with file metadata.
For Software Products: Use screenshots, app interface mockups, or demo video thumbnails instead of physical products.
Goal: Combine and structure all analysis data for strategic processing.
If you have multiple images, this prevents data from multiplying exponentially in later steps.
Should show one aggregated item containing all analysis data in structured format.
Goal: Generate multiple unique ad prompts based on strategic analysis.
Should return clean JSON array with 10 structured prompt objects, each containing the specified fields.
Pro Tip: Use the "Pin Data" feature to save successful prompt generation results and avoid re-running expensive steps during testing.
Goal: Generate final ad images and save them for immediate use.
Note: Optional but recommended to prevent API errors when generating multiple images simultaneously.
Search YouTube for "N8N OpenAI image generation API setup" for detailed video tutorials on API connection.
Successfully converts API response to viewable PNG image files with timestamps and IDs.
Run complete workflow - should generate 10 unique ads saved to your Google Drive within 5-10 minutes!