n8n 表达式与字段映射
原名:n8n-expression-syntax
检查表达式括号、节点引用、Webhook 数据层级与空值处理。
中文 Skills 技能说明
字段明明有值,传到下个 n8n 节点却变成空时,可以先核对表达式和数据层级。提供节点名称、脱敏执行样本、字段类型和预期结果,技能整理双花括号、$json、上游节点引用、日期及条件表达式,交付修正候选与测试样本。需要对应 n8n 版本,复杂多步骤处理不硬塞进一个表达式。凭据使用平台安全配置,禁止把密钥放进 URL、普通字段或日志;关联技能与工具另配,空值和错误路径应在副本流程验证。
上游能力依据
上游原始适用说明:Validate n8n expression syntax and fix common errors. Use when writing n8n expressions, using {{}} syntax, accessing $json/$node variables, troubleshooting expression errors, mapping data between nodes, or referencing webhook data in workflows. Use this skill whenever configuring node fields that reference data from previous nodes — expressions are how n8n passes data between nodes, and getting the syntax wrong is the most common source of workflow errors. Also use when asked whether a complex expression hurts performance.
上游 SKILL.md 主要章节(保留原文标题):
- Expression Format
- Core Variables
- $json - Current Node Output
- $node - Reference Other Nodes
- $now - Current Timestamp
- $env - Environment Variables
- 🚨 CRITICAL: Webhook Data Structure
- Webhook Node Output Structure
- Correct Webhook Data Access
- Common Patterns
使用边界
先核对运行环境、账号、区域、依赖和最小权限。创建资源、改配置、发布服务或产生费用前必须让使用者确认。
作者、翻译与许可证
- 原作者
- Romuald Członkowski 与 n8n-skills contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/czlonkowski/n8n-skills/tree/e037563e101749e630e6688d121d04529fe6ee7b/skills/n8n-expression-syntax
适用范围
平台:linux、macos、windows;标签:MCP 与工具、n8n 表达式与字段映射、开源技能
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。