Zalo User icon

Zalo User

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

Overview

This node manages interactions with Zalo users, a popular messaging platform. Specifically, the "Thu Hồi Tin Nhắn" (Undo Message) operation allows you to recall or delete a previously sent message in a conversation thread. This is useful when you want to retract messages that were sent by mistake or contain errors.

Practical scenarios include:

  • Automatically recalling messages based on certain triggers or conditions.
  • Managing conversations by removing outdated or incorrect messages.
  • Enhancing chat moderation by allowing message retraction.

Properties

Name Meaning
Thread ID The unique identifier of the user or conversation thread from which the message will be recalled.
Thread Type The type/category of the user or thread (e.g., individual chat, group chat).
msgId The unique identifier of the message to be recalled.
cliMsgId The client-side message ID associated with the message to be recalled.

Output

The output JSON contains:

  • status: A string indicating the success status, typically "Thành công" meaning "Success".
  • response: The raw response object returned from the Zalo API after attempting to undo the message. This may include details about the operation's result.

No binary data output is produced by this operation.

Example output JSON structure:

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

Dependencies

  • Requires an API key credential for authenticating with the Zalo platform.
  • The node uses stored credentials including cookie, IMEI, and user agent strings to establish a session.
  • The underlying implementation depends on the external zca-js library to interact with Zalo's API.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials can cause authentication failures.
    • Incorrect threadId, msgId, or cliMsgId values will prevent successful message recall.
    • Network connectivity problems may interrupt API calls.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo. Verify your API key and credential details.
    • Errors related to invalid parameters usually indicate wrong or missing input properties; double-check the IDs provided.
    • If the node throws errors but continueOnFail is enabled, it will return error messages per item instead of stopping execution.

Links and References

Discussion