Transform Product Photos into Ad Campaigns with Gemini Vision and Claude via Telegram

Go to Workflow
1 views
Built by Alvin Chandra Alvin Chandra
Created on June 07, 2026

Description

AI Creative Director: Transform Phone Photos into Viral Ad Campaigns

Description
Turn amateur product snapshots into high-conversion advertising assets automatically. This agentic workflow acts as your personal Art Director. Simply send a photo to a Telegram bot, and the AI will analyze the image, conceptualize 3 distinct marketing angles, and generate professional-grade commercial photography.

How it Works
Ingest: Receives a photo and user caption via Telegram.
Analyze: Uses Gemini Vision to understand the product and critique the original image quality.
Ideate: A LangChain Agent (powered by Claude Sonnet via OpenRouter) acts as a Creative Director to brainstorm 3 unique ad concepts (e.g., Cyberpunk, Luxury, Minimalist).
Create: Generates high-fidelity images using the Gemini 3 Pro API.
Deliver: Sends the new ad creatives back to you on Telegram.

Key Features
Multi-Modal Pipeline:** Chains Vision models (Gemini) with Reasoning models (Claude) for superior context awareness.
Structured Output:** Uses LangChain's Structured Output Parser to ensure consistent JSON formats.
Secure Configuration:** Features a centralized CONFIG node to easily manage API keys and user IDs without editing complex logic.
Visual Verification:* Includes an authentication check to ensure only *you (the authorized user) can trigger the bot.

Prerequisites
n8n Version:** 1.0+ (requires LangChain nodes).
Telegram:** A Bot Token and your personal User ID.
Google Cloud:** An API Key with access to Gemini models.
OpenRouter:** An API Key for accessing Claude Sonnet (or your preferred LLM).

Setup Instructions
Import the Workflow: Paste the JSON into your n8n canvas.
Open the CONFIG Node: Locate the green node at the start of the workflow.
Enter Credentials:
authorized_user_id: Your numeric Telegram User ID (to prevent strangers from using your API credits).
telegram_bot_token: Your Bot Father token.
google_api_key: Your Gemini API key.
Activate: Toggle the workflow to "Active" and send a photo to your bot!

Tags
#AI #LangChain #Gemini #Telegram #Marketing #Agent #ImageGeneration #OpenRouter

Nodes Used (7)

AI Agent
@n8n/n8n-nodes-langchain.agent
Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
HTTP Request
n8n-nodes-base.httpRequest
OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
Telegram
n8n-nodes-base.telegram
Think Tool
@n8n/n8n-nodes-langchain.toolThink