Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups, specifically allowing users to perform various group-related operations via the Zalo API. The "Add User To Group" operation lets you add one or multiple members to an existing Zalo group by specifying the group's ID and a list of user IDs.

Common scenarios include:

  • Automating group membership management in Zalo for community or team chats.
  • Adding new members to a group after registration or approval processes.
  • Integrating with other systems to synchronize group memberships automatically.

Example: You have a Zalo group for your project team and want to add several new members at once by providing their user IDs separated by commas.

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 add to the specified group.

Output

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

Example output structure:

{
  "json": {
    // API response object indicating the result of adding users to the group
  },
  "pairedItem": {
    "item": 0
  }
}

No binary data is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including authentication tokens such as cookies, device IMEI, and user agent strings.
  • The node depends on the external zca-js library to interact with the Zalo API.
  • Proper configuration of the Zalo API credential in n8n is necessary before using this node.

Troubleshooting

  • Invalid Credentials: If the node throws an error about missing or invalid API instance, ensure that the Zalo API credentials are correctly set up and valid.
  • Incorrect Group ID or User IDs: Errors may occur if the provided group ID or user IDs do not exist or are malformed. Double-check these values.
  • API Rate Limits or Permissions: The Zalo API might reject requests due to rate limits or insufficient permissions. Verify your API usage limits and access rights.
  • Comma Separation: Ensure user IDs are properly comma-separated without extra spaces to avoid parsing issues.

If the node encounters an error during execution and "Continue On Fail" is enabled, it will return the error message in the output JSON instead of stopping the workflow.

Links and References

Discussion