Welcome to Agent Swarm, your intelligent personal assistant powered by n8n, Telegram, OpenAI, 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
- Import the Workflow into your n8n editor (download link above).
- Set up these credentials:
- Telegram Bot (via BotFather)
- Gmail (OAuth2)
- Google Calendar (OAuth2)
- Google Drive (OAuth2)
- OpenAI or Google Gemini API keys
- Configure these nodes:
Telegram Trigger
: Connect your bot.OpenAI or Google Gemini
: Choose your preferred model.- Gmail/Calendar/Drive nodes: Select your respective credentials.
- Test your Telegram Bot by sending a message like:sqlCopyEdit
Book 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:
Node | Purpose |
---|---|
Google Gemini Chat Model | Core thinking engine for requests |
Chat Model1 | Email Agent reasoning |
Chat Model2 | Calendar Agent logic |
Chat Model3 | Drive 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