Actions59
- Instancia Actions
- Mensaje Actions
- Grupo Actions
- Crear Grupo
- Actualizar Imagen Del Grupo
- Actualizar Nombre Del Grupo
- Actualizar Descripción Del Grupo
- Actualizar Configuraciones
- Actualizar Miembros
- Buscar Enlace De Invitación
- Revocar Enlace De Invitación
- Enviar Enlace De Invitación
- Buscar Grupos
- Encontrar Participantes
- Mensajes Temporales
- Entrar en El Grupo
- Salir Del Grupo
- Chat Actions
- Perfil Actions
- Evento Actions
Overview
This node, named "Wazend API," provides integration with the Wazend API to perform various operations on different resources. Specifically, for the Chat resource and the Eliminar Mensaje (Delete Message) operation, it allows users to delete a specific chat message from a conversation. This is useful in scenarios where messages need to be retracted or removed for privacy, error correction, or moderation purposes.
Practical examples include:
- Automatically deleting sensitive messages sent by the bot or user.
- Moderating chat content by removing inappropriate messages.
- Managing message history by programmatically cleaning up old or unwanted messages.
Properties
Name | Meaning |
---|---|
Nombre De La Instancia | The name of the instance from which the message will be deleted. |
Contacto | The contact number associated with the chat where the message exists. |
ID Del Mensaje | The unique identifier of the message that will be deleted. |
El Mensaje Es Mío | Boolean indicating if the message was sent by the instance itself (true/false). |
Número Del Participante | The participant's number who sent the message; required only if the message is not from the instance. |
Output
The node outputs a JSON array containing the result of the delete message operation. The exact structure depends on the API response but typically includes confirmation of deletion or error details. There is no indication that binary data is output by this node.
Example output might look like:
[
{
"success": true,
"messageId": "1234567890",
"deleted": true
}
]
Dependencies
- Requires an active connection to the Wazend API service.
- Needs an API authentication token or key configured in n8n credentials to authorize requests.
- The base URL for API requests is
https://docs.wazend.net/wazend
.
Troubleshooting
- Operation Not Supported Error: If the specified operation or resource is not supported, the node throws an error stating the operation is unsupported. Ensure the correct resource ("chat-api") and operation ("delete-message") are selected.
- Missing Required Parameters: All required properties must be provided; missing any will cause the node to fail.
- API Authentication Issues: Invalid or missing API credentials will prevent successful communication with the Wazend API.
- Message Not Found: If the message ID does not exist or is incorrect, the API may return an error indicating the message cannot be found or deleted.
- Permission Errors: Attempting to delete messages not sent by the instance without proper permissions may result in errors.
Links and References
- Wazend API Documentation (base URL used by the node)
- General n8n documentation on Creating Custom Nodes