Zalo User Interact

Advanced interactions with Zalo User API

React Message

AI-generated

Overview

The node "Zalo User Interact" enables advanced interactions with the Zalo messaging platform's user API. Specifically, for the React Message operation, it allows users to add a reaction (like, love, haha, wow, sad, angry) to a specific message by its ID. This is useful in automating social engagement workflows, such as acknowledging messages automatically or managing reactions in bulk.

Practical examples:

  • Automatically reacting with a "Like" to all incoming messages from a certain user.
  • Adding a "Love" reaction to messages containing specific keywords.
  • Managing message reactions programmatically in customer support or community management scenarios.

Properties

Name Meaning
Message ID The unique identifier of the message to which you want to add a reaction.
Reaction Type The type of reaction to add. Options: Like, Love, Haha, Wow, Sad, Angry

Output

The output is a JSON object representing the response from the Zalo API after attempting to react to the specified message. It typically contains status information about the success or failure of the reaction request.

No binary data output is produced by this operation.

Example output structure (simplified):

{
  "success": true,
  "message": "Reaction added successfully",
  "data": {
    // additional details depending on API response
  }
}

Dependencies

  • Requires an API key credential for authenticating with the Zalo User API.
  • Uses HTTP requests to Zalo endpoints, specifically https://chat.zalo.me/api/message/react.
  • Requires proper configuration of authentication cookies and user-agent headers within the credentials.

Troubleshooting

  • Common issues:

    • Invalid or expired authentication credentials may cause authorization failures.
    • Incorrect or non-existent message IDs will result in errors from the API.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • "Unknown operation": Indicates that the operation parameter was not set correctly; ensure "React Message" is selected.
    • API error responses usually include descriptive messages; check the output JSON for details.
  • Resolutions:

    • Verify that the API credentials are valid and have not expired.
    • Confirm the message ID exists and is accessible by the authenticated user.
    • Ensure network access to the Zalo API endpoint is available.

Links and References

Discussion