ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions100

Overview

The Contact Delete operation for the Contacts resource in this custom n8n node allows users to delete a specific contact from their ChatWoot account. This is useful for maintaining up-to-date contact lists, removing outdated or incorrect entries, and managing data privacy requirements. For example, you might use this node in an automation workflow to automatically remove contacts who have unsubscribed or requested deletion.

Properties

Display Name Type Description
Account Id Number The numeric ID of the account
Id Number ID of the contact
  • Account Id: The unique numeric identifier for your ChatWoot account. This is required to specify which account the contact belongs to.
  • Id: The unique identifier of the contact you wish to delete.

Output

  • The output will be a JSON object reflecting the result of the delete operation. Typically, this may include a status message or confirmation of deletion. The exact structure depends on the ChatWoot API's response for a successful or failed delete request.

Dependencies

  • External Service: Requires access to the ChatWoot API.
  • API Credentials: You must configure the chatwootApi credentials in n8n, including the base URL (url) and any necessary authentication tokens.
  • n8n Configuration: Ensure that the node is properly configured with the correct credentials and that the ChatWoot instance is accessible from your n8n environment.

Troubleshooting

  • Common Issues:

    • Invalid Account Id or Contact Id: If either ID is incorrect or does not exist, the API will likely return an error indicating that the resource was not found.
    • Authentication Errors: If the chatwootApi credentials are missing or invalid, you may receive authentication or authorization errors.
    • Network Issues: If n8n cannot reach the ChatWoot API (e.g., due to firewall or DNS issues), requests will fail.
  • Error Messages:

    • "Resource not found": Check that both the Account Id and Contact Id are correct.
    • "Unauthorized" or "Forbidden": Verify your API credentials and permissions.
    • "Connection timed out": Ensure network connectivity between n8n and ChatWoot.

Links and References

Discussion