Skip to main content

Transform product photos into ad campaigns with Gemini Vision and Claude via Telegram

Workflow preview

Workflow preview
100%
Transform product photos into ad campaigns with Gemini Vision and Claude via Telegram preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.toolthink, n8n-nodes-base.telegramtrigger, n8n-nodes-base.if, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.googlegemini

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Alvin Chandra.

Original n8n.io source

1.1 Workflow description

Title
Transform product photos into ad campaigns with Gemini Vision and Claude via Telegram
Workflow name
Transform product photos into ad campaigns with Gemini Vision and Claude via Telegram

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

  1. Ingest: Receives a photo and user caption via Telegram.
  2. Analyze: Uses Gemini Vision to understand the product and critique the original image quality.
  3. 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).
  4. Create: Generates high-fidelity images using the Gemini 3 Pro API.
  5. 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

  1. Import the Workflow: Paste the JSON into your n8n canvas.
  2. Open the CONFIG Node: Locate the green node at the start of the workflow.
  3. 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.
  4. Activate: Toggle the workflow to "Active" and send a photo to your bot!

Tags

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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Main Sticky

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Section 1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section 2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Section 3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - CONFIG

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 7 - think_tool

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1.1

Block 8 - On New Message

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 9 - Auth: Verify User ID

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 10 - Get Photo File Path

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 11 - Check: Has Photo?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - Gemini Vision: Analyze

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 13 - Creative Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 14 - Loop: Ad Variations

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 15 - Config: Source URL

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - HTTP: Download Source

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 17 - Data: Binary Prep

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 18 - HTTP: Generate Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 19 - Data: Convert Response

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 20 - Telegram: Send Result

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 21 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

3. Summary Table

Workflow Transform product photos into ad campaigns with Gemini Vision and Claude via Telegram
Complexity advanced
Nodes 21
Categories Content Creation, Multimodal AI
Author Alvin Chandra
Published 24 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11190/11190.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Transform product photos into ad campaigns with Gemini Vision and Claude via Telegram do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.