Skip to main content

Generate UGC images from form submissions with Google Gemini and Telegram

Workflow preview

Workflow preview
100%
Generate UGC images from form submissions with Google Gemini and 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

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

Best for

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

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.telegram, n8n-nodes-base.formtrigger, n8n-nodes-base.extractfromfile, n8n-nodes-base.merge, n8n-nodes-base.code, n8n-nodes-base.converttofile

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate UGC images from form submissions with Google Gemini and Telegram
Workflow name
Generate UGC images from form submissions with Google Gemini and Telegram

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 Gemini via OpenRouter) for creative generation, and posts the resulting content as a Telegram photo message.

Who’s it for

This automation template is designed for marketers, AI creators, content teams, or interactive community platforms that want to let users submit content (image + character type), enrich it with AI-generated descriptions, and instantly publish results to Telegram — without writing a single line of code.

How it works

  • Trigger: Workflow starts when a form is submitted by a user.

  • Extract file: The uploaded image file is converted to a Base64 string.

  • Merge data: The character type and image data are combined into one payload.

  • Format to Data URL: The image is wrapped as a proper data:image/... format for API use.

  • Prepare payload: The text and image are mapped into a structure compatible with Gemini API.

  • Generate AI content: Sends the input to Google Gemini (via OpenRouter) to generate a UGC description.

  • Transform response: Cleans and extracts the result from Gemini’s response.

  • Convert back to file: Transforms the Base64 image back into a real image file.

  • Send to Telegram: The image and its AI-generated description are sent as a photo message to your Telegram channel.

How to use

  • Set up a form with a dropdown for character type (e.g., Male/Female) and an image upload field.

  • Configure the Gemini API access through OpenRouter.

  • Connect your Telegram bot and channel to receive the final result.

  • Start the workflow → users submit the form, and their data is processed and shared as AI-enhanced UGC.

Requirements

  • OpenRouter API key to access Google Gemini.

  • A Telegram Bot connected to your Telegram channel.

❓ Need help

Contact me for consulting and support: LinkedIn / YouTube / Skool

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 - Google gemini

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

Block 2 - Mapping

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

Block 3 - Send a photo message

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

Block 4 - Form submission with character type and image

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

Block 5 - Extract the form file

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

Block 6 - Merge the two data sets

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 7 - Creating a data URL

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Transform URL data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Download the file

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

Block 10 - Sticky Note1

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

Block 11 - Sticky Note2

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

Block 12 - Sticky Note3

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

Block 13 - Sticky Note4

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

Block 14 - Sticky Note

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

Block 15 - Sticky Note6

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

3. Summary Table

Workflow Generate UGC images from form submissions with Google Gemini and Telegram
Complexity advanced
Nodes 15
Categories Content Creation, Multimodal AI
Author Jaures NYA
Published 20 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9922/9922.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 Generate UGC images from form submissions with Google Gemini and Telegram do?

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

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.