Built an n8n system that turns a product name and a short brief in Google Sheets into ready-to-post ads: AI writes the caption, generates the image (or reformats your own photo) and delivers Instagram and Facebook formats to Google Drive. An Error Trigger workflow sends an instant Telegram alert if anything fails.
Product name in a sheet → AI ad copy + image → platform-ready formats → instant error alerts
Producing ad creatives for several platforms was slow, manual and repetitive.
The main challenges were:
Built a modular 5-workflow n8n system:
| Workflow | Role | What it does |
|---|---|---|
| WF1 Orchestrator | Schedule trigger | Reads new sheet rows, filters pending ones and requested platforms, sets status, calls the other workflows, writes results back |
| WF2 AI Content Generator | GPT agent | Writes an ad caption (≤150 characters) and a detailed image prompt designed to survive cropping to any format |
| WF3 Image Generator | gpt-image-1 | Generates the image per platform, uploads to Google Drive, shares the link |
| WF4 Image Adapter | Photo branch | If the user supplied a photo, adapts it to each platform format instead of generating a new one |
| WF5 Error Handler | Error Trigger | Catches failures in any workflow, sends a Telegram alert, logs it, marks the row |
| Output | Size |
|---|---|
| Instagram Story | 9:16 (1080×1920) |
| Instagram Post | 1:1 (1080×1080) |
| Facebook Post | 3:2 (1536×1024) |