Actions26
- Webhook Actions
- Session Actions
- User Actions
- Chat Actions
- Message Actions
Overview
The node "SteveChat" enables interaction with the SteveChat API for WhatsApp messaging. Specifically, the "Delete Message" operation under the "Chat" resource allows users to delete a specific message from a chat in WhatsApp. This is useful for scenarios where you want to programmatically remove messages that were sent by you or others (depending on permissions) from a conversation, such as cleaning up sensitive information, correcting mistakes, or managing chat history automatically.
Practical examples include:
- Automatically deleting confirmation messages after processing.
- Removing erroneous or outdated messages from group chats.
- Managing chat content dynamically based on business logic.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The identifier of the chat where the message exists. It can be a phone number with @s.whatsapp.net appended or a group ID. Example: 5511999999999@s.whatsapp.net. |
| Message ID | The unique identifier of the message to delete within the specified chat. |
| From Me | A boolean indicating whether the message was sent by you (true) or not (false). This helps determine if the deletion request targets your own messages. |
Output
The output of this node is a JSON object representing the result of the delete message operation. Typically, it will contain confirmation details or status information returned by the SteveChat API about the deletion action.
If an error occurs during execution, the output JSON will contain an error field with the error message describing what went wrong.
This node does not output binary data.
Dependencies
- Requires an active connection to the SteveChat API for WhatsApp messaging.
- Needs an API key credential configured in n8n to authenticate requests to the SteveChat service.
- Proper network access and permissions to interact with WhatsApp via the SteveChat API.
Troubleshooting
Common issues:
- Invalid or malformed Chat ID or Message ID may cause the deletion to fail.
- Attempting to delete messages not sent by you when the API restricts such actions.
- Network or authentication errors due to incorrect API credentials or connectivity problems.
Error messages:
"The resource \"chat\" is not supported!"— indicates the resource parameter is invalid."The operation \"deleteMessage\" is not supported for resource \"chat\"!"— indicates the operation parameter is invalid.- API-specific errors returned in the
errorfield, such as permission denied or message not found.
Resolutions:
- Verify that Chat ID and Message ID are correct and exist.
- Ensure the API key credential is valid and has necessary permissions.
- Confirm that the message targeted for deletion was sent by you if required.
- Check network connectivity and API endpoint availability.
Links and References
- WhatsApp Business API Documentation
- SteveChat API Documentation (Replace with actual URL if available)