Automation library · Chat assistants

Product photos into ad campaigns with Gemini and Claude

Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to Gemini and OpenRouter. 17 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model: Gemini, OpenRouter

17 stepsMedium: a working afternoon
2Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 5Logic 5Service 6

The steps in the order they run, from what starts it.

  1. 1Structured Output ParserOutput Parser StructuredModel
  2. 2think_toolTool ThinkModel
  3. 3On New MessageTelegram triggerStarts it
  4. 4OpenRouter Chat ModelLm Chat Open RouterModel
  5. 5Creative AgentAgentModel
  6. 6CONFIGSetLogic
  7. 7Loop: Ad VariationsSplit OutLogic
  8. 8Auth: Verify User IDIfLogic
  9. 9Config: Source URLSetLogic
  10. 10Check: Has Photo?IfLogic
  11. 11HTTP: Download SourceHttp RequestService
  12. 12Get Photo File PathTelegramService
  13. 13Data: Binary PrepExtract From FileService
  14. 14Gemini Vision: AnalyzeGoogle GeminiModel
  15. 15HTTP: Generate ImageHttp RequestService
  16. 16Data: Convert ResponseConvert To FileService
  17. 17Telegram: Send ResultTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
17, with 2 branches
Size
Medium: a working afternoon
Connects to
Telegram
Model
Gemini, OpenRouter

Questions

What does it need to run?

An n8n account, plus your own Telegram account, and a key for Gemini and OpenRouter. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls Gemini and OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 17 steps before you point it at anything that matters.