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 friend management into broader CRM or marketing workflows.
  • Handling bulk friend requests acceptance without manual intervention.

For example, if you receive multiple friend requests and want to accept them all automatically based on certain criteria, this node can be used in an n8n workflow to process each request efficiently.

Properties

Name Meaning
User ID The ID of the Zalo user whose friend request you want to accept. This must be provided to identify which friend request to approve.

Output

The node outputs JSON data with the following structure:

{
  "status": "Thành công",
  "response": { /* response object from Zalo API */ }
}
  • status: A string indicating success ("Thành công" means "Success").
  • response: Contains the raw response returned by the Zalo API after accepting the friend request. This may include confirmation details or metadata about the accepted request.

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 uses an external library (zca-js) to interact with the Zalo API.
  • You must configure the node with appropriate Zalo API credentials that provide access to user-related endpoints.
  • Ensure the credentials contain valid session cookies and device information to authenticate API calls successfully.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials will cause authentication failures.
    • Missing or incorrect User ID input will result in errors or no action.
    • Network or API downtime may cause request failures.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not establish a connection to the Zalo API due to missing or invalid credentials. Verify your API key, cookie, IMEI, and user agent settings.
    • Errors related to specific friend request acceptance will include the error message from the Zalo API. Check that the User ID exists and the friend request is pending.
  • How to resolve:

    • Double-check and refresh your Zalo API credentials.
    • Confirm the User ID corresponds to a valid pending friend request.
    • Enable "Continue On Fail" in the node settings to handle individual item errors gracefully in batch operations.

Links and References

Discussion