Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Message → Mark as Read

AI-generated

Overview

This node integrates with the Wappfy API to interact with WhatsApp messaging features. Specifically, for the Message resource and the Mark as Read operation, it marks a particular message in a chat as read (seen). This is useful in automation workflows where you want to programmatically acknowledge messages, update message status, or trigger subsequent actions after marking messages as read.

Practical example:

  • Automatically mark incoming customer support messages as read once they have been processed by your system.
  • Sync message read status between WhatsApp and your CRM or ticketing system.

Properties

Name Meaning
Chat ID The unique identifier of the chat where the message resides. Format examples: 123456789@c.us for direct chats, 123456789@g.us for groups.
Message ID The unique identifier of the specific message to mark as read within the chat.

Output

The node outputs the JSON response returned by the Wappfy API after marking the message as read. This typically includes confirmation details about the action performed, such as success status or updated message metadata.

No binary data output is involved in this operation.

Dependencies

  • Requires an active Wappfy API credential configured in n8n, including:

    • Base URL of the Wappfy API instance.
    • Instance name identifier.
    • An API key for authentication.
  • The node sends HTTP POST requests to the Wappfy API endpoint /api/sendSeen with necessary parameters.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID or Message ID will cause the API call to fail.
    • Incorrect or expired API key or session instance name may result in authentication errors.
    • Network connectivity problems can prevent successful API communication.
  • Error messages:

    • "Invalid chat ID" or "Invalid message ID": Verify that the IDs are correct and correspond to existing chats/messages.
    • "Unauthorized" or "API key invalid": Check that the API key credential is correctly set up and has not expired.
    • "Session not found": Ensure the session instance name is valid and active.
  • Resolution tips:

    • Double-check input property values for correctness.
    • Confirm API credentials and session configuration in n8n.
    • Test connectivity to the Wappfy API endpoint outside n8n to isolate network issues.

Links and References

Discussion