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 "Add User To Group With Phone Number" is designed to add a user to a specified group on the Zalo platform using their phone number. It is useful in scenarios where you want to programmatically manage group memberships by adding users identified by their phone numbers without needing their user IDs directly.

Practical examples include:

  • Automating the onboarding process by adding new users to relevant groups based on their phone numbers.
  • Managing community or team groups dynamically as users register or update their contact information.
  • Integrating with CRM or contact management systems to synchronize group memberships.

Properties

Name Meaning
Group Id The unique identifier of the Zalo group to which the user will be added.
Phone Number The phone number of the Zalo user to be added to the group.

Output

The node outputs a JSON object indicating the result of the add operation. The structure typically includes:

  • A success flag or status indicating whether the user was successfully added.
  • Any relevant messages or error details if the operation failed.
  • Possibly the updated group information or confirmation data returned from the Zalo API.

The node does not output binary data.

Dependencies

  • Requires an active connection to the Zalo API, authenticated via an API key or token credential configured in n8n.
  • The node depends on the Zalo service being available and the provided group ID and phone number being valid.
  • Network connectivity to Zalo's API endpoints is necessary.

Troubleshooting

Common Issues

  • Invalid Group Id: If the group ID does not exist or the authenticated user lacks permission, the operation will fail.
  • Invalid Phone Number: If the phone number is not registered on Zalo or formatted incorrectly, the user cannot be added.
  • Authentication Errors: Missing or invalid API credentials will prevent the node from communicating with Zalo.
  • API Rate Limits: Excessive requests may lead to throttling or temporary blocks.

Error Messages and Resolutions

  • "Group not found": Verify the group ID is correct and accessible.
  • "User not found" or "Phone number invalid": Confirm the phone number is correct and belongs to a Zalo user.
  • "Unauthorized" or "Authentication failed": Check that the API key/token is correctly set up in n8n credentials.
  • Timeout or network errors: Ensure stable internet connection and that Zalo API endpoints are reachable.

Links and References


Note: This summary is based solely on static analysis of the provided source code and property definitions. Runtime behavior and dynamic imports were not executed or resolved.

Discussion