Wuzapi Chat icon

Wuzapi Chat

Perform chat operations with Wuzapi WhatsApp API

Overview

This node enables various chat-related operations using the Wuzapi WhatsApp API. Specifically, for the "Mark as Read" operation, it allows users to mark one or more messages in a specified chat as read. This is useful in scenarios where you want to programmatically update message statuses to reflect that they have been seen, such as automating customer support workflows or synchronizing message states across systems.

Practical example: After processing incoming messages in an automated workflow, you can use this node to mark those messages as read so that they no longer appear as unread in the WhatsApp client.

Properties

Name Meaning
Message IDs Comma-separated list of message IDs to mark as read (e.g., AABBCC11223344,DDEEFF55667788)
Chat JID JID (Jabber ID) of the chat containing the messages (e.g., 5491155553934.0:1@s.whatsapp.net)
Sender JID (Optional) JID of the message sender (e.g., 5491155553111.0:1@s.whatsapp.net)

Output

The output JSON contains the response from the Wuzapi WhatsApp API after attempting to mark the specified messages as read. The exact structure depends on the API's response but generally includes confirmation of success or details about any errors.

No binary data is produced by this operation.

Dependencies

  • Requires an active connection to the Wuzapi WhatsApp API.
  • Requires an API key credential configured in n8n to authenticate requests to the Wuzapi service.
  • The node uses the /chat/markread endpoint of the Wuzapi API.

Troubleshooting

  • Common issues:
    • Invalid or malformed message IDs may cause the API request to fail.
    • Incorrect or missing Chat JID will prevent the node from identifying the correct chat.
    • If the API key credential is invalid or expired, authentication errors will occur.
  • Error messages:
    • Errors returned from the API typically include descriptive messages; ensure message IDs and JIDs are correctly formatted.
    • Network or connectivity issues with the Wuzapi API will result in request failures; verify network access and API availability.
  • To resolve errors, double-check all input parameters, ensure valid credentials, and consult the Wuzapi API documentation for specific error codes.

Links and References

Discussion