Telegram Personal Assistant with Grok, Memory, and Productivity Tools - n8n Workflow

Build a powerful personal AI assistant using n8n that connects Telegram, xAI Grok, Gmail, Google Calendar, and persistent memory storage. This advanced n8n workflow handles text and voice inputs.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Individuals seeking a powerful, personalized digital assistant.
Users who want to interact with their AI agent primarily through Telegram.
Developers and power users looking for advanced n8n templates integrating multiple cloud services (Airtable, Gmail, Google Calendar).
Anyone interested in deploying custom, stateful AI agents using the n8n automation platform.

Overview

Managing personal productivity across multiple platforms can be fragmented. This sophisticated n8n workflow solves this by centralizing all your command interactions through a single Telegram bot. Acting as a central hub, this n8n automation uses the powerful xAI Grok model to understand complex requests, maintain long-term context using an Airtable-based memory system, and execute actions across your digital ecosystem—from searching the web via SerpAPI to scheduling events in Google Calendar or checking your Gmail.

This specific n8n template is designed to handle both text and voice messages, making the assistant highly accessible. The integration of memory ensures the AI is context-aware and remembers previous preferences and facts about the user, vastly improving the quality of the interaction. Setting up this n8n workflow provides a robust, scalable foundation for personal AI automation.

How it Works

This n8n workflow initiates immediately upon receiving a message via the Telegram n8n trigger node.


  1. Trigger and Routing: The flow starts with the Telegram Trigger n8n node. The subsequent Text vs Voice Router (an If n8n node) determines if the message is text or a voice recording.

  2. Voice Processing: If the input is voice, the Get a file n8n node retrieves the audio from Telegram, which is then passed to the Transcribe a recording (OpenAI n8n node) for conversion into text.

  3. Memory Retrieval: Simultaneously, the flow executes the Get memories n8n node, retrieving the user's long-term conversational history from Airtable. This history is aggregated by the Aggregate n8n node.

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

  5. AI Agent Execution: The combined context is fed into the AI Agent n8n node. This agent is powered by the xAI Grok Chat Model and uses Simple Memory (Buffer Window) for short-term session context. Crucially, the system prompt instructs the agent to analyze the input and utilize its extensive toolset (Gmail, Calendar, SerpAPI, Notion) or call the Save Memory n8n node if the user provides new facts.

  6. Tool Use and Memory Persistence: Based on the AI's decision, it executes the appropriate external tool (e.g., checking upcoming calendar events or saving a new memory to Airtable).

  7. Response: Finally, the output generated by the AI agent is sent back to the user via the Send a text message Telegram n8n node, completing the interaction cycle of this powerful n8n workflow.

Installation Guide

To deploy this comprehensive n8n workflow template, follow these steps:


  1. Import the n8n Workflow: Copy the provided JSON data and import it directly into your n8n instance.

  2. Credential Setup: You must configure credentials for the following services:

Telegram API: Needed for the Telegram Trigger and output nodes. Ensure you configure your bot token and specify your personal chat ID in the trigger node.
Airtable: Required for persistent memory storage (Get memories, Save Memory). Configure the Base ID and Table ID where your agent memories will reside. Note: Update the 'User' filter in 'Get memories' and 'Save Memory' with your actual identifier.
xAI (Grok): Essential for the xAI Grok Chat Model n8n node.
SerpAPI: Required for web search functionality.
Google Calendar & Gmail: OAuth2 credentials are required to enable the AI to manage your schedule and email inbox.
OpenAI: Required only for the Transcribe a recording n8n node (used for voice messages).
* Notion: Credentials needed for the Notion tool.

  1. Agent Customization: Open the parameters of the AI Agent n8n node and customize the system message (Role, Name, Gender) to match your desired persona.

  2. Activation: Once all credentials and configurations are set, activate the n8n workflow.

Node Details

Telegram Trigger (n8n trigger): Starts the n8n workflow upon receiving a new message (text or voice) in the configured Telegram chat ID.
Text vs Voice Router (If n8n node): Determines the path based on whether the incoming Telegram message contains the message.text field. Routes voice messages for transcription.
Get memories (Airtable n8n node): Retrieves long-term contextual memories from the specified Airtable base, filtered by the user identifier. This ensures the AI Agent has history.
xAI Grok Chat Model (Langchain n8n node): Serves as the primary Large Language Model, providing the reasoning and response generation capability for this n8n workflow.
AI Agent (Langchain Agent n8n node): The core intelligence. It uses the Grok model and strategically selects from an array of tools (Gmail, Calendar, SerpAPI, Save Memory) based on the user's request and provided memory context.
Save Memory (Airtable Tool n8n node): A specialized tool used by the AI Agent itself to persist important user details and conversation facts into the Airtable database, ensuring the agent remains stateful and personalized.
Google Calendar Tools (n8n node family): Includes nodes for getting, creating, updating, and deleting calendar events, allowing the AI to manage the user's schedule directly based on natural language commands.
Gmail Tools (n8n node family): Enables the AI to search for and retrieve specific email messages, functioning as a powerful email assistant within the n8n workflow.


  • Send a text message (Telegram n8n node): The final action, sending the AI Agent's generated output back to the user via Telegram.

Related n8n Workflows

Free

Nodes: 16 Nodes
Updated: December 26 2025
View all
Created by

VP of Engineering. Machine Learning, NLP, Computer Vision, Geospatial, Navigation, Data Analysis, Generative Models, Healthcare. Over 20 years in delivering client-centric tools and driving multinational cross-functional engineering teams. I've been there and everywhere and beyond.

Featured*