Overview
The "Example Node" is a basic custom n8n node designed to process input data by adding or updating a field called "My String" in each item's JSON. The value for "My String" is taken from the node's input property. This node is useful for simple data transformation tasks, such as injecting user-provided text into workflow items or testing workflow logic with static values.
Practical examples:
- Adding a note or label to each item in a dataset.
- Testing downstream nodes by inserting a known string value.
- Mapping user input into workflow data for further processing.
Properties
| Name | Type | Meaning |
|---|---|---|
| My String | String | The description text. User-defined string that will be added to each item's output under the key myString. |
Output
Each output item will have its json object extended with a new property:
{
"myString": "<value of My String>"
}
If an error occurs and "Continue On Fail" is enabled, the output may also include:
{
"error": <error object>,
"pairedItem": <item index>
}
Dependencies
- No external services or API keys are required.
- No special n8n configuration or environment variables are needed.
Troubleshooting
Common issues:
- If "My String" is left empty, the output field
myStringwill be an empty string. - If an unexpected error occurs during execution and "Continue On Fail" is not enabled, the workflow will stop and display an error message.
Error messages:
- Errors thrown will typically relate to missing or invalid input parameters. Ensure "My String" is set if required by your workflow.
- If "Continue On Fail" is enabled, errors will be included in the output for the affected items, allowing the workflow to proceed.