ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions113

Overview

This node interacts with the ChatWoot API to delete an agent from a specified account. It is useful in scenarios where you need to programmatically manage agents within your ChatWoot workspace, such as removing users who no longer require access or automating cleanup of agent lists.

For example, if you have an automated workflow that deactivates employees and you want to ensure their agent accounts are removed from ChatWoot, this node can be used to delete those agents by specifying their account and agent IDs.

Properties

Name Meaning
Account Id The numeric ID of the ChatWoot account from which the agent will be deleted.
Id The numeric ID of the agent to be deleted from the specified account.

Output

The node outputs JSON data representing the response from the ChatWoot API after attempting to delete the agent. Typically, this will include confirmation of deletion or error details if the operation failed.

No binary data output is expected from this operation.

Dependencies

  • Requires an active connection to the ChatWoot API.
  • Needs an API authentication token configured in the node credentials to authorize requests.
  • The base URL for the ChatWoot instance must be set in the credentials configuration.

Troubleshooting

  • Common Issues:

    • Invalid or missing account or agent IDs will cause the deletion to fail.
    • Insufficient permissions or invalid API credentials will result in authorization errors.
    • Network connectivity issues may prevent the node from reaching the ChatWoot API.
  • Error Messages:

    • "Unauthorized" or "Authentication failed": Check that the API key/token is correctly configured and has necessary permissions.
    • "Agent not found": Verify that the agent ID exists within the specified account.
    • "Account not found": Confirm the account ID is correct and accessible.

Resolving these typically involves verifying input parameters and ensuring valid, authorized API credentials.

Links and References

Discussion