Templating Node
Templating Nodes
The Templating Node allows you to perform custom data transformations on a set of defined inputs to create a new output. You can use this to define constants, manipulate data before feeding into a prompt, or massage a response to a format of your liking.
Check out our Common Data Transformation Templates for some common examples.
Tip: JSON Syntax
You may have a templating node that outputs JSON which seems valid, but yields the following error when you click “Test” or run your workflow:
Tips - Using Jinja
Jinja has a tendency to leave hard-to-see whitespace which can cause issues when doing equality checks in places like Metrics or Conditional Nodes.

Tip: Unexpected Whitespace
Jinja has a tendency to leave hard-to-see whitespace which can cause issues when doing equality checks in places like Metrics or Conditional Nodes.