Actions76
- Chat Actions
- Contact Actions
- Profile Actions
- LID Actions
- File Actions
- Message Actions
- Group Actions
- Create
- List
- Get
- Delete
- Join
- Get Join Info
- Leave
- Get Picture
- Set Picture
- Delete Picture
- Update Subject
- Update Description
- Get Security Info Admin Only
- Set Security Info Admin Only
- Get Security Messages Admin Only
- Set Security Messages Admin Only
- Get Participants
- Add Participant
- Remove Participant
- Promote Admin
- Demote Admin
- Status Actions
- Channel Actions
- Poll Actions
Overview
This node enables interaction with WhatsApp through the Wappfy API, specifically allowing you to mark a chat as unread. Marking a chat as unread can be useful in scenarios where you want to flag conversations for follow-up or remind yourself to revisit them later. For example, after reading messages in a chat, you might mark it as unread to ensure it appears as needing attention in your WhatsApp interface.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat to mark as unread. This is typically formatted like 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 response typically contains confirmation details about the operation's success or failure. The output is structured as a JSON object under the json field.
No binary data output is involved in this operation.
Dependencies
Requires an active Wappfy API credential with:
- Base URL of the Wappfy API.
- Instance name identifying the WhatsApp session.
- An API key for authentication.
The node makes HTTP POST requests to the endpoint:
{baseUrl}/api/{instanceName}/chats/{chatId}/unreadwhere
{chatId}is URL-encoded.Proper configuration of the Wappfy API credentials in n8n is necessary.
Troubleshooting
Common Issues:
- Invalid or missing Chat ID: Ensure the Chat ID is correctly specified and corresponds to an existing chat.
- Authentication errors: Verify that the API key and instance name are correctly configured.
- Network or connectivity issues: 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," "Unauthorized," or "Invalid request."
Resolution Tips:
- Double-check the Chat ID format and existence.
- Validate API credentials and permissions.
- Review network settings and firewall rules.
Links and References
- Wappfy API Documentation (general reference for API endpoints)
- WhatsApp chat ID formats and usage guidelines (refer to WhatsApp developer resources)