Zalo icon

Zalo

Zalo Node

Overview

This node is designed to send messages in two different formats: either as raw JSON or as a predefined message format. It allows users to choose how the message content is structured before sending it, which can be useful in scenarios where the receiving system expects a specific message format or when sending custom JSON payloads directly.

Common use cases include:

  • Sending notifications or alerts with a fixed message template.
  • Sending complex data structures as raw JSON to APIs or services that accept JSON input.
  • Integrating with messaging platforms or APIs that require either structured messages or raw JSON payloads.

For example, a user might select "Message" to send a simple text notification, or "Raw Json" to send a detailed JSON object containing multiple fields and nested data.

Properties

Name Meaning
Send Option Choose the message format to send:
- Raw Json: Send the message as raw JSON.
- Message: Send the message using a predefined message format.

Output

The node outputs JSON data representing the result of the message sending operation. The exact structure depends on the underlying implementation of the sending logic but generally includes confirmation of the sent message, status codes, or response data from the target service.

If the node supports binary data output (e.g., attachments or media), it would be included in the binary output field; however, based on the provided code and properties, this node primarily deals with JSON message content.

Dependencies

  • The node requires an external messaging or API service to send messages.
  • It likely depends on an API key or authentication token configured in n8n credentials to authorize requests.
  • The bundled source code imports several modules (not fully visible due to obfuscation) that handle HTTP requests and message formatting.
  • No explicit environment variables are mentioned, but standard API credential configuration in n8n is expected.

Troubleshooting

  • Incorrect message format errors: If the selected "Send Option" does not match the expected format by the receiving service, the message may fail. Ensure the correct option is chosen.
  • Authentication failures: Missing or invalid API credentials will cause errors. Verify that the required API key or token is correctly set up in n8n.
  • Network issues: Connectivity problems to the external service can cause timeouts or failures.
  • Invalid JSON: When using "Raw Json," ensure the JSON input is valid and properly structured.
  • Error messages: The node may throw errors related to request failures or invalid responses. Check the error details for hints on fixing issues, such as adjusting message format or credentials.

Links and References


Note: The provided source code is heavily obfuscated, limiting detailed static analysis. The summary is based on the input property definition and typical patterns for nodes offering message sending with format options.

Discussion