Actions148
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Files Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
Chats → Update Chat Read Status
AI-generatedOverview
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
- WaliChat API Documentation (general reference for API capabilities)
- WhatsApp chat ID formats: User chats end with
@c.us, group chats end with@g.us - n8n documentation on creating custom nodes