Use this custom n8n workflow to automate AI image processing directly from Telegram. Send a photo, trigger the Nano Banana AI model (Gemini 2.5 Flash) via OpenRouter, and get the processed image back instantly. A perfect example of advanced n8n automation.
Download this n8n workflow template and start using it instantly.
Users looking for advanced examples of Telegram automation.
Developers needing to integrate LLM vision capabilities into messaging platforms using an n8n node.
Anyone interested in leveraging specific AI models (like Nano Banana/Gemini 2.5 Flash) through OpenRouter within an n8n workflow framework.
Automation specialists seeking reusable n8n templates for binary data manipulation.
This powerful n8n workflow serves as an instant AI image processor, bridging the gap between mobile messaging and sophisticated multi-modal AI models. When a user sends a photo via Telegram, this automation instantly downloads the image, converts it into the necessary data URL format, sends it to the Nano Banana AI (Gemini 2.5 Flash via OpenRouter) for analysis or editing, and then converts the resulting Base64 output back into a photo, delivering the finished product back to the user.
This setup demonstrates complex data handling within n8n, moving seamlessly between binary data, Base64 strings, and JSON APIs. If you are looking for advanced n8n templates that showcase external API interaction combined with data transformation, this is an excellent reference point.
This automation initiates with a specific n8n trigger and executes a comprehensive data transformation pipeline:
data:image/png;base64,... URL structure required by the AI vision API.To deploy this powerful n8n workflow, follow these steps:
YOURCHATID_HERE with the correct numerical ID where you want the processed photo to be sent. If you want the reply to go to the initiating user, use an expression to pull the chat.id from the triggering message. Photo Message Receiver (Telegram Trigger n8n trigger):
Function: Starts the n8n workflow upon receiving a message containing a photo in Telegram.
Key Configuration: Updates set to message.
Download Telegram Photo (Telegram n8n node):
Function: Fetches the actual image file based on the file ID provided by the Telegram trigger.
Key Configuration: Uses expression ={{ $('Photo Message Receiver').item.json.message.photo[0].file_id }}.
Convert Photo to Base64 (Extract From File n8n node):
Function: Converts the downloaded binary data into a Base64 string property for API submission.
Key Configuration: Operation set to binaryToPropery.
Format Image Data URL (Code n8n node):
Function: Custom JavaScript code that prepends the necessary data:image/png;base64, prefix to the Base64 string.
Nano Banana Image Processor (HTTP Request n8n node):
Function: Sends the image data and caption to the OpenRouter API using the google/gemini-2.5-flash-image-preview:free model for AI processing.
Key Configuration: Authentication uses an OpenRouter API Key credential. The payload contains both text and the image URL expression.
Parse AI Response Data (Set n8n node):
Function: Extracts the resulting Base64 image string from the nested AI response JSON.
Key Configuration: Extracts data using a complex path and split function to isolate the Base64 string.
Base64 to Binary File (Convert To File n8n node):
Function: Converts the processed image Base64 string back into a binary file object.
Key Configuration: Operation set to toBinary.
Send Processed Photo (Telegram n8n node):
Function: Sends the final, AI-processed photo back to the user.
* Key Configuration: Operation set to sendPhoto, binaryData is checked.
Use this powerful n8n workflow to check the availability of hundreds of domains instantly via the Namesilo API. Features custom batching, rate limiting, and Excel output.

Integrate NSIDC data services with AI agents using this specialized n8n workflow. Expose 4 API endpoints as tools via the n8n MCP server for natural language queries.

Deploy a robust n8n workflow that converts the NPR Station Finder API into an MCP server. Use these specialized n8n templates for seamless AI agent integration and data retrieval.

Use this powerful n8n workflow to automatically transform raw product photos sent via WhatsApp into professional, commercial-grade advertisements using Google Gemini AI. Instant image enhancement.

Implement a powerful n8n workflow that transforms Telegram messages (text, voice, image, PDF) into AI instructions using Gemini and OpenAI. This n8n templates solution handles multimodal input, memory, and high-quality image generation.

Automate video narrative extensions using an advanced n8n workflow. Analyze existing scenes, generate continuity prompts with OpenAI, and stitch clips via Veo3/Kie.AI. Get started with this powerful n8n templates setup.

I love building smart n8n automations that actually work reliably. My focus is on making everyday tasks like email, social media, and CRM workflows simpler using AI. I've shared templates in the n8n community, including a WhatsApp Expense Tracker that people really enjoy. What keeps me excited is constantly trying new things - testing fresh nodes, playing with AI tools like LangChain, and discovering creative ways to connect systems!







































