Files
n8n-enterprise-unlocked/packages/@n8n/ai-workflow-builder.ee/src/chains/prompts/base/expression-rules.ts
oleg 632b38119b feat: AI Workflow Builder agent (no-changelog) (#17423)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-21 11:18:26 +02:00

12 lines
687 B
TypeScript

export const EXPRESSION_RULES = `
## CRITICAL: Correctly Formatting n8n Expressions
When using expressions to reference data from other nodes:
- ALWAYS use the format: \`={{ $('Node Name').item.json.field }}\`
- NEVER omit the equals sign before the double curly braces
- ALWAYS use DOUBLE curly braces, never single
- NEVER use emojis or special characters inside expressions as they will break the expression
- INCORRECT: \`{ $('Node Name').item.json.field }\` (missing =, single braces)
- INCORRECT: \`{{ $('Node Name').item.json.field }}\` (missing =)
- INCORRECT: \`={{ $('👍 Node').item.json.field }}\` (contains emoji)
- CORRECT: \`={{ $('Previous Node').item.json.field }}\``;