Example Node bruno

Basic Example Node

Overview

This node, named "Example Node bruno," is a basic example node designed to transform input data by adding or updating a JSON property. Specifically, it takes an input string from the user and assigns it to a field called myString in each incoming item’s JSON data. This node is useful for simple data enrichment or tagging scenarios where you want to append a static or dynamic string value to every item passing through the workflow.

Practical examples:

  • Adding a custom label or note to each data item.
  • Injecting a fixed string parameter into all items before further processing.
  • Testing or debugging workflows by appending identifiable strings to data.

Properties

Name Meaning
My String The description text; a string value that will be assigned to the myString field of each item's JSON data.

Output

The output consists of the same number of items as the input, with each item’s JSON data augmented by a new or updated property:

{
  "myString": "<value provided in the node's 'My String' property>"
}

No binary data is produced by this node.

Dependencies

  • No external services or API keys are required.
  • The node optionally declares credentials but does not use them in the provided code.
  • No special environment variables or n8n configurations are necessary.

Troubleshooting

  • Common issues:

    • If the input data is empty or missing, the node will simply return an empty output.
    • Errors during execution (e.g., invalid parameter types) will cause the node to throw an error unless "Continue On Fail" is enabled.
  • Error messages:

    • Errors related to parameter retrieval or assignment will include the item index for easier debugging.
    • To resolve errors, ensure the "My String" property is set correctly and that input data is valid JSON.

Links and References

Discussion