An intelligent multi-agent system built with N8N that provides a comprehensive personal assistant through Telegram. The bot manages calendar, tasks, emails, research, memory, and project management through specialized AI agents.
N8N Workflow Template: https://n8n.io/workflows/8582
Get the official N8N workflow template to quickly deploy this multi-agent system in your N8N instance.
Main_agent.json is the hierarchical top-level agent (the "Main Agent"). All other agents (Calendar, Email, Tasks, Memory, etc.) are added as sub-workflows (tools) to the Main Agent. This enables the Main Agent to route requests and delegate tasks to specialized sub-agents.
Each sub-agent (such as Memory_agent.json, Project_management.json, Tasks_and_Todo_Agent.json, etc.) is a self-contained workflow. These are imported into the Main Agent as tools using the @n8n/n8n-nodes-langchain.toolWorkflow node type.
- The
Memory_agent.jsonworkflow contains its own AI Agent node, Gemini node, and Airtable nodes for memory storage and retrieval. - It is triggered by the
executeWorkflowTriggernode when called as a tool from the Main Agent. - All required credentials (e.g., Gemini API, Airtable API) must be configured in N8N and assigned to the relevant nodes in the sub-agent workflow.
- Open
Main_agent.jsonin N8N. - Locate the AI Agent node (usually named
Manager Agent). - For each sub-agent (e.g., Memory, Project Management, Tasks), add a Tool in the AI Agent node:
- Use the
@n8n/n8n-nodes-langchain.toolWorkflownode type. - Set the
workflowIdto the corresponding sub-agent workflow (e.g.,Memory_agent.json). - Provide a clear
nameanddescriptionfor each tool.
- Use the
- Connect the tool nodes to the AI Agent node as shown in the sample
Main_agent.json. - Configure required credentials for each agent (Gemini, Airtable, SerpAPI, etc.) in the N8N credentials manager. Assign them to the relevant nodes in each sub-agent workflow.
See the Main_agent.json and sub-agent files (e.g., Memory_agent.json) for working examples of this hierarchical structure.
-
Sign up at n8n.cloud
- Create a free account
- Get instant access to N8N without installation
- 5,000 workflow executions per month (free tier)
-
Import the Workflows
- Download all
.jsonfiles from this repository - In N8N Cloud: Go to Workflows → Import from File
- Import each agent workflow individually
- Download all
- Node.js 18.10 or higher
- npm or yarn
# Install N8N globally
npm install n8n -g
# Start N8N
n8n start
# Access at: http://localhost:5678# Run N8N with Docker
docker run -it --rm \
--name n8n \
-p 5678:5678 \
-v ~/.n8n:/home/node/.n8n \
n8nio/n8nThis multi-agent system creates "Jeni" - an AI assistant that manages your digital life through Telegram. The system consists of 9 specialized agents:
| Agent | Purpose | Key Features |
|---|---|---|
| Main Agent | 🎯 Central coordinator | Routes requests, handles voice/text/images, personality |
| Calendar Agent | 📅 Schedule management | Google Calendar integration, event scheduling, reminders |
| Tasks & Todo Agent | ✅ Task management | Todoist integration, task creation/updates/completion |
| Email Agent | 📧 Email management | Gmail integration, compose/reply/organize emails |
| Memory Agent | 🧠 Information storage | Airtable database, contacts, notes, conversations |
| Research Agent | 🔍 Web research | SerpAPI, Wikipedia, Wolfram Alpha integration |
| Project Management | 📊 Team coordination | Project tracking, team follow-ups, progress analysis |
| Schedule Agent | ⏰ Reminder system | Time-based notifications and reminders |
| Notify Memory | 🔔 Notification handler | Manages alerts and important notifications |
- Natural Language Processing: Understands voice messages, text, and images
- Multi-modal Input: Handles text, voice notes, and photos via Telegram
- Smart Routing: Automatically delegates tasks to appropriate specialist agents
- Memory System: Remembers contacts, preferences, and conversation history
- Scheduled Actions: Daily briefings and weekly team follow-ups
- Calendar Integration: Google Calendar management with smart scheduling
- Task Management: Todoist integration for comprehensive task tracking
- Email Automation: Gmail management with intelligent email composition
- Web Research: Real-time information gathering from multiple sources
To fully utilize this system, you'll need to set up these services:
- Gemini API: Gemini models for AI processing
- Telegram Bot Token: Create via @BotFather
- Google Calendar API: Calendar management
- Gmail API: Email operations
- Todoist API: Task management
- Airtable API: Memory and data storage
- SerpAPI: Web search capabilities
- Wolfram Alpha API: Mathematical and factual queries
- Google Sheets API: Spreadsheet operations
💬 "Schedule a meeting with John tomorrow at 2 PM"
→ Calendar Agent creates the event and sends confirmation
💬 "What are my tasks for today?"
→ Tasks Agent lists all pending items from Todoist
💬 "Research the latest AI developments"
→ Research Agent searches web and provides summary
💬 "Send email to client about project update"
→ Email Agent composes and sends professional email
💬 "Remember that John's birthday is next week"
→ Memory Agent stores personal information
- Import Workflows: Import all 9 JSON files into your N8N instance
- Configure Credentials: Set up API keys for all required services
- Set Telegram Webhook: Configure your bot token in Main Agent
- Test Connections: Verify each agent works independently
- Start Main Workflow: Activate the Main Agent to begin
- Conversational AI: Natural personality with wit and proactivity
- Multi-Agent Architecture: Specialized agents for different domains
- Cross-Platform Integration: Connects 10+ different services
- Automated Workflows: Smart scheduling and follow-ups
- Memory Persistence: Remembers context across conversations
- Error Handling: Robust fallback mechanisms
- Scalable Design: Easy to add new agents and capabilities
The system automatically:
- Sends morning briefings with schedule, tasks, and news
- Provides weekly team progress reports
- Manages calendar conflicts and scheduling
- Organizes and prioritizes emails
- Tracks project milestones and deadlines
Note: This is a comprehensive personal assistant system. Start with basic agents and gradually add more complex integrations as needed.
