Zalo icon

Zalo

Zalo Node

Overview

This node operation, Get Users Info under the API resource, is designed to retrieve detailed information about specific users by their IDs. It accepts a list of user IDs and fetches corresponding user data from an external API or service.

Typical use cases include:

  • Fetching profile details for multiple users in bulk.
  • Integrating user information into workflows for reporting, notifications, or further processing.
  • Synchronizing user data between systems.

For example, you might input a comma-separated list of user IDs to get their names, emails, roles, or other metadata, which can then be used downstream in your automation.

Properties

Name Meaning
User IDS A string containing a comma-separated list of user IDs whose information you want to fetch.
Send Option Choice of message format when sending data:
- Raw Json: Sends the message as raw JSON.
- Message: Sends the message in a predefined format.

Output

The node outputs JSON data representing the user information retrieved for the specified user IDs. The structure typically includes fields such as user identifiers, names, contact details, and any other relevant user attributes provided by the API.

If binary data is returned (not evident from the code), it would represent associated files or media related to the users, but this node primarily focuses on JSON user info.

Dependencies

  • Requires access to an external API that provides user information based on user IDs.
  • Needs proper authentication credentials (e.g., an API key or token) configured in n8n to authorize requests.
  • Uses internal HTTP request libraries or SDKs bundled with the node to communicate with the API.

Troubleshooting

  • Empty or invalid User IDs: Ensure the User IDS property contains valid, comma-separated user IDs. Invalid or empty inputs may result in no data or errors.
  • Authentication errors: If the API credentials are missing or incorrect, the node will fail to fetch user info. Verify that the API key/token is correctly set up in n8n.
  • API rate limits or downtime: External API limitations or outages can cause failures. Check API status and usage quotas.
  • Unexpected response format: If the API changes its response schema, the node output may not match expectations. Update the node or workflow accordingly.

Common error messages might include:

  • "Unauthorized" or "Invalid credentials": Fix API authentication.
  • "User not found": Check if the user IDs exist.
  • "Request timeout": Network issues or slow API responses.

Links and References

  • Refer to the external API's official documentation for user info endpoints.
  • n8n documentation on creating and configuring custom nodes.
  • Best practices for handling API authentication in n8n.

Note: The source code was heavily obfuscated, so the above summary is based on static analysis of the provided properties and typical patterns for such a node operation.

Discussion