Skip to main content

Process telegram image albums with Data Tables Cache and NanoBanana AI

Workflow preview

Workflow preview
100%
Process telegram image albums with Data Tables Cache and NanoBanana AI 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 template simplifies processing of media group messages sent by users in Telegram. It caches image album messages using Data Tables, and th...

Best for

  • Support Chatbot automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.datatable, n8n-nodes-base.scheduletrigger, n8n-nodes-base.manualtrigger, n8n-nodes-base.filter, n8n-nodes-base.merge, n8n-nodes-base.telegram, n8n-nodes-base.if

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Process telegram image albums with Data Tables Cache and NanoBanana AI
Workflow name
Process telegram image albums with Data Tables Cache and NanoBanana AI

This n8n workflow template simplifies processing of media group messages sent by users in Telegram. It caches image album messages using Data Tables, and then sends them to a Nano Banana model for processing.

This template showcases n8n's new Data Tables feature as a powerful caching layer to process entire image albums from Telegram.

How it works

  • Media Group handling: captures all images and the shared caption when user sends an album via Telegram.
  • Data Table caching: stores all incoming messages in a Data Table to prevent data loss and allow for batch processing.
  • Scheduled processing: a timer trigger periodically finds and processes completed image albums from the cache.
  • Multi-modal AI: sends the full set of images and the text prompt to the NanoBanana model via OpenRouter.
  • User feedback: automatically notifies the user when processing begins and when the result is ready.

How to use

  • Import the workflow template into your n8n instance.
  • Create a new Data Table with the following columns (all of type String): chat_id, message_id, media_group, message, status.
  • Configure your Telegram credentials and connect your bot.
  • Update the "prepare user messages" node with your Telegram bot token to create the image download links.
  • Set up your OpenRouter credentials.
  • Activate the workflow. Now you can send a group of images with a caption to your Telegram bot.

Requirements

  • An n8n instance (cloud or self-hosted) with Data Tables enabled. Minimal n8n version is 1.113
  • A Telegram account and a Telegram bot token.
  • An OpenRouter account with access to the NanoBanana model.

Customizing this workflow

  • Adjust the processing schedule: modify the Schedule Trigger node to change how often the workflow checks for new media groups to process.
  • Handle other message types: The workflow handles only the media groups. You can easily build logic for text messages, documents, or commands by adding nodes instead of the placeholder node ("Process other messages as usual").
  • Extend the functionality: add more nodes after the AI generates an image to perform different actions, such as saving the file, sending it to another service, or creating a social media post.

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 - Telegram Trigger

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

Block 2 - Upsert row(s)

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 3 - Schedule Trigger

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

Block 4 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 5 - Filter

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

Block 6 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 7 - Get a file

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

Block 8 - Is media group with images?

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

Block 9 - Summarize

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

Block 10 - Convert to File

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

Block 11 - Merge1

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 12 - Merge2

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 13 - NOOP

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 14 - Latest message in media_group

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

Block 15 - Sort

Type / Role
n8n-nodes-base.sort - sort
Config choices
Version 1

Block 16 - Call NanoBanana via OpenRouter

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

Block 17 - Extract Base64

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 18 - Send processing message

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

Block 19 - Send result message

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

Block 20 - status:processing

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 21 - status:done

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 22 - Get new requests

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 23 - prepare user messages

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 24 - parse TG messages

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

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

3. Summary Table

Workflow Process telegram image albums with Data Tables Cache and NanoBanana AI
Complexity advanced
Nodes 35
Categories Support Chatbot, Multimodal AI
Author Eduard
Published 05 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9288/9288.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 Process telegram image albums with Data Tables Cache and NanoBanana AI do?

This n8n workflow template simplifies processing of media group messages sent by users in Telegram. It caches image album messages using Data Tables, and th...

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