AI Personal Assistant for Telegram with Deep Memory and Task Management - n8n Workflow

Create a personalized AI assistant in Telegram using this powerful n8n workflow. It features conversational memory, task, grocery, and Google Calendar management.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Markdown-formatted:
Individuals seeking a unified personal AI assistant accessible via Telegram.
Automation specialists looking for advanced n8n templates leveraging LangChain agents.
Developers needing an example of persistent memory integration (Airtable) within an n8n node based workflow.
Anyone who wants to manage their schedule, to-do lists, and grocery list through voice or text commands.

Overview

This comprehensive n8n workflow transforms a standard Telegram chat into a highly intelligent personal AI assistant. Unlike simple chatbots, this solution utilizes the LangChain Agent n8n node, enabling the AI to decide dynamically which external tool to use based on the user's request. This ensures high efficiency when managing diverse requests, from 'add milk to my list' to 'schedule a meeting tomorrow.' The persistence of the memory, stored in Airtable, allows the AI to develop a personalized relationship with the user, recalling past preferences and feedback. This specific n8n workflow is a powerful example of how to build sophisticated, multi-tool AI applications using the low-code capabilities of n8n. If you are looking for advanced n8n templates, this provides a blueprint for integrating AI, storage, and communication channels seamlessly.

How it Works

Markdown-formatted:


  1. Initiation (The n8n trigger): The process begins with the Telegram Trigger n8n trigger node, which awaits incoming messages or voice notes.

  2. Input Handling: A Switch n8n node determines if the input is a voice note or text message.

  3. Voice Processing: If voice is detected, the Telegram n8n node downloads the file, and the OpenAI n8n node transcribes the audio into text.

  4. Memory Retrieval: Simultaneously, the Get Memories (Airtable) n8n node fetches the user's personalized and system memory data.

  5. Data Consolidation: The transcribed text (or original text message) and the retrieved memories are combined using the Merge n8n node.

  6. AI Decision Making (The Agent): The combined data is passed to the Zeus Tele (LangChain Agent) n8n node. This agent, powered by an OpenAI Chat Model, reads the system prompt and uses its access to multiple tools (Airtable for task/memory, Google Calendar, SerpAPI for web search) to determine the necessary action (e.g., creating a grocery item, updating a calendar event, or just responding conversationally).

  7. Execution: The agent executes the required action using the appropriate n8n node tool (e.g., Grocery Create, Get Events, etc.).

  8. Response: The final output generated by the AI agent is sent back to the user instantly via the Telegram Response n8n node, completing the execution of this complex n8n workflow.

Installation Guide

Markdown-formatted:
This advanced n8n workflow requires credentials for Telegram, OpenAI, Airtable, Google Calendar, and SerpAPI.


  1. Import: Import the provided n8n workflow JSON into your n8n instance.

  2. Credentials Setup: Configure the required credentials for each service in n8n (OpenAI, Telegram, Airtable, Google Calendar, SerpAPI).

  3. Airtable Database Configuration: Create an Airtable base and set up three specific tables to handle persistent memory:

Memory (for user preferences and Zeus feedback)
Grocery List
* To-Do List

  1. Node Mapping: Update the parameters in all Airtable tool n8n node instances (e.g., 'User Tele Memory', 'Grocery Create', 'To-Do Search') to correctly reference your newly created Airtable Base ID and Table names using the expression ={{ $json.settings.AIRTABLEBASEID }}.

  2. Activation: Once all credentials and external settings are configured, activate the n8n trigger (Telegram Trigger). The n8n workflow is now ready to run.

Node Details

Markdown-formatted:
Telegram Trigger (n8n trigger):
Function: Starts the n8n workflow upon receiving a message (text or voice) in Telegram.
Key Configuration: Monitors for 'message' updates.
Switch (n8n node):
Function: Routes the flow based on the input type, checking for the existence of a 'voice' object or a 'text' message.
Key Configuration: Two outputs ('Voice' and 'Text') based on conditional checks.
OpenAI (n8n node):
Function: Used specifically for the Whisper API operation to transcribe incoming voice notes into text, crucial for processing voice commands.
Key Configuration: Resource set to 'audio', Operation set to 'transcribe'.
Get Memories (Airtable Tool n8n node):
Function: Fetches historical user and system memory stored in Airtable to provide context for the AI agent.
Key Configuration: Operation 'search', targets the user's AIRTABLETABLEMEMORY.
Zeus Tele (LangChain Agent n8n node):
Function: The central intelligence unit. It analyzes the user input and historical memory, selects the appropriate tool, executes complex instructions, and generates the final response, following strict persona rules (concise, human-like text).
Key Configuration: Connected to gpt-4.1-mini, uses Window Buffer Memory1 for context, and links to 12 different operational tools.
Airtable Tools (Grocery/To-Do/Memory n8n node instances):
Function: Provides persistent CRUD operations for task lists and long-term memory for the AI. This is a critical component for the long-term effectiveness of the n8n workflow.
Key Configuration: Operations include 'search', 'create', and 'deleteRecord'.
Google Calendar Tools (n8n node instances):
Function: Allows the AI to manage the user's calendar, including fetching, creating, updating, and deleting events based on natural language commands.
* Key Configuration: Operations cover 'getAll', 'create', 'update', and 'delete'.

Related n8n Workflows

Free

Nodes: 14 Nodes
Updated: December 26 2025
View all
Created by
Hudson Marr
Hudson Marr

Featured*