agentusecases.aiAll 2,545 use cases
Work & Operations

Classify and handle email across six accounts

An n8n email management agent classifies incoming messages and uses tool calls across six email accounts. · May 1, 2025

Done withN8n8n

What they did
They built a self-hosted n8n workflow that polls six inboxes, runs a LangChain agent with GPT-4o-mini to classify each email into 16 categories, detect the language, extract the sender name, and assign priority. The agent could call Google Sheets tools for product and sender lookups, draft replies with required sales elements, and hand each message to the user in Telegram for approve, edit, archive, snooze, spam, or appointment actions, with calendar checks and mirrored filing for forwarded mail.
How it went
It was running as a real production setup, but after about six weeks the AI Agent node started crashing with an "invalid syntax" error on a roughly 50k-character system prompt. The direct OpenAI fallback still returned JSON, but without tool calls it could not insert product links.
Worth knowing
The main catch is prompt and workflow complexity: the author says six weeks of work went into it, and the failure appeared when the LangChain agent was handling a very large system prompt.

Try it yourself with n8n

Build an n8n email agent that watches my [number] email accounts: [list accounts]. For each new message, classify it as [categories, e.g. urgent, needs reply, newsletter, receipt, spam], apply the matching label or folder, and add a one-line summary to a daily digest sent to me at [time]. Don't delete or send anything without my approval, and test on [number] recent emails before turning it on.

Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.

3 more accounts of this

  • Draft email replies with an n8n workflow · Reddit ↗
  • Draft Gmail replies without sending them · Reddit ↗
  • Draft email replies for human review · Reddit ↗
Read the original ↗

Source: Reddit · May 1, 2025

Related use cases

  • N8

    Add todo items to Todoist from Telegram

    A Telegram bot with an LLM and an orchestration platform (n8n or windmill) adds todos to the author's Todoist account from natural language messages.

    n8n

  • N8

    Review GitHub pull requests automatically

    An n8n AI agent triggers on each new PR, fetches diffs, calls an LLM for a review, and posts comments and labels back on the PR.

    n8n

  • N8

    Automate bookkeeping workflows and supplier-delay emails

    Commenters used n8n to automate bookkeeping firm workflows, saving about 600 hours a year, and to email customers automatically when supplier lead times changed.

    n8n

  • GH

    Run a solo company with eight agent departments

    A founder set up CEO, CFO, COO, lawyer, accountant, marketing, CTO, and improver agents that share memory and consult each other.

    GitHub Copilot

  • GA

    Build presentations and spreadsheets from web research

    A user had Agent Mode build a presentation, draft an eBook and turn web research into spreadsheets; the author said the design was not award-winning but saved hours.

    ChatGPT Agent

  • ··

    Hand off small business admin tasks to AI with approval

    A business owner uses AI for small admin tasks, approving anything involving money personally.

    Custom agent

Keep browsing

All 116 n8n use casesAll 466 Work & Operations use cases

Get 5 like this every morning

The best things people got an AI agent to do, each with the prompt to try it.

All use casesAgentsTopicsJobsNewRSSAboutContactSponsorPrivacy
Sponsors
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us