WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Chats → Update Chat Read Status

AI-generated

Overview

The "Update Chat Read Status" operation in the Chats resource allows users to mark a specific WhatsApp chat as either read or unread. This is useful for managing message notifications and keeping track of which conversations require attention. For example, a customer support agent can mark chats as unread to remind themselves to follow up later, or mark them as read once the issue has been resolved.

Practical scenarios include:

  • Automatically marking incoming chats as unread to flag new messages.
  • Marking chats as read after processing messages to clear notification badges.
  • Integrating with CRM systems to sync chat read status with customer interaction records.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) from which the chat belongs. This identifies the WhatsApp account used.
Chat ID The unique identifier of the chat to update. Examples: 447362053576@c.us for individual user chats, 44736205357600000000@g.us for group chats.
Unread Status Boolean value indicating whether to mark the chat as unread (true) or read (false).

Output

The node outputs JSON data representing the result of the update operation. Typically, this will confirm the success or failure of changing the read status of the specified chat. The exact structure depends on the underlying API response but generally includes status information.

This node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the WaliChat WhatsApp API.
  • The WhatsApp number (device) must be registered and connected via the WaliChat service.
  • Proper permissions to modify chat statuses on the selected WhatsApp number.

Troubleshooting

  • Common issues:

    • Invalid or missing WhatsApp number/device ID: Ensure the device ID corresponds to a valid and active WhatsApp number.
    • Incorrect chat ID format: Verify the chat ID matches the expected pattern for user or group chats.
    • Insufficient permissions or expired API key: Confirm that the API key is valid and has rights to update chat statuses.
  • Error messages:

    • "Chat not found": The provided chat ID does not exist for the given WhatsApp number.
    • "Unauthorized" or "Invalid API key": Authentication failed; check API credentials.
    • "Failed to update read status": General failure; verify network connectivity and API limits.

Resolving these typically involves validating input parameters, refreshing credentials, and ensuring the WaliChat service is operational.

Links and References

Discussion