Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Group → Tạo Nhóm

AI-generated

Overview

This node manages Zalo groups by interacting with the Zalo API. It allows users to create new groups, retrieve group information, manage members, update group details, and perform other group-related operations within an automated workflow.

A common use case is automating group creation and member management in Zalo for marketing campaigns, community management, or team coordination. For example, you can automatically create a group with specified members when a new project starts or fetch group member details to sync with another system.

Specifically, the "Tạo Nhóm" (Create Group) operation creates a new Zalo group with a given name and a list of user IDs as members.

Properties

Name Meaning
Tên Nhóm The name of the new group to be created.
Danh Sách ID Thành Viên (nếu nhiều người dùng vui lòng phân cách bằng dấu phẩy) A comma-separated list of user IDs to be added as members of the new group.

Output

The output JSON contains the response from the Zalo API after creating the group. It typically includes details about the newly created group such as its ID, name, members, and other metadata returned by the API.

Example output structure:

{
  "id": "string",
  "name": "string",
  "members": ["userId1", "userId2", "..."],
  // additional group info fields as provided by the API
}

No binary data output is produced by this operation.

Dependencies

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

Troubleshooting

  • Invalid Credentials: If the node throws "No API instance found," it means the provided credentials are invalid or incomplete. Ensure that the API key, cookie, IMEI, and user agent are correctly set.
  • Malformed User IDs: The user IDs must be comma-separated strings without extra spaces or invalid characters. Incorrect formatting may cause API errors.
  • API Rate Limits or Permissions: The Zalo API might restrict group creation frequency or require specific permissions. Check your API quota and permission scopes.
  • Network Issues: Connectivity problems can cause timeouts or failures. Verify network access to the Zalo API endpoints.

Links and References

Discussion