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 project updates and want to add several new team 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:

{
  // API response object indicating the result of adding users to the group
}

No binary data is output 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 to authenticate requests.

Troubleshooting

  • Invalid Credentials: If the node throws an error about missing or invalid API instance, 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 in Zalo; otherwise, the API may reject the request.
  • API Rate Limits or Permissions: The Zalo API might limit requests or require specific permissions to modify group memberships. Check your API quota and permission scopes.
  • Comma Separation: User IDs must be separated by commas without extra spaces to avoid parsing errors.

Common error message example:

  • "No API instance found. Please make sure to provide valid credentials." — indicates missing or invalid authentication details.

Links and References

Discussion