n8n-expression-syntax
Validate n8n expression syntax and fix common errors. Use when writing n8n expressions, using {{}} syntax, accessing $json/$node variables, troubleshooting expression errors, or working with webhook data in workflows.
Security Assessment
Detected risks:
About n8n-expression-syntax
The n8n-expression-syntax skill is designed to assist users in validating and correcting the syntax of n8n expressions. It addresses common errors that users encounter while writing expressions using the double curly braces syntax ({{}}), which is essential for accessing $json and $node variables within n8n workflows. This skill is particularly beneficial for ensuring that expressions are correctly formatted, thus reducing the occurrence of errors that can disrupt workflow execution and data handling.
Key features of this skill include detailed guidelines on the proper format for writing expressions, examples of accessing core variables such as $json, $node, $now, and $env, and critical insights into the structure of webhook data. Users will find comprehensive instructions on how to access nested fields, reference other nodes accurately, and combine variables effectively. The skill also highlights common pitfalls, such as incorrect usage of expressions in code nodes, webhook paths, and credential fields, ensuring users have a clear understanding of where expressions should and should not be used.
This skill is targeted at n8n users, ranging from beginners who are just starting to build workflows to advanced users looking to refine their expression writing skills. It serves as an essential resource for anyone involved in workflow automation using n8n, allowing them to troubleshoot expression-related issues and enhance their overall efficiency in data manipulation and processing within their workflows.
FAQ
How do I access data from the current node?
You can access data from the current node using the syntax {{$json.fieldName}}.
What should I do if my expressions are not working?
Check that your expressions are properly wrapped in double curly braces and that you are using the correct variable names.
Can I use expressions in code nodes?
No, code nodes require direct JavaScript access instead of expressions.
Are there any restrictions on using expressions with webhook data?
Yes, ensure that you access webhook data correctly, as it is nested under the .body property.
What happens if I forget to use quotes for node names with spaces?
If you forget to use quotes, the expression will be invalid and will not work as expected.
Install n8n-expression-syntax
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
czlonkowski/n8n-skills