Zalo User Interact icon

Zalo User Interact

Gửi tin nhắn và tương tác với Zalo User

Overview

This node operation allows users to create a new group by specifying a list of member IDs and optionally a group name. It is useful in scenarios where you want to programmatically manage groups of users or entities, such as creating chat groups, project teams, or user segments within an application.

Practical examples include:

  • Creating a chat group with specific members for collaboration.
  • Defining a user group for targeted notifications or permissions.
  • Organizing contacts into groups for marketing campaigns.

Properties

Name Meaning
Members A required string listing the IDs of the members to be included in the group, separated by commas (e.g., "memberId1,memberId2,memberId3").
Group Name An optional string specifying the name of the group being created.

Output

The node outputs JSON data representing the result of the group creation operation. This typically includes details about the newly created group such as its ID, name, and the list of members added. The exact structure depends on the API response but generally confirms successful creation and provides relevant metadata.

No binary data output is indicated.

Dependencies

  • Requires an API key credential or similar authentication token configured in n8n to authorize requests to the external service managing groups.
  • Depends on the external service's API endpoint that supports group creation with specified members and group name.
  • No additional environment variables are explicitly required beyond standard API credentials.

Troubleshooting

Common Issues

  • Invalid Member IDs: If the member IDs string is malformed or contains invalid IDs, the API may reject the request.
  • Missing Required Fields: Omitting the required "Members" property will cause the node to fail.
  • Authentication Errors: Incorrect or missing API credentials will prevent successful group creation.
  • API Limitations: The external service might impose limits on group size or naming conventions.

Error Messages and Resolutions

  • "Members field is required": Ensure the "Members" input is provided and correctly formatted.
  • "Unauthorized" or "Authentication failed": Verify that the API key or authentication token is correctly set up in n8n credentials.
  • "Invalid member ID(s)": Check that all member IDs exist and are valid according to the external service.
  • "Group name too long": If the group name exceeds allowed length, shorten it.

Links and References

  • Refer to the external service's API documentation for group management endpoints.
  • n8n documentation on setting up API credentials and using HTTP Request nodes for custom integrations.

Note: The source code was obfuscated and minified, so the above summary is based on static analysis of the provided properties and typical patterns for such operations.

Discussion