
This project is an advanced multi-agent automation workflow built using n8n. It includes intelligent agents that interact with:
- Gmail (email automation)
- Google Calendar (event handling)
- Airtable (contact management)
- YouTube + Google Sheets (content research & planning)
- LLMs via OpenRouter (GPT-4.1-mini)
- Telegram (chat interface)
Acts as the main orchestrator. It:
- Receives user input from a chat trigger
- Delegates tasks to the appropriate sub-agents (email, calendar, contacts, content)
- Uses
Think
agent to reflect and validate each task
Manages all Gmail-related tasks:
- Send Emails
- Create Drafts
- Reply to Emails
- Get Emails / Labels
- Mark as Unread / Apply Labels
Handles event scheduling with Google Calendar:
- Create solo or attendee events
- Get, update, and delete events
Interfaces with Airtable to:
- Get contact details
- Add or update contact records
Supports content creation:
- Scrape high-performing YouTube videos using Apify
- Suggest new ideas
- Append them to Google Sheets
LLM-powered reasoning step that validates choices made by the system for reliability.
Used across agents via OpenRouter for intelligent prompt handling.
Includes a chatTrigger
node to allow real-time conversations with the AI agent.
- User Message ➝ Telegram → Master Agent
- Master Agent determines the task (email, calendar, etc.)
- Sub-Agent (like Email Agent) processes the request
- LLM (GPT 4.1-mini) used for reasoning and formatting
- Think Agent validates the action
- Simple Memory stores short session context
- n8n instance (Cloud or Self-hosted)
- Gmail OAuth2 credentials
- Google Calendar OAuth2
- Airtable API Token
- OpenRouter API key
- Telegram Bot Token
- Apify API Key (for YouTube scraping)
- Google Sheets access for storing ideas
- Import the
My workflow.json
into your n8n instance. - Set up credentials for:
- Gmail
- Google Calendar
- Airtable
- OpenRouter
- Apify
- Telegram
- Connect your Google Sheet for YouTube ideas.
- Start the workflow and send messages via Telegram to begin interacting.
- "Send a follow-up email to John Doe about the meeting"
- "Create a calendar event tomorrow at 3 PM with Sarah"
- "Add Sam Lee to my contacts with email [email protected]"
- "Get 3 high-performing videos on AI tools this month"
Built with:
MIT License. Use at your own risk. Ensure data privacy and API usage compliance.