Kill the Copy-Paste: My n8n AI Pipeline for Email Triage and Meeting Follow-Ups
I built an AI pipeline with n8n, starting by eliminating daily copy-paste
Author: 独立开发阿平
1. Why I bothered with this
One to two hours a day goes into copy-paste. I already have enough tools; what I lack is the thread that strings them together.
ChatGPT, Claude, note apps, email, to-do lists each keep their own silo. When an email arrives, I read it through, decide whether it's a notification, a promo, or needs a reply, then draft a response — that's ten-plus minutes. After a meeting, I dig through the transcript to figure out who does what and when — that's about half an hour. Conclusions from chat windows still have to be manually moved into documents. Add those three up, and it's one to two hours a day, mostly copy-paste.
None of these tasks are hard; the hard part is repeating them every day. I wanted to string these actions into a pipeline and do less ferrying.
I tried Zapier and Make. They're friendly and quick to hook up two services. What gave me pause were two things. First, long-term use requires a subscription, and as the number of workflows grows, so does the cost. Second, the data passes through their servers. n8n can be self-hosted, and those two things I can control myself. It also has drag-and-drop nodes and nodes for connecting models, so I don't have to write my own APIs.
But self-hosting isn't free. The machine has to stay on; upgrades, backups, and errors are my problem. The model step also needs thought — if you use a cloud API, content still reaches the model vendor. For truly sensitive content, you need a local model. I'll discuss that trade-off later.
n8n is only suited for things that follow a fixed pattern and happen repeatedly. For creative work that needs on-the-spot judgment, it can't handle it. If you expect it to think for you, you'll probably be disappointed.
My current benchmark for whether something is worth wiring into the pipeline: is it happening every day, is the input stable, and can the rules be written down? If those three pass, I check whether a single failure would be a big deal. If it would, I can still do it, but only with a manual confirmation step. If all three pass and failures have a fallback, it's worth building. If only one or two criteria are met, continuing to do it manually is more peace of mind.
2. Minimal prep before starting
I first ran email triage on the cloud version to confirm it was useful, then moved to Docker. Going the other way, wrestling with deployment first, is a quick way to get stuck on environment issues, abandon the workflow before you see it work.
n8n has two modes, and the main difference is where the data lives.
| Official Cloud | Docker Self-hosted | |
|---|---|---|
| Getting started | Register and use it | Need to prepare a machine first |
| Data | Goes through official servers | Stays on your own machine |
| Suitable for | Validating whether a workflow works | Running it daily long-term |
The cloud version doesn't require buying a server first. Spend an afternoon getting a workflow working, confirm that you'll actually look at the drafts, then decide whether to self-host. Self-hosting doesn't need a big machine; a small host that can run Docker is enough.
Before starting, prepare a machine that can run Docker, a model API key, an email authorization code or Gmail authorization, plus a token for your task tool. Treat the API key and email authorization like passwords. Create dedicated ones if you can; don't paste your main account everywhere.
3. The first workflow: get email triage running
The first version just aims to correctly classify an email and draft a reply. It doesn't pursue full automation.
You can fill in the nodes and key settings according to the table below.
| Sequence | Node | Settings |
|---|---|---|
| 1 | Email Trigger (IMAP) or Gmail Trigger | Trigger on new email arrival |
| 2 | AI | Classify, three-sentence summary, draft on demand |
| 3 | Gmail | Create Draft, do not select Send |
| 4 | Human | Take a look, adjust wording, click send |
Start with a real email. Pin the trigger's output, and run step by step.
Fix the AI prompt as follows.
You are my email assistant. Only three categories: needs reply, notification, promo.
For needs reply, draft a reply in my tone, body no more than five sentences.
Also compress the original email into three sentences, output JSON with fields type, summary, draft.
When uncertain, set type to needs reply and leave draft empty.
The return looks roughly like this.
{
"type": "needs reply",
"summary": ["The other party is confirming the review time on Friday", "We need to provide a revised version of the interface doc", "The attachment has the new field list"],
"draft": "Got it, Friday 2 PM works. I'll send you the interface doc before Thursday end of day."
}
Keep only three categories: needs reply, notification, promo. If you have too many categories, the model gets confused. Three is enough to decide whether to draft, archive, or ignore. When a reply is needed, the Gmail node selects Create Draft, and the draft stays in the drafts folder. I open my inbox, take a look, adjust the wording, then send.
The draft step is key. The model's tone is often more formal than my own; sending it directly would feel weird to people I know. Having it draft first, then I rephrase in my own voice, is faster than starting from a blank page.
The first version tends to get stuck in three places.
The email body isn't clean text. HTML tags, signatures, and quoted text from previous messages are all in there. Feeding it directly to the model makes it treat old content as new. The fix is to convert to plain text first, strip quoted lines and signatures, and keep only the latest message.
Long threads can blow through tokens. With a dozen back-and-forth messages, feeding the whole thing in can easily exceed limits. Take only the latest message and the one before it. Put a Limit node before the AI with Max Items set to 3. For longer threads, keep only the latest message.
Authorization expires and APIs time out. If the Gmail token expires or the IMAP password changes, the node just sits there, and the drafts folder is empty the next day. The fix is to reconnect credentials, turn on Retry On Fail on the node with Max Tries set to 3, and use an Error Trigger for failure notifications so you get a message when retries run out.
Pin a representative email and run manually. First check whether the trigger got the body, then whether the HTML was cleaned up, then whether the AI's returned JSON can parse, and finally whether the Gmail draft was created.
The first draft sat in the drafts folder. I tweaked two sentences and sent it. It wasn't dramatically faster, but it beat starting from a blank page.
Get it running ugly first; don't chase perfection on day one.
4. Hook up meeting follow-ups
After email triage ran smoothly, I added meeting recording-to-todo.
Hand the transcript text to the AI and require it to return only an array, each object carrying owner, task, due — that is, who, what, and when.
[
{ "owner": "me", "task": "provide a revised interface doc", "due": "before Thursday end of day" },
{ "owner": "me", "task": "confirm Friday review room", "due": "Wednesday" }
]
Once the array is obtained, write it into a Notion database or Todoist, and I do a final check to see if I missed anything I committed to. The most common noise in meeting transcripts is phrases like “we’ll look at this later” or “we’ll talk about it then.” Such statements shouldn't become to-dos. The prompt should state that anything without an explicit owner and time should not be output, and when in doubt, append the original sentence for me to judge. Dates also need normalization: “tomorrow,” “Thursday,” “next week” should be converted by the model into concrete dates before writing into the task tool. Otherwise you look at “next week” two days later and can’t remember which week.
The email flow still uses Create Draft into the drafts folder; whether to send is my click. Both workflows keep a human checkpoint. AI does the drafting; I do the confirming.
I initially got lazy and had the email flow send directly. Once the AI misread an internal communication as an external reply, and the wording was overly formal; it almost went out. Since then, all external actions must go through me.
There are two fallbacks. If a key step fails, send a notification. AI summaries can invent things, so for anything involving numbers or commitments, I always go back to the original material to verify. So far this system is only semi-automated; sending a message externally still requires my own click. The human checkpoint has little to do with whether I trust the model. I know when I might get lazy; the smoother the flow, the more likely I am to click approve without thinking. Putting a confirmation point before sending is cheaper than explaining after the fact.
5. When a local model is worth the trouble
After the workflow stabilized, I tried swapping the cloud API for a local Ollama for a while. The connection is via Ollama's OpenAI Compatible interface, set Base URL to http://localhost:11434/v1, and switch the model to a 7B-level Chinese model.
Sensitive content, long context, watching cloud bill climb, or you already enjoy playing with local deployment and are willing to spend time tuning — these three situations are worth trying. If you're just handling public information and want convenience, the cloud API is more stable. Local models still lag mainstream cloud models in speed and quality. Don't fight it just to look cool.
A more stable split is to route sensitive material through a local model and public information through the cloud. Use two sets of credentials in the same n8n and choose the model according to content type, rather than chasing one model for everything.
Local deployment also has hidden costs. The machine must stay on, the model occupies memory, and you have to debug issues yourself. If you're away and the machine restarts, the pipeline breaks. At least the cloud API takes care of that.
6. Five pieces of hard-won experience
The five below are recorded after stepping on the rakes.
- Get it running with fixed sample data first. Pin a typical email and run step by step. The sample should cover emails that need replies, notifications, and ones with attachments.
- Put API keys and email authorizations in the Credentials panel. Name them like
openai-main,gmail-mainso you can recognize them at a glance. Don't hardcode them in nodes. That way, when you export a workflow, they don't go with it, and you can change a key in only one place. - Export a JSON backup before modifying a workflow. Download one from the menu with the date in the filename. If you break it, import the older version to revert. This takes ten seconds and can save you an evening of rebuilding.
- Always cap the number of iterations on loop nodes. Set Batch Size to 5 on Loop Over Items, and also lock down the retry count in advance. Don't let a loop with an AI node burn all night. At least constrain two of: item count, duration, retry count.
- Logs, retries, and failure notifications — having all three means it's graduated from a toy to a daily-driver tool. You can browse each execution in Executions, get alerts on failure. If even one is missing, you won't know when it stops running someday.
Among the five, #3 and #5 are the easiest to skip. Backups and alerts seem useless when everything is going well, but the first time something breaks, you'll know their worth.
7. What actually changed
The gains are concrete time savings in specific scenarios. Email replies went from drafting to editing. Post-meeting to-dos went from half an hour to a five-minute check. Conclusions from chat windows still have to be manually moved into documents.
What it doesn't do well is also clear. Communication that needs reading between the lines, writing that needs me to think through my own views — those I still do myself. In this pipeline, AI handles the errand-running; it doesn't think for me.
One piece of advice for anyone who wants to try: pick one small thing you're annoyed by every day but that follows a fixed pattern, and spend a weekend's two hours getting it running. Start with the shortest workflow, pin five sample records, and don't connect the real trigger yet. Once it works, add failure notifications, then switch to the real trigger. Use it for a week, confirm you actually look at the results, and only then consider a second scenario.