Zalo User Interact icon

Zalo User Interact

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

Overview

This n8n node provides integration with Zalo, a popular messaging and social platform. Specifically, for the Friend resource and the Accept Friend Request operation, the node allows users to programmatically accept incoming friend requests on behalf of a Zalo user. This is useful for automating contact management workflows, such as auto-accepting friend requests for business or support accounts, onboarding new contacts, or integrating Zalo contact acceptance into broader CRM or customer engagement processes.

Example use cases:

  • Automatically accepting all incoming friend requests for a business Zalo account.
  • Integrating Zalo friend acceptance into a customer onboarding workflow.
  • Building bots that manage Zalo contacts without manual intervention.

Properties

The following input property is relevant for this operation:

Display Name Type Description
User Id String ID của Zalo User để lấy thông tin. (The ID of the Zalo user whose friend request you want to accept.)

Output

The output of this operation is a JSON object indicating the result of the friend request acceptance. The structure typically includes:

{
  "success": true,
  "data": { /* details about the accepted friend */ }
}
  • success: Boolean indicating if the operation was successful.
  • data: An object containing details about the newly accepted friend (the exact fields depend on the Zalo API response).

If an error occurs, the output may look like:

{
  "success": false,
  "error": "Error message",
  "stack": "Stack trace (if available)"
}

Dependencies

  • Zalo API: Requires access to the Zalo API endpoints for managing friends.
  • API Credentials: You must configure valid Zalo API credentials (such as access tokens) in your n8n instance.
  • n8n Configuration: Ensure the node is properly configured with the necessary authentication for Zalo.

Troubleshooting

Common issues:

  • Invalid or missing User Id: If the provided User Id is incorrect or empty, the operation will fail.
  • Authentication errors: If the Zalo API credentials are not set up correctly, you may receive authentication or permission errors.
  • API rate limits: Excessive requests may be throttled by Zalo's API.

Typical error messages:

  • "User Id is required": Ensure you provide a valid User Id.
  • "Authentication failed": Check your Zalo API credentials in n8n.
  • "API error: ...": Review the error message for more details; it may indicate issues such as invalid parameters or server problems.

How to resolve:

  • Double-check the User Id value.
  • Verify your Zalo API credentials and permissions.
  • Consult Zalo API documentation for specific error codes and their meanings.

Links and References


Discussion