RobotsHelp

n8n Customer Support Automation Workflow: Build One in 7 Steps

Written by

in

It is Monday, 8:40. The support inbox has 31 new emails. Twelve ask where an order is, six ask how to reset a login, and the rest need a person. You answer the same dozen questions again and the hard ones wait until after lunch.

An n8n customer support automation workflow takes the first pass at that pile. It reads each new email, sorts it into a category, drafts a reply from answers you wrote yourself, and sends the draft to you for approval before anything reaches a customer. Messy or angry emails skip the draft and go straight to a person. You can build the whole thing in an afternoon, and the first version needs no programming.

This guide builds that workflow node by node, with the prompts to paste in, a test routine, and the limits you should set before you let it near real customers.

No password needed – your reset opens instantly.

No password. Just your email, and you’re in.

Want more short, practical AI lessons for work like this one? They all start on the RobotsHelp home page.

What this n8n customer support automation workflow does

The workflow has six steps, and each one is a node or a small group of nodes on the n8n canvas.

  1. Trigger. A new email arrives in your support inbox.
  2. Classify. An AI node puts the email into one category, such as order status, how-to, billing or complaint.
  3. Look up. The workflow pulls the approved answer for that category from a short list you maintain.
  4. Draft. A second AI node writes a reply using only that approved answer and the customer’s details.
  5. Approve. You get the draft by email and click Approve or Decline.
  6. Send and log. Approved drafts go out as a reply, and every email lands in a spreadsheet row so you can see what happened.

Anything the classifier cannot place, plus every complaint and every billing dispute, goes to a person with no draft at all. That rule is the most important part of the design.

This page is about the inbound email loop in n8n. If you want the wider picture of support agents, tools and handoff rules first, read how to automate customer support with AI agents. If you plan to let an agent choose its own tools instead of following a fixed path, the n8n AI agent workflow guide covers that design.

What you need before you start

  • An n8n account, either n8n Cloud or a copy you host yourself. If you have never opened it, spend twenty minutes on the n8n tutorial for beginners first.
  • A support inbox you can connect, such as a Gmail address or a Gmail label.
  • An API key for the AI model you want n8n to call, added as a credential in n8n.
  • A spreadsheet with your top questions and the answers you are happy to send.
  • About 20 real past emails to test with. Copy them out of your sent folder and strip names and order numbers first.

Step 1: write your approved answers first

Before you open n8n, open a spreadsheet. This is the step most people skip, and it decides whether the replies sound like you or like a stranger.

Pull one week of support emails and group them. A typical small business ends up with five to eight groups: order status, shipping times, returns, login problems, pricing questions, product how-to. For each group, write one clear answer in your own voice. Two to five sentences is enough. Add a link to the right help page where one exists.

Make three columns: category, approved answer, needs a person?. Mark billing disputes, cancellations, legal wording and anything with an angry tone as “yes” in the last column. Those categories never get an automatic draft.

This sheet is your knowledge base. It is small on purpose. A model that can only pull from ten approved answers has little room to invent a refund policy you never wrote.

Step 2: trigger the workflow from your inbox

In n8n, create a new workflow and add the Gmail Trigger node. Point it at your support address or at a label such as “Support”. Set it to check for new messages on a schedule that suits your volume, for example every few minutes. The Gmail Trigger documentation lists the polling options and filters.

Then add a Set node that keeps only the fields you need: sender address, subject, and the plain-text body. Fewer fields means shorter prompts and fewer surprises later.

If your support does not arrive by email, use a form or chat tool instead. The n8n webhook tutorial shows how to start a workflow from any tool that can send a web request.

Step 3: classify each email with the Text Classifier node

Add the Text Classifier node after the Set node. It sends each item to your AI model and returns one of the categories you define. According to the n8n Text Classifier documentation, each category has a name and a description, and the description is what tells the model what the category means.

Set the input to the email body. Then add categories that match your sheet, with descriptions written for a model that has never seen your business:

order_status: The customer asks where their order is, when it will arrive, or for a tracking link.
how_to: The customer asks how to use the product or how to do a specific task.
account_access: The customer cannot log in, lost a password, or needs to change the email on their account.
shipping_returns: The customer asks about delivery times, shipping costs, or how to return an item.
needs_person: The customer is angry, disputes a charge, asks for a refund or cancellation, mentions a lawyer, or writes about anything not listed above.

Two options on the node matter here. Turn off multiple classes so each email gets exactly one label. And set what happens when there is no clear match to output on an extra “Other” branch, as the documentation describes. The default is to drop the item, which would make an email vanish without a trace. You want the opposite: anything unclear goes to a person.

Connect the “Other” branch and the needs_person branch to the same place: a Gmail node that forwards the email to your team inbox, or a Slack message with the subject and a link. No AI draft on that path.

Step 4: look up the approved answer

For each of the other categories, fetch the matching row from your spreadsheet. The simplest way is a Google Sheets node set to read rows, followed by a filter that keeps the row whose category equals the classifier’s label. If you only have a handful of answers, you can skip the sheet and type them into a Set node. Both work.

After this step, every item carries three things: the customer’s email, the category, and the approved answer for that category.

Step 5: draft the reply with a Basic LLM Chain

Add a Basic LLM Chain node, which the n8n documentation describes as the node for sending a prompt to a model and getting text back. Connect your chat model to it, then paste in this prompt:

You write short email replies for the support team at [your company].

