Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Overview

The "Mark Unread" operation in the Chat resource allows users to mark a specific WhatsApp chat as unread using the Wappfy API. This is useful for scenarios where you want to flag a conversation for follow-up or remind yourself to revisit it later without deleting or archiving the chat.

Practical examples:

  • Automatically marking important chats as unread after processing them, so they stand out in your WhatsApp client.
  • Integrating with task management workflows where unread chats indicate pending actions.
  • Managing customer support chats by marking unresolved conversations as unread for team attention.

Properties

Name Meaning
Chat ID The unique identifier of the chat to mark as unread (e.g., 123456789@c.us for direct chats or 123456789@g.us for group chats).

Output

The node outputs the JSON response returned by the Wappfy API after marking the chat as unread. This typically includes confirmation details about the operation's success or failure.

The output structure is a JSON object representing the API response. If multiple items are processed, the output is an array of such JSON objects.

No binary data is produced by this operation.

Dependencies

  • Requires an active Wappfy API credential configured in n8n, including:
    • Base URL of the Wappfy API instance.
    • Instance name.
    • API key for authentication.
  • The node makes HTTP POST requests to the endpoint:
    /api/{instanceName}/chats/{chatId}/unread

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID: Ensure the Chat ID is correctly formatted and corresponds to an existing chat.
    • Authentication errors: Verify that the API key and instance name are correctly set in credentials.
    • Network or connectivity problems: Confirm that the Wappfy API base URL is reachable from the n8n environment.
  • Error messages:

    • Errors returned from the API will be included in the node output if "Continue On Fail" is enabled.
    • Typical error messages may include "Chat not found" or "Unauthorized".
    • To resolve, check the Chat ID validity and API credentials.

Links and References

Discussion