Claude Code n8n Expression Skill for Nested Webhook JSON
Fix an expression by inspecting the node's actual input. Distinguish the current item, other nodes, and the Webhook body, and handle a missing field explicitly.
中文Install in Claude Code
Use Claude Code with the pinned skill and an n8n workflow where the test input and expression preview are available.
- Get the complete `cli-tool/components/skills/workflow-automation/n8n/n8n-expression-syntax` directory from the pinned GitHub checkout.
- Copy it under the target project's `.claude/skills/`. Confirm `.claude/skills/n8n-expression-syntax/SKILL.md`, open Claude Code at the project root, and call `/n8n-expression-syntax`.
Example task
Use a fictional test item with city Chiang Mai inside body. Read body.city in an Edit Fields node, then try a second item without city and return To be confirmed.What to check
The first preview shows Chiang Mai and the second shows To be confirmed. Both are evaluated against the correct current-item path.
Original SKILL.md on GitHub · Updated
Frequently asked question
Why can `$json.city` be empty for a Webhook item?
Inspect the test input. If city is inside body, read it under `$json.body` and supply a fallback for a missing value.