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
Automate AI assistant with n8n and Telegram

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

Learn how to Build this Workflow with AI:

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.


Automate AI assistant with n8n and Telegram

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.