Rules:
1. Use only the approved answer below. Do not add facts, prices, dates or promises that are not in it.
2. If the customer's email asks for something the approved answer does not cover, reply with exactly: NEEDS_PERSON
3. Greet the customer by first name if it is in the email. Keep the reply under 120 words.
4. Plain, friendly tone. No exclamation marks. Sign off with "[Your name], [Company] support".

Customer email:
{{ $json.body }}

Approved answer:
{{ $json.approved_answer }}

Rule 2 is the safety valve. When the model reports that the answer does not fit, a small IF node checks for the word NEEDS_PERSON and sends the email down the same human path as the complaints. The IF node documentation shows how to branch on a text value.

If you want ready-made wording for different support situations, the ChatGPT prompts for a customer support agent page has a set you can adapt for the approved answers themselves.

Step 6: add a human approval step before anything sends

For the first month, nothing should go to a customer without your approval. n8n has a pattern for this. The Gmail node can send a message and then pause the workflow until someone responds, and n8n also describes how to put a human in the loop for AI actions in its human-in-the-loop guide.

Set it up like this:

  1. Send yourself an email containing the customer’s message, the category, and the drafted reply.
  2. Add two choices, Approve and Decline.
  3. After the pause, an IF node checks the answer. On Approve, a Gmail node replies in the original thread with the draft. On Decline, the item goes to the human path.

You can edit a draft before approving by copying it into your normal mail client. That still beats writing from scratch, and you will notice patterns fast. If you keep fixing the same sentence, fix it in the approved answer in the spreadsheet and it is corrected everywhere.

Step 7: log every email and set up an error alert

Add a final Google Sheets node that appends one row per email: date, sender domain, category, whether a draft was made, and whether you approved it. After two weeks this sheet tells you what your customers actually ask, which is worth knowing even without the automation.

Then create a second workflow with an Error Trigger node that emails you when the main workflow fails, and select it as the error workflow in your main workflow’s settings. The n8n error handling documentation walks through it. Without this, a broken credential means customer emails sit unanswered and you find out from an annoyed customer.

Test it on 20 old emails before it goes live

Do not connect the live inbox first. Use the 20 past emails you saved and run them through one by one, either by pasting each into a manual trigger or by sending them to a test address.

Check each result against four questions:

  • Did the classifier pick the label you would have picked?
  • Does the draft use only facts from the approved answer?
  • Did every complaint, refund request and billing dispute land on the human path?
  • Would you be comfortable seeing the draft under your own name?

Expect some misses on the first run. The usual cause is a category description that is too vague. If “how_to” keeps catching login problems, add the words “does not include login or password problems” to its description and run the batch again. Go live only when all 20 behave, and even then keep the approval step on.

How to reduce support tickets with this workflow

The workflow answers tickets faster. It does not stop them from arriving. To cut the number of tickets, use the log from Step 7.

Sort the sheet by category and count. If order status emails are your biggest group, the fix may be a tracking link in the order confirmation. If account access is the biggest, a clearer reset page may remove most of them. Each time you fix the cause, that category shrinks. The automation handles what is left, and the sheet tells you where to look next.

How to use AI for customer support automation without losing quality

Five habits keep quality up once the workflow is running:

  • Keep the answer list short and current. When a policy changes, change the sheet that day.
  • Keep humans on money and emotion. Refunds, cancellations, complaints and anything with a deadline stay with a person.
  • Read a sample every week. Open ten sent replies and read them as the customer would.
  • Tell customers when it matters. If your replies are AI-assisted, say so in a footer or on your help page, and check the rules where you operate.
  • Protect customer data. Send the model only the fields it needs, and read your AI provider’s data terms before you connect a real inbox.

Common mistakes with n8n support workflows

  • Letting the model answer from memory. If the prompt does not forbid it, the model will fill gaps with guesses. Rule 1 and Rule 2 in the draft prompt exist for this.
  • Dropping unclear emails. The default setting on the classifier discards items with no match. Switch it to the Other branch.
  • Skipping the test batch. Twenty emails take half an hour and save you from a bad first week.
  • Automating complaints. An upset customer wants a person. A fast, polite draft that misses the point makes it worse.
  • Forgetting the error alert. A silent failure is the most expensive kind.

When to use a chatbot or an agent instead

This workflow suits email, where a delay of a few minutes is fine and you want to approve what goes out. If customers need answers inside a live chat window, you need a different setup, and AI tools for customer support compares the ready-made options. If you want the system to look up orders or open tickets by itself, that is an agent design, and agentic AI for customer support explains where that works and where it breaks.

Start with the fixed workflow above. It is easier to test, easier to explain to your team, and easier to trust.

Frequently asked questions

Can I build this on the free version of n8n?

You can run the community edition on your own server at no license cost, but you pay for the server and for the AI model calls. n8n Cloud plans change over time, so check the current pricing page before you commit.

Which AI model should the nodes use?

Any chat model that n8n supports works for classification and short drafts. Pick one, run your 20-email test, and switch only if the results disappoint.

Will it reply to customers by itself?

Not in this design. Every draft waits for your approval. Once you trust a category, such as order status, you can remove the approval step for that category alone and keep it for the rest.

How long does the build take?

Most people need one afternoon for the first version and a few evenings of tuning with real emails.

Your next step

Start with the spreadsheet of approved answers today. It takes thirty minutes and it is useful even if you never open n8n. Then build the workflow one node at a time and test it on your 20 old emails.

More practical AI lessons for work arrive in Launchpad, and joining takes one email address.

No password needed – your reset opens instantly.

No password. Just your email, and you’re in.

🇳🇱 Deze pagina in het Nederlands  ·  🇩🇪 Diese Seite auf Deutsch