AI Personal Assistant using GPT-4o-mini, Telegram, and Google Services - n8n Workflow

Use this comprehensive n8n workflow to create a sophisticated personal AI assistant. Integrate Telegram, GPT-4o-mini, Google Calendar, and Gmail for conversational scheduling and communication automation.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Busy Professionals: Who need a unified, conversational interface (Telegram) to manage their Google Calendar and Gmail tasks.
n8n Automation Developers: Looking for advanced examples of using the LangChain AI Agent n8n node with multiple integrated tools and complex system prompts.
Users of n8n templates: Seeking a robust AI solution for personal productivity and scheduling.
Technical Users: Who want to leverage the power of GPT-4o-mini and the Telegram n8n trigger for daily organization.

Overview

This powerful n8n workflow transforms a standard Telegram bot into a highly functional personal AI assistant. By leveraging the advanced capabilities of the n8n AI Agent node, powered by OpenAI’s GPT-4o-mini, users can interact conversationally to perform complex actions.

The assistant can read schedules, create new events, send emails to contacts found in a Google Sheet database, and retrieve general knowledge using web search tools. This specific n8n workflow is designed to streamline productivity, ensuring scheduling and communication are handled through simple Telegram chat commands. This comprehensive approach showcases the flexibility of building integrated productivity solutions using n8n and modern AI.

How it Works

The entire automation begins with the Telegram n8n trigger, which activates the flow upon receiving a message from the user.


  1. Incoming Message: The Telegram Trigger n8n node captures the user's message and their chat ID.

  2. AI Processing: The message is passed to the AI Agent n8n node. This agent is configured with gpt-4o-mini via the OpenAI Chat Model and maintains context using Conversation Memory tied to the user's Telegram ID.

  3. Tool Selection: Based on the detailed system prompt, the AI determines the necessary action. If the user asks to schedule an event, the Google Calendar tool is invoked. If the user requests an email, the agent must first use the Get Contacts Google Sheets n8n node, then execute the Gmail Tool.

  4. Information Retrieval: The agent has access to Web Search (SerpAPI), Wikipedia Tool, and a dedicated Get Calendar Events tool for complex queries or mandatory scheduling tasks.

  5. Execution and Response: Once the AI generates a response or confirms an action (like a scheduled event or sent email), the final output is routed to the Telegram Response n8n node, which sends the conversational feedback back to the originating Telegram chat. This entire process defines the core functionality of this n8n template.

Installation Guide

To deploy this expert n8n workflow, follow these steps:


  1. Import: Copy the provided JSON data and paste it into your n8n instance to create a new n8n workflow.

  2. Telegram Setup: Update the Telegram Trigger n8n node credentials with your bot token obtained from @BotFather.

  3. OpenAI API Key: Configure the OpenAI Chat Model with your valid OpenAI API key.

  4. Google Service Credentials: Set up OAuth2 credentials for:

Google Calendar: Update both the Google Calendar and Get Calendar Events n8n nodes with your specific calendar ID (YOUR[email protected]).
Gmail: Configure the Gmail Tool with OAuth2 permissions for sending emails.
* Google Sheets (Contacts): Update the Get Contacts n8n node by replacing YOUR
GOOGLESHEETID with the ID of your contact spreadsheet.

  1. SerpAPI Key (Optional): If you require real-time web search, configure the Web Search (SerpAPI) n8n node with your SerpAPI key. If not needed, this node can be removed.

  2. Activate: Save the n8n workflow and set the status to 'Active'. The Telegram n8n trigger will now be listening for messages.

Node Details

Telegram Trigger (n8n trigger): The entry point of the n8n workflow. It monitors incoming Telegram messages, initiating the AI Agent processing. Key configuration: Listens for message updates.
AI Agent (n8n node): The core intelligence, orchestrating tool use and conversation. It uses GPT-4o-mini and a custom system prompt that defines its persona, crucial scheduling instructions, and mandatory pre-email contact lookups.
OpenAI Chat Model (n8n node): Configured to use the efficient gpt-4o-mini model, providing the language processing capabilities for the agent.
Conversation Memory (n8n node): A buffer window memory that ensures the AI agent remembers the previous 10 messages, keying the session based on the Telegram user's ID (message.from.id).
Google Calendar (n8n node): Serves as a tool for the AI agent to create, modify, or query specific calendar events based on conversational input.
Gmail Tool (n8n node): Allows the AI agent to compose and send emails. It dynamically sets the sender name based on the Telegram user's first name.
Get Contacts (Google Sheets Tool): An essential tool for the agent, used to look up recipient email addresses from a defined Google Sheets contact database before executing the Gmail Tool step.
Telegram Response: The final action n8n node, sending the AI's generated textual output back to the user's Telegram chat.

Related n8n Workflows

Free

Nodes: 10 Nodes
Updated: December 26 2025
View all
Created by
Ronnie Craig
Ronnie Craig

Hi, I’m Ronnie! I scaled an eCommerce biz to $14K/month in under a year, grew a YouTube channel to 1K subs in 30 days, booked 28 daycare appointments in 6 days, and built automations for nurses to track clients. I help you create content, repurpose high-performing posts, schedule with ease, monitor trends, and automate marketing—so you stay visible and consistent without burning out.

Featured*