ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions100

Overview

This node allows you to delete an Automation Rule from a specific account in ChatWoot via the ChatWoot API. It is useful for automating the management of automation rules, such as cleaning up obsolete or redundant rules within your ChatWoot workspace. For example, you might use this node in workflows that maintain account hygiene or respond to changes in business logic by removing outdated automation rules.

Properties

Display Name Type Description
Account Id Number The numeric ID of the account.
Id Number The ID of the automation rule to be deleted.

Both properties are required and must be provided for the operation to succeed.

Output

  • json:
    The output will typically contain a JSON object reflecting the result of the deletion request. This may include status information or confirmation of deletion. The exact structure depends on the ChatWoot API's response for a successful or failed deletion operation.

Dependencies

  • External Service: Requires access to the ChatWoot API.
  • API Credentials: You must configure valid chatwootApi credentials in n8n, including the base URL (url) for your ChatWoot instance.
  • n8n Configuration: Ensure the node has access to the necessary credentials and that the ChatWoot API is reachable from your n8n environment.

Troubleshooting

  • Missing or Invalid Credentials:
    If the chatwootApi credentials are not set or incorrect, the node will fail to connect to the ChatWoot API. Make sure the credentials are configured properly in n8n.

  • Invalid Account Id or Rule Id:
    Providing an incorrect Account Id or Automation Rule Id will result in errors from the ChatWoot API, such as "Not Found" or "Unauthorized". Double-check these values before running the workflow.

  • Permission Issues:
    The API key used must have sufficient permissions to delete automation rules. Insufficient permissions will cause the operation to fail.

  • Common Error Messages:

    • 404 Not Found: The specified account or automation rule does not exist.
    • 401 Unauthorized: The credentials are missing or invalid.
    • 403 Forbidden: The API key does not have permission to perform this action.

Links and References

Discussion