Generate AI images with Telegram bot & auto-publish to social media using Nano Banana PRO
UnknownUnknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.
Community nodes
These come from third-party npm packages. In n8n 3.0 unverified community packages are off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
n8n-nodes-cloudinary(Upload Image, Upload an asset from file data)@blotato/n8n-nodes-blotato(Instagram, X, Facebook)
Nodes used (13)
- HTTP Request
n8n-nodes-base.httpRequest - Telegram Trigger
n8n-nodes-base.telegramTrigger - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - Cloudinary
n8n-nodes-cloudinary.cloudinary - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Blotato
@blotato/n8n-nodes-blotato.blotato - Code
n8n-nodes-base.code
What it does
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: /texttoimage /imagetoimage /multiimage 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: TinyPNG – image compression (Get an API key) Blotato – social media publishing (Connect accounts) 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.