Use this n8n workflow to automatically summarize recent Telegram chat history using an AI agent powered by OpenRouter. This efficient n8n templates solution sends the digest back to the chat.
Download this n8n workflow template and start using it instantly.
Teams needing timely, automated digests of busy Telegram group chats.
Automation specialists looking to integrate external messaging APIs using specialized n8n node components (TelePilot).
Users interested in advanced LangChain integrations within an n8n workflow environment.
Developers seeking robust n8n templates for scheduled AI processing.
This sophisticated automation solves the problem of information overload in active Telegram group chats. By deploying this specific n8n workflow, users can receive concise, AI-generated summaries of recent conversations at scheduled intervals. The n8n automation utilizes a specialized TelePilot n8n node to interact seamlessly with the Telegram API, fetching message history. The collected data is then filtered and aggregated before being fed to an AI Agent powered by OpenRouter for summarization. This makes the resulting n8n template an essential tool for efficient communication management without manually sifting through hundreds of messages.
The n8n workflow is designed for scheduled execution, starting with the Schedule Trigger n8n trigger.
Get Chat Id By Name TelePilot n8n node to locate the target Telegram group's ID.Last Messages History TelePilot n8n node retrieves a batch of recent messages from that identified chat.Split Out n8n node. They are then refined using the Filter Last 2 hours and Skip Empty Message n8n node steps, ensuring that only current, substantive text messages are passed forward.Aggregate n8n node combines the cleaned messages back into a single text payload, optimizing the input for the LLM.AI Agent n8n node. This agent, configured with the OpenRouter Chat Model (and optionally MongoDB Chat Memory), processes the extensive chat history and generates a concise summary.Send Summary To Chat TelePilot n8n node, completing the scheduled cycle of this complex n8n workflow.@telepilotco/n8n-nodes-telepilot. You must install this package via the N8N Settings menu (Community Nodes).OpenRouter Chat Model n8n node. If using the memory feature, ensure your MongoDB credentials are also set up.Schedule Trigger n8n trigger to your desired frequency. Ensure the chat name in the Get Chat Id By Name n8n node matches your target Telegram group exactly. Review the filtering logic in the Filter Last 2 hours n8n node if a different time window is needed. Schedule Trigger n8n trigger: Initiates the n8n workflow automatically at predefined intervals (e.g., hourly).
Get Chat Id By Name (TelePilot n8n node): Locates the required Telegram chat ID by name for subsequent data retrieval.
Last Messages History (TelePilot n8n node): Fetches the specified quantity of historical messages from the identified Telegram chat.
Filter Last 2 hours (Filter n8n node): A critical filter used to limit the data set, ensuring the AI only summarizes very recent messages.
Aggregate n8n node: Collects all individually processed, filtered messages back into a single item list, preparing the data for the LangChain component.
AI Agent (LangChain n8n node): The core reasoning component of this n8n workflow. It orchestrates the summarization task using the integrated language model.
OpenRouter Chat Model (LangChain n8n node): Provides the large language model backend necessary for generating high-quality text summaries for this specific n8n template.
Send Summary To Chat (TelePilot n8n node): Executes the final publishing step, sending the AI-generated summary text directly back to the specified Telegram group chat, finalizing the run of the n8n workflow.
Secure your internal Telegram bots using this n8n workflow template. It manages user access by checking permissions against a database (like n8n Data Tables) before executing sensitive tasks.

Use this powerful n8n workflow to create a Telegram bot that extracts TikTok and LinkedIn profile data using Dumpling AI, transcribes voice messages, and automatically stores results in Google Sheets. Get started with n8n templates for data mining.

Use this powerful n8n workflow to create a smart Telegram bot that routes messages: images for GPT-4o-Mini/NVIDIA Vila analysis, or text for Stable Diffusion 3 image generation.

Create a robust n8n workflow for a Telegram chatbot that transcribes voice messages, intelligently batches user input, and uses an OpenAI agent with Supabase RAG.

Integration architect with 15+ years of experience building seamless system connections and AI-powered automation solutions. Founder of Mingles.ai an AI automation startup specializing in intelligent workflow optimization. Expert in connecting complex systems, APIs, and creating custom n8n automations that transform business operations.







































