ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions100

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 chatwootApi credential 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 chatwootApi credential 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.

Links and References

Discussion