Mtai Zalo User icon

Mtai Zalo User

Quản lý người dùng Zalo

Overview

This node manages Zalo user interactions, specifically for the "Zalo User" resource. The "Bỏ chặn người dùng" (Unblock User) operation allows you to remove a block on a specified Zalo user by their user ID. This is useful in scenarios where you previously blocked a user and want to restore communication or interaction with them.

Practical examples:

  • Unblocking a user who was mistakenly blocked.
  • Automating the process of unblocking users after a certain condition or time period.
  • Managing user relationships programmatically within a Zalo-based application or workflow.

Properties

Name Meaning
User ID The ID of the user to unblock.

Output

The output JSON contains two main fields:

  • status: A string indicating the success of the operation, typically "Thành công" which means "Success".
  • response: The raw response from the Zalo API related to the unblock action, which may include details about the unblock result.

Example output JSON structure:

{
  "status": "Thành công",
  "response": {
    // API response details here
  }
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • The node uses stored credentials including cookie, device IMEI, and user agent strings to establish a session with Zalo.
  • The external library zca-js is used to interact with the Zalo API.
  • Proper configuration of the Zalo API credentials in n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials can cause login failures.
    • Missing or incorrect user ID input will prevent the unblock operation.
    • Network or API errors from Zalo may interrupt the request.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo. Check your API credentials and ensure they are valid and properly configured.
    • Errors returned from the Zalo API will be shown in the error message; verify the user ID exists and that the account has permission to unblock the user.
    • If the node is set to continue on fail, errors will be included in the output JSON under the error field for each failed item.

Links and References

Discussion