Zalo User icon

Zalo User

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

Overview

This node operation allows you to accept a friend request on the Zalo platform for a specified user. It is useful in automating social interactions by programmatically managing friend requests, which can be beneficial for businesses or individuals who want to streamline their social network management on Zalo.

Practical example:
If you receive multiple friend requests on your Zalo account and want to automatically accept them based on certain criteria or triggers within an n8n workflow, this node operation can handle that acceptance without manual intervention.

Properties

Name Meaning
User ID The ID of the user whose friend request you want to accept

Output

The output JSON contains two main fields:

  • status: A string indicating the success status of the operation (e.g., "success").
  • response: The detailed response from the Zalo API after attempting to accept the friend request. This typically includes confirmation or error details related to the acceptance action.

The output is paired with the input item index to maintain correspondence between inputs and outputs.

Dependencies

  • Requires a valid Zalo API authentication token (an API key credential) configured in n8n credentials.
  • Uses an internal Zalo client library to interact with the Zalo API, which requires proper cookie, device identifier, and user agent information to authenticate requests.

Troubleshooting

  • Common issues:

    • Invalid or expired API authentication token may cause authentication failures.
    • Incorrect or missing User ID will result in errors when trying to accept a friend request.
    • Network connectivity problems can prevent communication with the Zalo API.
  • Error messages:

    • If the node throws an error about missing or invalid credentials, ensure the API key credential is correctly set up in n8n.
    • Errors mentioning "cookie" or "userAgent" indicate missing or invalid session data; verify that the credential includes these required fields.
    • If the node returns an error related to the User ID, double-check that the provided User ID is correct and corresponds to a pending friend request.

Links and References

Discussion