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

โšก 1,334 views ยท ๐ŸŽฌ Content Creation & Video

Description

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:

Optional services:

Customising the workflow

Notes

๐Ÿ”— Nodes Used

HTTP Request, Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model, Structured Output Parser

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup