Skip to main content

Generate AI images via Telegram using Gemini & Pollinations

Workflow preview

Workflow preview
100%
Generate AI images via Telegram using Gemini & Pollinations preview
Open on n8n.io

Important notice

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

1. Workflow Overview

How it works This workflow lets users generate AI images directly from Telegram messages using: Google Gemini API – to convert text to detailed, high quality image prompts. Pollinations API – to ge...

Best for

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

Tools used

n8n-nodes-base.set, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.telegramtrigger, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by NAZIA AI ACADEMY.

Original n8n.io source

1.1 Workflow description

Title
Generate AI images via Telegram using Gemini & Pollinations
Workflow name
Generate AI images via Telegram using Gemini & Pollinations

How it works This workflow lets users generate AI images directly from Telegram messages using:

Google Gemini API – to convert text to detailed, high-quality image prompts.

Pollinations API – to generate free AI images from the prompts.

Telegram Bot – to interact with users and return generated images instantly.

It’s fully automated using n8n — from text message to stunning image, all in one flow. Perfect for creators, content marketers, or anyone wanting quick visuals on the go.

Set up steps 🧩 Estimated setup time: ~10–15 minutes

Create a Telegram Bot via @BotFather, copy your token, and set up the Telegram Trigger node in n8n with your credentials.

Set up Google Gemini API via Google AI Studio or Cloud Console.

Make sure your API key is added in the credentials section of the Gemini node.

Customize prompt structure or image size in the Fields - Set Values or Prompt Agent node.

(Optional) Enable Save to Disk if you want to keep a local copy of every image.

Deploy and run the workflow — done 🎉

🛠️ All technical details and logic are fully documented inside the workflow using sticky notes. ⚠️ Requirements n8n (Self-hosted or Cloud)

Telegram Bot Token

Google Gemini API key (with billing enabled — includes some free usage)

No key needed for Pollinations API — it's 100% free 🆓

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 - Fields - Set Values

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

Block 2 - When chat message received

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

Block 3 - Code - Clean Json

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

Block 4 - Code - Get Prompt

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

Block 5 - HTTP Request - Create Image

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

Block 6 - Telegram Trigger

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

Block 7 - Code - Set Filename

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

Block 8 - Google Gemini Chat Model

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

Block 9 - Sticky Note

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

Block 10 - Sticky Note2

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

Block 11 - Sticky Note3

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

Block 12 - Sticky Note4

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

Block 13 - AI Agent - Create Image From Prompt

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

Block 14 - Telegram Response

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

Block 15 - Save Image To Disk

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

3. Summary Table

Workflow Generate AI images via Telegram using Gemini & Pollinations
Complexity advanced
Nodes 15
Categories Content Creation, Multimodal AI
Author NAZIA AI ACADEMY
Published 20 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6197/6197.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 AI images via Telegram using Gemini & Pollinations do?

How it works This workflow lets users generate AI images directly from Telegram messages using: Google Gemini API – to convert text to detailed, high quality image prompts. Pollinations API – to ge...

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.