- n8n: A fair-code workflow automation platform with a visual canvas, hundreds of built-in integrations, and AI nodes for agents, memory, and tools. Here it runs the chat, the AI Agent, and the four tools it can call.
- Herogpu: A compute-efficient inference provider for apps and agents. We run purpose-built small and nano language models across an edge network for the high-volume tasks you run constantly - classification, extraction, moderation, routing, summarization - at ~10x lower latency and 50%+ lower cost than frontier-model workflows. Auto-scaling, with zero GPU infrastructure to manage. Plug in and you’re live.
- ZeroGPU nodes for n8n: The official community node package,
@zerogpu/n8n-nodes-zerogpu, which adds a ZeroGPU Chat Model, ZeroGPU Embeddings, and a ZeroGPU node to n8n, also available to agents as ZeroGPU Tool. Here the ZeroGPU Chat Model runs the agent, and four ZeroGPU Tools do the redaction, moderation, classification, and summarization.
🎥 Watch the Video Guide
If you prefer a visual walkthrough, check out the accompanying video guide below:📥 Copy the Workflow
Want to skip the build? The finished workflow from the video, exported from n8n, is in its own file. It includes the blue note from the canvas in the video and a yellow note with a sample email to paste.n8n-support-inbox-copilot.json
Open the workflow as raw JSON on its own page.
- Paste it. Open the link, select everything and copy it (Cmd + A, then Cmd + C on a Mac, or Ctrl + A, then Ctrl + C elsewhere). Then click an empty spot on a new workflow’s canvas and paste.
- Import from URL. In a new workflow, open the … menu at the top right, choose Import from URL, and paste the link.
- Import from File. Save the page as
n8n-support-inbox-copilot.json, then choose Import from File in the same menu.
model field on the ZeroGPU nodes, because n8n leaves default values out of exported workflows, so every ZeroGPU node runs on its operation’s default model, the ones listed in Step 7. To see how every node is set up and why, follow Building the Support Inbox Copilot with n8n below.
📦 Installation
First, you need a self-hosted n8n instance where you’re the owner or an admin. If you don’t have one yet, start n8n locally with Node.js 20.19 to 24.x, then open http://localhost:5678:ZeroGPU in the nodes panel to confirm the install. You’ll see three nodes: ZeroGPU, ZeroGPU Chat Model, and ZeroGPU Embeddings. When you attach the ZeroGPU node to an agent’s Tool input, n8n lists it as ZeroGPU Tool. If n8n runs in queue mode, or you’d rather install from a shell, follow the manual steps in the n8n integration guide.
🔑 Setting Up API Keys
You’ll need to set up your API key for herogpu. This ensures that n8n can reach herogpu’s models securely. You can go to here to get an API key from herogpu. The key starts withzgpu-api-.
n8n keeps API keys in encrypted credentials, so you paste the key once and pick it on every ZeroGPU node:
- Open Credentials, create a new credential, and search for ZeroGPU API.
- Paste your key into API Key and save. n8n checks the key against an endpoint that needs authentication, without running any inference.
🔐 Access PII Redaction with herogpu
Herogpu is a compute-efficient inference provider for apps and agents. We run purpose-built small and nano language models across an edge network for the high-volume tasks you run constantly - classification, extraction, moderation, routing, summarization - at ~10x lower latency and 50%+ lower cost than frontier-model workflows. Auto-scaling, with zero GPU infrastructure to manage. Plug in and you’re live. In this section, we will redact the personal data from a customer email with a single ZeroGPU node as an example. Create a new workflow, click an empty spot on the canvas, and paste this (Cmd + V on a Mac, Ctrl + V elsewhere). It’s a manual trigger and one ZeroGPU node set to Extraction > Redact PII:Paste onto the canvas
person, email, phone number, address, date of birth, credit card number, social security number, ip address), and only those types are redacted. Click Execute workflow:
[CREDIT_CARD_NUMBER]: the model treats the last four digits of a card as card data.
🎉 herogpu effortlessly strips personal data out of customer messages, providing a fast, low-cost privacy layer for AI integration!
🧰 Building the Support Inbox Copilot with n8n
This section builds the copilot node by node: a chat to paste emails into, an AI Agent with strict triage instructions, and four ZeroGPU Tools it calls on every message. Every model call behind it runs on herogpu. When you’re done, the canvas looks like this:Step 1: Add the chat trigger
Create a new workflow and add a Chat Trigger (When chat message received). Rename it Paste a customer message. The support lead pastes each email into the editor’s chat panel.Step 2: Add the AI Agent and its triage instructions
Add an AI Agent after the trigger. Open it, add the System Message option, and paste the triage instructions:System message
\n stops the model from writing escaped line breaks into the chat.
Step 3: Connect the ZeroGPU Chat Model and Simple Memory
Under the agent’s Chat Model input, click +, choose ZeroGPU Chat Model, and select your credential. Keep Model Name or ID ondeepseek-v4.1-flash, which follows multi-step tool instructions reliably, at $0.30 per 1M input tokens and $1.20 per 1M output tokens.
Under Memory, click +, choose Simple Memory, and set Context Window Length to 8. The copilot doesn’t need earlier emails to triage a new one, but memory lets the support lead ask a follow-up about the last card, such as “Draft a reply to that customer”.
Step 4: Add the Redact PII tool
Under the agent’s Tool input, click +, search for ZeroGPU, and choose ZeroGPU Tool. Then:- Select your credential.
-
Set Resource to Extraction and Operation to Redact PII. Model stays on
gliner2.5-base-v1, and Labels keeps its eight default types. -
Set Text to this expression, so the agent fills it in on every call:
Text
-
Open the node’s Settings tab, turn on Retry On Fail, and set Max Tries to
3and Wait Between Tries (ms) to2000. - Rename the node Redact PII.
Redact_PII, exactly the name the system message uses. Rename the node and the instructions no longer match.
Retry On Fail is there for cold starts. A herogpu model that has sat idle can take a while to answer its first call, and three tries two seconds apart ride that out instead of stopping the run.
Step 5: Add the Moderate Text tool
Add a second ZeroGPU Tool the same way, with the same credential, Text expression, and retry settings. Set Resource to Moderation and Operation to Moderate Text (modelzlm-v1-moderation-edge), and rename it Moderate Text. The agent sees it as Moderate_Text.
Step 6: Add the Classify Team tool
Add a third ZeroGPU Tool. Set Resource to Classification and Operation to Classify by Schema (modelgliner2.5-base-v1), give it the same Text expression and retry settings, and paste this into Schema:
Schema
Classify_Team. The model picks exactly one label from the list and returns it as written, which is why the team comes back in lowercase, like billing. Edit the list to match your own teams.
Step 7: Add the Summarize Message tool
Add the fourth ZeroGPU Tool. Set Resource to Summarization and Operation to Summarize Text (modelllama-3.1-8b-instruct-fast), give it the same Text expression and retry settings, and rename it Summarize Message, so the agent sees Summarize_Message.
Here’s the full tool set. Redact PII and Classify Team run on the same GLiNER model, so every message makes five herogpu calls across four models: the chat model plus three task models.
Step 8: Or import the finished workflow
Prefer to skip the clicking? Copy the finished workflow from the 📥 Copy the Workflow section near the top of this page, paste it onto an empty canvas, and select your credential on each of the five ZeroGPU nodes (ZeroGPU Chat Model, Moderate Text, Classify Team, Redact PII, and Summarize Message). Save the workflow.Step 9: Triage a billing email
Click Fit view (the first button at the bottom left of the canvas), then Open chat. Paste this email and press Enter:Message 1
[PERSON] and [CREDIT_CARD_NUMBER] instead of the name and card. No personal data reached the reply.
Step 10: Triage a threatening message
Now an angry one. Paste this and press Enter:Message 2
billing or technical issue) were the same in every test. If a take ever adds extra notes under the card, run it again.
Step 11: Check the speed and the cost
In the final tests, the two messages were triaged in 10.7 and 9.7 seconds, and four earlier runs of the same workflow took 8 to 10 seconds per message. Each message cost about $0.0015 to $0.0023, almost all of it the chat model: the agent calls DeepSeek V4.1 Flash several times per message, to plan the tool calls, read their results, and write the card. The four tool calls work on a few hundred tokens of text between them, at $0.02 to $0.28 per 1M tokens, so together they cost well under a hundredth of a cent. Click any row in Logs to see its time and tokens. One first message, sent after the models had sat idle, took 35 seconds because Redact PII was starting up. Before a live demo, send one message a few minutes ahead to warm the models up; in production, Retry On Fail keeps a cold start from failing the run.Step 12: Connect it to a real inbox (optional)
The chat is the easiest way to try the copilot, but the agent doesn’t care where messages come from. Swap Paste a customer message for a Gmail Trigger or Webhook node and map the email body into the agent’s prompt. Then branch on the card: sendFlagged messages to a moderators’ Slack channel, and route the rest by team with a Switch node. For a fixed pipeline with no agent at all, chain regular ZeroGPU nodes in the same order, as in the patterns section of the integration guide.
🎉 With four ZeroGPU Tools and one agent, every customer email becomes a privacy-safe triage card in about 10 seconds: personal data removed first, threats flagged before anyone forwards them, the right team picked, and a one-line summary, for about a fifth of a cent per message.
🌟 Highlights
This notebook has guided you through setting up and running an n8n workflow with herogpu for triaging a support inbox with ZeroGPU Tools. You can adapt and expand this example for various other scenarios requiring privacy-safe triage, moderation, and routing of incoming messages. Key tools utilized in this notebook include:- n8n: A fair-code workflow automation platform with a visual canvas, hundreds of built-in integrations, and AI nodes for agents, memory, and tools. Here it runs the chat, the AI Agent, and the four tools it can call.
- Herogpu: A compute-efficient inference provider for apps and agents. We run purpose-built small and nano language models across an edge network for the high-volume tasks you run constantly - classification, extraction, moderation, routing, summarization - at ~10x lower latency and 50%+ lower cost than frontier-model workflows. Auto-scaling, with zero GPU infrastructure to manage. Plug in and you’re live.
- ZeroGPU nodes for n8n: The official community node package,
@zerogpu/n8n-nodes-zerogpu, which adds a ZeroGPU Chat Model, ZeroGPU Embeddings, and a ZeroGPU node to n8n, also available to agents as ZeroGPU Tool. Here the ZeroGPU Chat Model runs the agent, and four ZeroGPU Tools do the redaction, moderation, classification, and summarization.

