ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions113

Agent Bots → Delete An Agent Bot

AI-generated

Overview

This node allows users to delete an existing Agent Bot in the ChatWoot platform by specifying its unique identifier. It is useful for scenarios where automated chat agents are no longer needed or must be removed to maintain an updated and clean bot environment. For example, a user might delete an outdated or malfunctioning agent bot to prevent it from handling conversations.

Properties

Name Meaning
Id The unique numeric identifier of the agent bot to be deleted. This property is required to specify which agent bot should be removed.

Output

The node outputs JSON data representing the response from the ChatWoot API after attempting to delete the specified agent bot. Typically, this will include confirmation of deletion or error details if the operation failed. There is no binary output associated with this node.

Dependencies

  • Requires an active connection to the ChatWoot API.
  • Needs an API authentication token credential configured in n8n to authorize requests.
  • The base URL for the ChatWoot instance must be provided via credentials.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent agent bot ID will result in an error response from the API.
    • Missing or incorrect API credentials will cause authentication failures.
    • Network connectivity problems can prevent successful communication with the ChatWoot server.
  • Error messages:

    • "Agent bot not found" — Verify that the provided ID corresponds to an existing agent bot.
    • "Unauthorized" or "Authentication failed" — Check that the API key or token is correctly set up in the node credentials.
    • "Network error" — Ensure that the ChatWoot server URL is reachable and there are no firewall restrictions.

Links and References

Discussion