Skip to main content

Generate AI images with Telegram bot & auto-publish to social media using Nano Banana PRO

Workflow preview

Workflow preview
100%
Generate AI images with Telegram bot & auto-publish to social media using Nano Banana PRO 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 n8n workflow allows you to generate AI images using Nano Banana PRO through a Telegram bot interface, with optional automatic publishing to social media platforms. Users interact with the work...

Best for

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

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.telegramtrigger, n8n-nodes-base.switch, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.if, n8n-nodes-base.wait

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate AI images with Telegram bot & auto-publish to social media using Nano Banana PRO
Workflow name
Generate AI images with Telegram bot & auto-publish to social media using Nano Banana PRO

This n8n workflow allows you to generate AI images using Nano Banana PRO through a Telegram bot interface, with optional automatic publishing to social media platforms.

Users interact with the workflow entirely via Telegram commands and forms. The workflow supports multiple image generation modes and can automatically enhance prompts, compress images, generate captions, and publish content to Facebook, Instagram, and X.

This template is especially useful for product visuals, lifestyle scenes, and content creation workflows where manual image generation and posting would otherwise be repetitive.

How it works

  1. A user sends a command to the Telegram bot (text-to-image, image-to-image, or multi-image fusion).
  2. The workflow collects the required inputs (text prompt, uploaded images, aspect ratio, quality).
  3. If enabled, an AI Agent enhances the user prompt before image generation.
  4. The workflow sends the request to Kie.ai, which runs the Nano Banana PRO image model.
  5. The workflow waits for the image generation task to complete and retrieves the result.
  6. The generated image is downloaded and sent back to the user via Telegram.
  7. Optionally, the image is compressed using TinyPNG.
  8. If social sharing is enabled:
    • An AI Agent generates platform-optimized captions.
    • The image and captions are published automatically to selected platforms (Facebook, Instagram, X) via Blotato.

How to use

  1. Create a Telegram bot using @BotFather and add the bot token to the Telegram Trigger credentials.
  2. Configure the required API credentials (see Requirements).
  3. Activate the workflow in n8n.
  4. Send a command to your Telegram bot:
    • /text_to_image
    • /image_to_image
    • /multi_image
  5. Follow the Telegram form prompts to generate and optionally publish images.

Requirements

The following services are required for the workflow to function:

  • Telegram Bot – user interaction
  • Kie.ai API – Nano Banana PRO image generation (Get access)
  • Cloudinary – image hosting for uploaded files (Create an account)
  • OpenAI API – prompt enhancement and caption generation

Optional services:

Customising the workflow

  • You can disable image compression by removing the TinyPNG nodes.
  • Social media auto-publishing can be disabled by removing the Blotato nodes.
  • Prompt enhancement behavior can be adjusted in the AI Agent system prompt.
  • Additional platforms or posting logic can be added after the caption generation step.
  • The workflow can be adapted to other AI image models by replacing the Kie.ai API calls.

Notes

  • This is a self-hosted n8n workflow.
  • All API keys and credentials must be provided by the user.
  • The workflow is modular and can be partially enabled depending on your use case.

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 - HTTP Request

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

Block 2 - HTTP Request2

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

Block 3 - HTTP Request1

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

Block 4 - Telegram Trigger

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

Block 5 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.3

Block 6 - Ask for Text Prompt

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

Block 7 - Ask for Image Upload

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

Block 8 - AI Agent

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

Block 9 - OpenAI Chat Model

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

Block 10 - Send a photo message

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

Block 11 - If

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

Block 12 - Wait

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

Block 13 - Upload Image

Type / Role
n8n-nodes-cloudinary.cloudinary - cloudinary
Config choices
Version 1

Block 14 - Ask for Multi Images

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

Block 15 - Show Menu

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

Block 16 - Upload an asset from file data

Type / Role
n8n-nodes-cloudinary.cloudinary - cloudinary
Config choices
Version 1

Block 17 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 18 - AI Agent1

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

Block 19 - OpenAI Chat Model1

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

Block 20 - Share to Social Media

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

Block 21 - Compress Image

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

Block 22 - Get Image

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

Block 23 - If2

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

Block 24 - Structured Output Parser

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

Showing the first 24 of 51 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate AI images with Telegram bot & auto-publish to social media using Nano Banana PRO
Complexity advanced
Nodes 51
Categories Content Creation, AI Chatbot
Author ing.Seif
Published 13 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11765/11765.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 with Telegram bot & auto-publish to social media using Nano Banana PRO do?

This n8n workflow allows you to generate AI images using Nano Banana PRO through a Telegram bot interface, with optional automatic publishing to social media platforms. Users interact with the work...

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, AI Chatbot use case.