Generate UGC images from form submissions with Google Gemini and Telegram
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs when someone submits an n8n form (“Advertising image generator”). Along the way it connects Telegram. It also calls openrouter.ai over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Advertising image generator”).
- Merge: merges the data from its input branches
- Extract the form file (Extract from File): extracts data from a file (binary to propery)
- Creating a data URL (Code): runs custom JavaScript code
- Mapping (Edit Fields (Set)): sets 2 fields: image, personnage
- Google gemini (HTTP Request): calls openrouter.ai (POST)
- Transform URL data (Code): runs custom JavaScript code
- Download the file (Convert to File): converts data to a file (to binary)
- Send a photo message (Telegram): send photo
Services it uses
Other Telegram + OpenRouter templates (136)
HTTP calls to: openrouter.ai
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Telegram
n8n-nodes-base.telegram - n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Convert to File
n8n-nodes-base.convertToFile
From the author
This workflow automates the process of generating personalized UGC (User-Generated Content) images based on form submissions. It accepts a form with a character type (e.g., male/female) and an uploaded image, merges them, sends them to an AI model (Google…