Content AI Agent
A live AI agent, built in n8n: turns a written or spoken request into social posts, an image, or a video, calling the n8n AI Agent backend to generate it. Type or speak a request below to trigger a live generation and watch the result come back.
Try it
3 of 3 tries leftResult
Your result will show up here.
Built on n8n: One agent, many tools
This demo runs on two layers of architecture. The first is the agent itself that is built on n8n. The agent has access to tools/capabilities like image generation, video generation, image editing, multi-platform social copywriting and each capability is its own separate n8n sub-workflow. When a request is received, the agent reasons about which tool it actually needs to complete the request and calls the appropriate sub-workflows. For different sub-workflows, I explored different AI models to weigh real cost-versus-quality tradeoffs, rather than defaulting to a single provider. A nice byproduct of that search was ending up with a different provider for each capability (image, video, copy), which turned into a good hands-on practice for architecting around different model connectors and APIs.
The second layer was bringing that agent to the web, which came with a few practical frontend constraints.
- Async execution: Video generation takes 30 to 60 seconds, which easily hits browser and edge timeouts. Solved by setting up a submit-and-poll flow so the webhook acknowledges immediately while the server handles generation in the background.
- Session scoping: To prevent concurrent visitors from leaking context into each other's chats, I isolated conversation memory per user using a browser-generated ID.
- Format mismatches: Live traffic caught an edge case where browser-recorded audio defaulted to a video/webm container that Gemini's transcription endpoint rejected. Fixed by forcing the correct metadata in n8n before sending the payload.
Key design decisions
- To avoid HTTP timeouts on long-running AI generation tasks, implemented an asynchronous submit-and-poll pattern. The client receives an instant task acknowledgement, keeping the UI responsive while background workers finish processing.
- Scoped conversation memory strictly to individual user sessions, so that concurrent visitors never leak context into each other's chats.
- Chose a different AI provider for each capability on purpose. I wanted to prioritize hands-on experience across different models and connector patterns, while keeping cost near-zero and with usable quality: Gemini 3.5 Flash Lite for reasoning and transcription (fast, cheap), Cloudflare Workers AI's SDXL-Lightning for image generation (free), and Pollinations.ai for video generation (low-cost).
Tech stack
- n8n — Workflow orchestration
- Google Gemini — Reasoning + transcription
- Cloudflare Workers AI (SDXL-Lightning) — Image generation/editing
- Pollinations.ai(wan-fast) — Video generation
- Google Drive + Sheets — Asset storage/logging
- Telegram Bot API — Original interface
- Next.js + Cloudflare Pages — This site