Example icon

Example

Simple example node

Overview

This node generates a simple greeting message for each input item. It takes a name as input and outputs a JSON object containing a personalized greeting string in the format "Hello [Name]!". This node is useful for demonstrating basic data transformation or for use cases where you want to add a friendly greeting to your workflow data.

Practical examples:

  • Adding a customized welcome message to user data.
  • Testing data flow by appending a simple text message.
  • Creating personalized notifications or logs within an automation.

Properties

Name Meaning
Name The name to include in the greeting. Default is "World".

Output

The output is an array of items, each containing a JSON object with a single field:

  • greeting: A string that says "Hello [Name]!", where [Name] is the value provided in the input property.

Example output JSON for an input name "Alice":

{
  "greeting": "Hello Alice!"
}

No binary data is produced by this node.

Dependencies

  • No external services or API keys are required.
  • No special n8n configurations or environment variables are needed.

Troubleshooting

  • Empty or missing name input: If the "Name" property is empty or not set, the node will default to using "World" in the greeting.
  • Input data issues: Ensure that input data exists; otherwise, the node will produce no output.
  • Parameter retrieval errors: If the parameter "name" cannot be retrieved properly, the node might throw an error or produce unexpected greetings.

Links and References

Discussion