Zalo User icon

Zalo User

Quản lý người dùng Zalo

Overview

This node manages Zalo user interactions, specifically for the "Zalo User" resource. The operation "Chấp nhận lời mời kết bạn" (Accept Friend Request) allows you to programmatically accept a friend request from another Zalo user by specifying their user ID.

Common scenarios where this node is useful include automating social media management tasks such as:

  • Automatically accepting incoming friend requests on Zalo to grow your network.
  • Integrating Zalo user management into broader workflows that handle customer engagement or community building.
  • Streamlining user relationship management in marketing automation systems.

For example, if you receive multiple friend requests and want to accept them automatically based on certain criteria, this node can be part of an automated workflow that processes each request without manual intervention.

Properties

Name Meaning
User ID The ID of the Zalo user whose friend request you want to accept. This must be provided as a string.

Output

The output JSON contains:

  • status: A string indicating the result of the operation, typically "Thành công" which means "Success".
  • response: The raw response object returned from the Zalo API after accepting the friend request. This may contain additional details about the accepted request.

Example output JSON structure:

{
  "status": "Thành công",
  "response": {
    // API response details here
  }
}

No binary data output is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including authentication cookies, device IMEI, and user agent strings.
  • The node depends on an external Zalo API client library (zca-js) to perform actions.
  • Credentials must be configured properly in n8n with the necessary API key/token and session information.
  • The node expects these credentials to provide a valid logged-in session to interact with the Zalo platform.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials will cause login failure, resulting in errors like "No API instance found."
    • Providing an incorrect or non-existent User ID will likely cause the API call to fail.
    • Network connectivity problems can prevent communication with the Zalo API.
  • Error messages and resolutions:

    • "No API instance found. Please make sure to provide valid credentials."
      Ensure that the Zalo API credentials are correctly set up and have not expired. Refresh or reauthenticate if needed.
    • Errors related to invalid User ID usually indicate that the specified user does not exist or the ID format is wrong. Double-check the input.
    • If the node throws errors but "Continue On Fail" is enabled, it will output error messages per item instead of stopping execution.

Links and References

Discussion