Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups, specifically allowing you to add users to a group in this context. It connects to the Zalo platform using provided API credentials and performs operations such as adding one or multiple members to an existing group.

A common use case is automating group management tasks for communities or teams on Zalo, such as onboarding new members into specific groups without manual intervention. For example, when a new batch of users needs to be added to a project discussion group, this node can take a list of user IDs and add them all at once.

Properties

Name Meaning
ID Nhóm (groupId) The unique identifier of the Zalo group where users will be added.
Danh Sách ID Thành Viên (userIds) A comma-separated list of user IDs to be added to the specified group.

Output

The output JSON contains the response from the Zalo API after attempting to add the users to the group. This typically includes details about the operation's success or failure and any relevant data returned by the API.

Example structure:

{
  "response": {
    // API-specific response details about the addition of users to the group
  }
}

No binary data output is produced by this operation.

Dependencies

  • Requires a valid Zalo API credential with authentication details such as cookie, IMEI, and user agent.
  • Uses the zca-js library internally to interact with the Zalo API.
  • The node expects these credentials to be configured in n8n beforehand.

Troubleshooting

  • Invalid Credentials: If the node throws an error indicating no API instance found, verify that the Zalo API credentials are correctly set up and valid.
  • Incorrect Group ID or User IDs: Ensure the group ID exists and the user IDs are correct and active on Zalo; otherwise, the API may reject the request.
  • Malformed User ID List: The user IDs must be comma-separated without extra spaces or invalid characters.
  • API Rate Limits or Permissions: Adding many users at once might hit rate limits or require specific permissions; check your Zalo API plan and permissions.
  • Error Handling: If the node is set to continue on fail, errors for individual items will be included in the output JSON under an error field.

Links and References

Discussion