Actions100
- Accounts Actions
- Account Users Actions
- Agent Bots Actions
- Users Actions
- Inbox API Actions
- Contacts API Actions
- Conversations API Actions
- Messages API Actions
- CSAT Survey Page Actions
- Account Agent Bots Actions
- Agents Actions
- Canned Responses Actions
- Canned Response Actions
- Custom Attributes Actions
- Contacts Actions
- Contact Actions
- Automation Rule Actions
- Help Center Actions
- Conversations Actions
- Conversation Assignment Actions
- Conversation Labels Actions
- Inboxes Actions
- Messages Actions
- Integrations Actions
- Teams Actions
Overview
The Delete A Message operation for the Messages resource in this custom n8n node allows users to delete a specific message from a conversation within a ChatWoot account. This is useful for automating moderation, cleaning up conversations, or managing sensitive information programmatically. For example, you might use this node to automatically remove inappropriate messages flagged by another workflow, or to clean up old messages as part of a data retention policy.
Properties
| Display Name | Type | Description |
|---|---|---|
| Account Id | Number | The numeric ID of the ChatWoot account where the message resides. (Required) |
| Conversation Id | Number | The numeric ID of the conversation containing the message. (Required) |
| Message Id | Number | The numeric ID of the message to be deleted. (Required) |
Output
- json:
The output will typically contain the result of the delete operation. This may include confirmation of deletion or details about the deleted message, depending on the ChatWoot API's response. If the operation is successful, expect a JSON object indicating success; if not, an error message may be returned.
Dependencies
- External Service: Requires access to a ChatWoot instance.
- API Credentials: You must configure the
chatwootApicredential in n8n, which should include the base URL and authentication token for your ChatWoot account. - n8n Configuration: Ensure that the credentials are set up under the name
chatwootApi.
Troubleshooting
- Missing or Invalid IDs: If any of the required IDs (Account Id, Conversation Id, Message Id) are missing or incorrect, the node will likely return an error such as "Resource not found" or "Invalid parameters." Double-check that you are providing valid numeric IDs.
- Authentication Errors: If the
chatwootApicredential is not configured correctly, you may see errors like "Unauthorized" or "Invalid API key." Ensure your credentials are correct and have sufficient permissions. - Network Issues: If the ChatWoot server is unreachable, you may encounter timeout or connection errors. Verify network connectivity and the correctness of the base URL.