How to build a personal assistant with n8n

Welcome to Agent Swarm, your intelligent personal assistant powered by n8nTelegramOpenAI, and Google Gemini. This workflow connects your communication, calendar, and file management tools—automating your daily tasks with a touch of AI magic.

Built by Muddaser Altaf, this ready-to-use template brings enterprise-grade automation directly into your Telegram chat.


🛠️ What Does It Do?

Agent Swarm connects:

  • Telegram as your interface
  • OpenAI or Google Gemini as the thinking engine
  • Gmail to send, receive, label, and reply to emails
  • Google Calendar to create, update, and delete events
  • Google Drive to search, move, and share files
  • 🧠 Integrated memory and multi-step reasoning across tools

All through a single conversation with your bot on Telegram.


🚀 Features

  • ✅ Email Agent: Send or draft emails, manage labels, mark unread, and reply smartly.
  • ✅ Calendar Agent: Book meetings, cancel events, and retrieve schedules.
  • ✅ Drive Agent: Upload, move, share, and list files — no need to open Google Drive manually.
  • ✅ Audio Transcription: Send a voice note via Telegram, get it transcribed instantly.
  • ✅ Multi-Agent AI Logic: Uses a “think” tool to verify the correct action, reducing hallucinations.
  • ✅ Memory Node: Keeps session context using Telegram chat ID.
  • ✅ Error Handling: Friendly Telegram responses when anything goes wrong.

⚙️ How to Set It Up

  1. Import the Workflow into your n8n editor (download link above).
  2. Set up these credentials:
    • Telegram Bot (via BotFather)
    • Gmail (OAuth2)
    • Google Calendar (OAuth2)
    • Google Drive (OAuth2)
    • OpenAI or Google Gemini API keys
  3. Configure these nodes:
    • Telegram Trigger: Connect your bot.
    • OpenAI or Google Gemini: Choose your preferred model.
    • Gmail/Calendar/Drive nodes: Select your respective credentials.
  4. Test your Telegram Bot by sending a message like:sqlCopyEditBook a call with Alex tomorrow at 3PM Or:cssCopyEditSend my resume to john@example.com

🧠 About the Gemini Integration

The workflow includes multiple Google Gemini nodes, intelligently assigned per tool:

NodePurpose
Google Gemini Chat ModelCore thinking engine for requests
Chat Model1Email Agent reasoning
Chat Model2Calendar Agent logic
Chat Model3Drive Agent decision-making

You can switch these to OpenAI models if preferred. Just replace the node and update credentials.


📎 Useful Templates (Optional)

Link the workflow to these sheets for extended functionality:


👨‍💻 Built By

Muddaser Altaf
🔗 Visit Website
📧 Contact Me


🧩 Final Notes

  • Fully compatible with n8n v1.6+
  • Easy to fork and extend
  • Modular: remove any agent you don’t use
  • Runs on n8n self-hosted or cloud

Direct Download link

https://drive.google.com/file/d/1ZH7JFX8x7MvDfP5ulUxORxNL6tvxGenY/view?usp=sharing

Leave a Comment

muddaser logo

Public Speaker, Softskills trainer and technology enthusiast

Contact

Muddaser Altaf

Social Address