Hello World

发送问候消息

Overview

This node sends a greeting message to a specified recipient. It is useful in scenarios where automated personalized greetings are needed, such as welcoming new users, sending reminders, or initiating friendly communication in workflows. For example, it can send a simple "Hello" message to a user after they sign up, or a formal greeting in a business context.

Properties

Name Meaning
接收者 (name) The name of the recipient to include in the greeting message.
消息类型 (messageType) The type of greeting message to send. Options:
- 简单问候 (simple): Simple hello message
- 正式问候 (formal): Formal greeting message
- 友好问候 (friendly): Friendly greeting message
Include Timestamp Whether to include the current timestamp in the message (true/false).

Output

The output JSON contains the following fields:

  • success (boolean): Indicates if the greeting was successfully created.
  • message (string): The generated greeting message text.
  • recipient (string): The name of the recipient included in the message.
  • messageType (string): The type of greeting message sent (simple, formal, or friendly).
  • timestamp (string, optional): ISO string of the current date and time, included only if the "Include Timestamp" property is set to true.

Example output JSON:

{
  "success": true,
  "message": "Hello, Alice!",
  "recipient": "Alice",
  "messageType": "simple",
  "timestamp": "2024-06-01T12:00:00.000Z"
}

Dependencies

  • No external services or API keys are required.
  • This node runs entirely locally without dependencies on external APIs.

Troubleshooting

  • Common issues:
    • Missing recipient name: The node requires a non-empty recipient name; otherwise, it may fail or produce an incomplete message.
    • Invalid message type: If an unsupported message type is provided, the node defaults to a simple greeting.
  • Error messages:
    • Errors will be returned in the output JSON with "success": false and an "error" field describing the issue.
  • To continue processing other items even if one fails, enable the "Continue On Fail" option in n8n.

Links and References

Discussion