Overview Turn your cluttered inbox into a smart, autonomous assistant that categorizes emails, replies to leads, checks your calendar, and notifies you on Telegram—all without lifting a finger. This workflow is designed for a marketing agency, but can be adapted for any business. It classifies incoming emails into categories like Sales, Client Communication, Reports, Billing, and Other. If it detects a new lead or priority message, it routes the email to one of two agents: - The Calendar A

Overview Turn your cluttered inbox into a smart, autonomous assistant that categorizes emails, replies to leads, checks your calendar, and notifies you on Telegram—all without lifting a finger. This workflow is designed for a marketing agency, but can be adapted for any business. It classifies incoming emails into categories like Sales, Client Communication, Reports, Billing, and Other. If it detects a new lead or priority message, it routes the email to one of two agents: - The Calendar Agent checks your availability in Google Calendar and drafts a consultation reply - The Knowledge Agent answers FAQs using your business knowledge base (with Supabase embeddings) Both agents create draft email responses and send a Telegram alert so you're always in the loop. Who’s it for - Founders and agency owners buried in emails - Marketing teams handling lots of inbound leads - Customer support managers automating Tier 1 replies - Anyone who wants a cleaner, smarter inbox without hiring a VA How it works - Gmail trigger watches for incoming emails - Email content is passed to an AI classifier to apply a label (Sales, Client, Billing, etc.) - If the message is a new inquiry or lead, it’s routed to: - Calendar Agent → checks Google Calendar and drafts a reply with available slots - Knowledge Agent → searches vector DB and drafts a helpful reply from documentation - Both agents create a Gmail draft response and send a Telegram notification with summary Example use case > A lead emails you asking for a discovery call. > > ✅ Email is labeled "Sales" > ✅ AI Calendar Agent checks your Google Calendar > ✅ A reply is drafted offering free time slots > ✅ You get a Telegram ping: > "New lead: Abdul Mir. I checked your calendar and drafted a reply. Check your email!" How to set up 1. Connect your Gmail and set up a trigger for new messages 2. Train the AI classifier with example categories and emails 3. Connect Google Calendar API for availability checks 4. Upload your internal docs and sync to Supabase vector store 5. Connect Telegram for alerts 6. Customize AI prompts and escalation logic as needed Requirements - Gmail integration - OpenAI or Claude API (for classification + chat agents) - Google Calendar API - Supabase (or Pinecone, Weaviate) for RAG vector DB - Telegram bot API key How to customize - Add custom labels like “Recruiting,” “Investor,” or “Support” - Replace Telegram with Slack or SMS alerts - Add CRM sync to update lead status - Escalate complicated replies to a human via task creation - Add auto-send (instead of drafts) after review or based on confidence score
Download the workflow JSON file after purchase.
Open n8n → click the menu → Import from File.
Select the downloaded JSON and import.
Set up credentials for each node that requires them.
Click Execute Workflow to test, then activate.
Setup guide included
Purchase to unlock the full step-by-step guide
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.