Actions12
Zalo User → Đánh Dấu Tin Nhắn Đã Đọc
AI-generatedOverview
This node manages interactions with Zalo users, specifically allowing you to mark messages as read or unread within a conversation thread. It is useful in scenarios where you want to programmatically update the read status of messages in Zalo chats, such as automating message handling workflows, managing notifications, or syncing message states between systems.
For example, you can use this node to:
- Mark all messages in a specific chat thread as read after processing them.
- Mark certain conversations as unread to remind yourself or others to follow up later.
Properties
| Name | Meaning |
|---|---|
| Thread ID | The unique identifier of the user or conversation thread whose messages will be marked. |
| Thread Type | The type/category of the user or thread (e.g., personal chat, group chat). |
Output
The node outputs a JSON object for each input item processed, containing:
status: A string indicating success, typically "Thành công" (meaning "Success").response: The raw response from the Zalo API confirming the action taken.
Example output JSON:
{
"status": "Thành công",
"response": {
// API response details here
}
}
No binary data is produced by this node.
Dependencies
- Requires an API key credential to authenticate with the Zalo platform.
- Needs valid session information including cookie, IMEI, and user agent strings to establish a connection.
- Uses the external
zca-jslibrary to interact with the Zalo API.
Troubleshooting
- Invalid Credentials: If the node throws an error about missing or invalid credentials, ensure that the API key and session details (cookie, IMEI, user agent) are correctly configured.
- No API instance found: This error indicates failure to create a valid API client, often due to incorrect or expired authentication data.
- Operation-specific errors: Errors during marking messages may occur if the provided Thread ID or Thread Type is incorrect or does not exist. Verify these values carefully.
- Continue on Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying SDK used)