Create an AI Personal Assistant with n8n and Telegram

Discover how to build an AI personal assistant using n8n, Telegram, Gmail, Google Calendar, and Baserow. This workflow automates fetching emails, calendar events, and tasks, delivering personalized responses to Telegram messages with voice-to-text support using OpenAI’s GPT-4 model.
telegramTrigger
agent
gmailTool
+9
Workflow Identifier: 1212
NODES in Use: Telegram Trigger, Set, If, Telegram, Telegram Get File, Speech to Text, LangChain Agent, OpenAI Chat Model, Gmail Tool, Google Calendar Tool, Baserow Tool, Window Buffer Memory

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does ⚙️

This workflow listens to messages in Telegram, either text or voice.
It understands what the user wants using AI.
Then it fetches recent unread emails from Gmail, upcoming Google Calendar events, and tasks or contacts from Baserow.
Finally, it sends back a clear answer inside Telegram fast.
It helps users save time by not switching apps to find information.


Who should use this workflow

  • Busy people: Those managing emails, calendars, and tasks daily.
  • Telegram users: Users who want quick info inside Telegram app.
  • Non-technical users: Anyone wanting smart help without manually checking apps.

Tools & Services used


Inputs → Processing steps → Outputs

Inputs

  • Incoming Telegram messages, either text or voice.

Processing steps

  1. Listen for Telegram messages using Telegram Trigger.
  2. If voice message, use Telegram Get File to get audio, then transcribe with OpenAI speech-to-text node.
  3. Send text (or transcribed speech) to LangChain AI assistant Agent node to understand user intent.
  4. AI agent calls Gmail node to fetch unread emails after specified date and summarises key details.
  5. AI agent calls Google Calendar node to get relevant events filtered by date.
  6. AI agent queries Baserow tool nodes to get contact and task tables data.
  7. Store conversation context in Window Buffer Memory node keyed by Telegram user ID.
  8. Send compiled response back to user via Telegram node as Markdown text.

Output

  • A clear, concise AI-generated answer with email summaries, calendar events, and tasks inside Telegram chat.

Beginner step-by-step: How to use this workflow in n8n

Step 1: Download and Import Workflow

  1. Click the Download button on this page to get the workflow file.
  2. Inside the n8n editor, use “Import from File” to load the downloaded workflow.

Step 2: Configure Credentials and IDs

  1. Add your Telegram Bot API credentials in the Telegram Trigger and Telegram nodes.
  2. Input your OpenAI API Key in the speech-to-text and LangChain Agent nodes.
  3. Connect Gmail OAuth2 details in the Gmail node.
  4. Set Google Calendar OAuth2 in the Calendar node.
  5. Add Baserow API Key and update table IDs for contacts and tasks.
  6. Check labels, email filters, calendar date ranges, and user IDs are correct if needed.

Step 3: Test the Workflow

  1. Send a text or voice message to your bot in Telegram.
  2. Confirm the AI replies with email, calendar, and task info summaries.

Step 4: Activate the Workflow

  1. Click “Activate” in the n8n editor to start running the workflow live.
  2. Make sure n8n runs continuously for 24/7 availability. Use self-host n8n if you want full control.

Common problems and how to fix them 🔧

Issue: Telegram messages do not trigger workflow

Make sure Telegram bot webhook URL matches the one in Telegram Trigger.
Check bot token is valid and authorized.

Issue: Voice message transcription fails

Verify Telegram Get File node gets correct file ID.
Confirm OpenAI API key has speech-to-text permission.

Issue: Unwanted promotional emails appear

Adjust Gmail node label filters to exclude promotions and spam folders.

Issue: Missing calendar events

Double-check Google Calendar OAuth credentials and date filter range.


Customizations ✏️

  • Change the AI assistant name and style by editing the system prompt in LangChain Agent node.
  • Support other languages by updating language code in OpenAI speech-to-text node.
  • Adjust Google Calendar date filters for broader or narrower event ranges.
  • Enable email attachment summaries in the Gmail node.
  • Add more Baserow nodes to query extra project data or notes.

Summary of benefits and outcome

✓ Access latest emails, calendar appointments and tasks inside Telegram fast.
✓ Avoid wasting time opening multiple apps to find info.
✓ Get spoken voice messages converted to text for easy handling.
✓ Have ongoing chat memory for better conversations.
✓ Use a simple workflow setup with common tools connected.


Frequently Asked Questions

Verify the webhook URL in the Telegram Trigger matches the Telegram bot settings. Confirm the bot token is correct and authorized.
Check the Telegram Get File node for the right file ID and ensure the OpenAI API key has permission for speech-to-text.
Configure label filters in the Gmail node to explicitly exclude promotions and spam labels.
Yes, it uses Window Buffer Memory node keyed by Telegram user ID to keep session context.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free