Actions50
- Account Actions
- Call Actions
- Chat Actions
- Contact Actions
- Group Actions
- Instance Actions
- Media Actions
- Message Actions
- Session Actions
- User Actions
Overview
This node interacts with the WSAPI WhatsApp API to perform various message-related operations. Specifically, the Delete for Me operation allows a user to delete a WhatsApp message from their own view/conversation without removing it for other participants. This is useful when you want to clean up your chat history or remove messages that are no longer relevant on your side.
Practical examples include:
- Removing mistakenly sent messages from your chat window.
- Cleaning up old or sensitive messages from your personal WhatsApp interface.
- Managing message visibility in group or individual chats without affecting others.
Properties
| Name | Meaning |
|---|---|
| To | The WhatsApp contact ID or group ID where the message exists. For contacts, this is the phone number followed by @s.whatsapp.net (e.g., 1234567890@s.whatsapp.net). For groups, it is the group ID followed by @g.us. |
| Message ID | The unique identifier of the WhatsApp message to delete for yourself. This ID can be obtained from previous WhatsApp operations or webhook events. |
Output
The output JSON contains the result of the delete operation. Typically, it will confirm whether the deletion was successful or provide error details if it failed.
No binary data is output by this operation.
Dependencies
- Requires an active connection to the WSAPI WhatsApp API.
- Needs an API key credential configured in n8n to authenticate requests.
- The base URL for the WSAPI must be set in the credentials configuration.
Troubleshooting
Common issues:
- Invalid or missing
Toproperty format (must include country code and correct suffix). - Incorrect or expired message ID leading to failure in locating the message.
- Insufficient permissions or invalid API credentials causing authentication errors.
- Network connectivity problems preventing communication with the WSAPI endpoint.
- Invalid or missing
Error messages and resolutions:
"The resource "message" is not known!": Indicates a misconfiguration of the resource parameter; ensure "Message" is selected."The operation "deleteForMe" is not implemented yet!": Suggests the operation name might be misspelled or unsupported; verify operation selection.- Authentication errors: Check that the API key credential is correctly set and has necessary permissions.
- Message not found errors: Confirm the message ID is correct and corresponds to a message in the specified chat.
Links and References
- WSAPI WhatsApp API Documentation (generic link, replace with actual if available)
- WhatsApp message ID retrieval methods via webhook or previous node executions
- n8n documentation on setting up API credentials and using custom nodes