Example icon

Example

Basic Example Node

Example

AI-generated

Overview

This node is a basic example node designed to demonstrate simple string input handling within an n8n workflow. It takes an input string from the user, attaches it to each input item's JSON data under the property 'myString', and outputs the modified items. This node is useful for scenarios where you want to add or modify a string property in the data passing through the workflow, such as tagging items with a custom label or note.

Use Case Examples

  1. Adding a custom string label to each item in a data stream.
  2. Modifying input data by appending a user-defined string property for further processing.

Properties

Name Meaning
My String A user-defined string that will be added to each input item's JSON data under the property 'myString'.

Output

JSON

  • myString - The string value provided by the user, added to each item's JSON data.

Troubleshooting

  • If the node fails on a specific item, it will either continue processing other items if 'Continue On Fail' is enabled or throw an error with the item index for easier debugging.
  • Common errors may include invalid input data types or missing parameters, which can be resolved by ensuring the input data is correctly formatted and the 'My String' parameter is provided.

Discussion