n8n debugging
Use when n8n workflows fail, return empty data, drop items silently, show expression errors, or when diagnosing executions with MCP explain/timeline tools.
By- name:
- n8n-debugging
- description:
- Use when n8n workflows fail, return empty data, drop items silently, show expression errors, or when diagnosing executions with MCP explain/timeline tools.
n8n Debugging
Author: Taghi Molavi
#1 failure mode: silent item loss
Items become 0 between nodes with no hard error (IF route, empty HTTP body, Code return shape, Merge wait forever, wrong expression → filter).
Protocol
- Open execution; table of nodes with items in/out + errors.
- Prefer
execution_explain/ timeline tools when available. - Inspect first node where out < in (or out = 0).
- Check expressions against actual incoming JSON (not assumed schema).
- Verify connections (wrong branch, missing error wire).
- Fix → pin data → retest that node → retest flow.
Unresolved expressions
={{ ... }} left unresolved often means expression disabled or wrong field mode — lint/explain should flag.
Parameter verification
- typeVersion mismatch after n8n upgrade
- Operation-dependent fields left empty
- Credential attached but wrong environment
References
references/DIAGNOSTIC_TREE.md
Open this reference as its own page
Diagnostic tree
Failure reported
├─ Hard error on node? → read message + params + credential + typeVersion
├─ Empty output?
│ ├─ IF/Switch routed elsewhere?
│ ├─ HTTP 2xx with empty body?
│ ├─ Code returned [] or wrong shape?
│ └─ Expression undefined filtered downstream?
├─ Wrong values?
│ ├─ `$json` after merge/context clear?
│ └─ Off-by-one Merge input?
└─ Flaky?
├─ Rate limit / partial pagination?
└─ Race on sub-workflow async?
More in this playbook
Safe to turn on
Use this skill when an agent or person is about to create, change or enable an automation inside someone else's account or a shared environment: "create this workflow", "build it in the customer's account", "turn it on", "go live", "deploy this automation". Produces a proposal the human approves, an automation created in the off state, and a short list of what only the human can finish.
Workflow buildingMITn8n agents
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topologies.
Workflow buildingMITn8n agents
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topologies.


