AgentHub

Generate AI selfie photos from Telegram with AtlasCloud and Blotato

Quick overview

Live
Open / InstallLast updated July 27, 2026

Description

Quick overview This workflow listens for a two-photo Telegram album, uploads both images to Blotato for public hosting, sends them with a caption prompt to AtlasCloud (Nano Banana 2 Lite) to generate an edited “AI selfie,” then posts the result to Instagram and Facebook and replies with the image on Telegram. How it works Triggers when a Telegram bot receives a message and buffers album uploads until it has two photos plus the caption text. Stores the caption as the edit prompt and sets generation options such as model, aspect ratio, output format, and poll interval. Downloads each photo from Telegram and uploads both to Blotato to obtain stable public image URLs. Sends the two hosted image URLs and the prompt to the AtlasCloud generateImage API using the Nano Banana 2 Lite edit model. Waits and polls the AtlasCloud prediction status until it is marked completed or succeeded. Extracts the generated image URL, publishes it to Instagram and Facebook via Blotato, and sends the generated photo back to the originating Telegram chat. Setup Create a Telegram bot and add your Telegram API credentials to the Telegram Trigger and Telegram nodes. Add an AtlasCloud API key as an HTTP Header Auth credential and select it on both AtlasCloud HTTP Request steps. Install/enable the Blotato community node, add your Blotato API credentials, and select the target Instagram account and Facebook Page in the publish steps. Update the configuration values (model, aspect ratio, output format, and poll wait time) to match your preferred output. Activate the workflow and send a Telegram album containing exactly two photos with a caption describing the desired composition. Additional info Generate AI selfie photos with a public figure from Telegram using Nano Banana 2 Lite 📥 Open full documentation on Notion. An n8n automation workflow template by Dr. Firas.

Author

Dr. Firas

Platform

web

Pricing model

free

Categories

Automation

Tags

n8n
workflow
http-request
telegram
code

Capabilities

  • 3 nodes
  • 2 views