Example Node

Basic Example Node

Example Node

AI-generated

Overview

This node, named "Example Node," is a basic transformation tool designed to add or overwrite a string property in each input item’s JSON data. It processes incoming data items and sets the value of a specified string field ("My String") on each item. This node is useful when you want to inject or update a simple text value across multiple data items within an n8n workflow.

Practical examples:

  • Adding a constant tag or label to all incoming data items.
  • Overwriting or setting a specific string field before passing data to another node.
  • Testing workflows by inserting placeholder text into data items.

Properties

Name Meaning
My String The description text; a string value to set on each item's myString field. Placeholder shown as "Placeholder value".

Output

The node outputs the same number of items as it receives, with each item’s JSON data augmented or updated to include the property myString set to the value provided in the input property.

Output structure example for one item:

{
  "json": {
    "myString": "value set by user",
    // ... other original properties remain unchanged
  }
}

No binary data output is produced by this node.

Dependencies

  • No external services or API keys are required.
  • The node relies solely on internal n8n workflow data manipulation.

Troubleshooting

  • Common issues:

    • If the input data is empty or not structured as expected, the node will simply pass through the data without modification.
    • Providing an empty string for "My String" will overwrite existing values with an empty string.
  • Error handling:

    • If an error occurs during processing an item, and the node is configured to continue on failure, the error details will be attached to the output item under an error property.
    • Otherwise, the node throws an error indicating which item caused the failure.

Links and References

Discussion