55 s
from form submit to a draft waiting for the reviewer (classify, one order lookup through MCP, draft)
≈ 4.9k
tokens a ticket costs at the door (3 model calls); the hub is one tenant with 50k tokens per hour
0
model calls that carried the customer's name, e-mail or phone (Presidio masks inside the workflow first)
35
tools a mcp-user sees through the gateway, hub workflows included
6.8 s
to list the other tools while the hub is down (failOpen + 3 s connect timeout; before: HTTP 500 for everyone)
≈ 30 s
for the ops digest called as an MCP tool from outside n8n
| step | what happens | where |
| form + ticket | public n8n form; ticket row in hub.tickets | n8n · Postgres |
| mask | presidio-guard /mask: name, e-mail, phone become <PERSON>, <EMAIL_ADDRESS>, <IN_PHONE> before any model sees them; the door's own guard cannot rewrite an agent's tool rounds | project 2 |
| classify | model auto: the semantic router picks the tier; structured output category + urgency | LLM door |
| triage agent | gemini-3.5-flash with one MCP tool, ops-db_query_readonly, called through the gateway as service-account-n8n (role mcp-user, audited); one tool per step (Gemini 3 thought signatures) | LLM door · MCP gateway |
| re-identify | placeholders back to the real first name, e-mail, phone, inside n8n | n8n |
| human approval | n8n Wait (form) linked from the inbox: edit the reply, Send or Reject | n8n |
| symptom | cause | fix |
n8n: Unexpected token \u001f … is not valid JSON | the sidecar streamed gzip bytes but dropped Content-Encoding | ask upstream for identity |
Presidio logged unmasked in the agent's later rounds | the door's guard can only rewrite role+content messages | mask once inside the workflow |
| Vertex 400 "missing thought_signature" | Gemini 3 signs only the first of parallel tool calls | "call exactly ONE tool per step" (3/3) |
gateway tools/list 500 for everyone while n8n restarted | one target down failed the fan-out | failureMode: failOpen + connect timeout (62 s → 3.6 s) |
namespace <PERSON> in the ops digest | NER read Keycloak, mcp, FailedScheduling as names | allow-list + CamelCase rule in presidio-guard |
| approvals recorded as rejected | n8n form answers are keyed by label, not field name | $json['Decision'] |