Actions100
- Accounts Actions
- Account Users Actions
- Agent Bots Actions
- Users Actions
- Inbox API Actions
- Contacts API Actions
- Conversations API Actions
- Messages API Actions
- CSAT Survey Page Actions
- Account Agent Bots Actions
- Agents Actions
- Canned Responses Actions
- Canned Response Actions
- Custom Attributes Actions
- Contacts Actions
- Contact Actions
- Automation Rule Actions
- Help Center Actions
- Conversations Actions
- Conversation Assignment Actions
- Conversation Labels Actions
- Inboxes Actions
- Messages Actions
- Integrations Actions
- Teams Actions
Overview
This node allows you to delete an Agent Bot in ChatWoot by specifying its unique ID. It is useful for automating the management of agent bots, such as removing outdated or unnecessary bots from your ChatWoot workspace. Typical scenarios include cleaning up test bots, managing bot lifecycle, or integrating bot removal into broader automation workflows.
Example use cases:
- Automatically remove a bot after a campaign ends.
- Clean up bots created for temporary support events.
- Integrate with other systems to deactivate bots when certain conditions are met.
Properties
| Display Name | Type | Required | Description |
|---|---|---|---|
| Id | Number | Yes | The ID of the agentbot to be deleted. |
Output
- json: The output will typically contain the response from the ChatWoot API after attempting to delete the specified agent bot. This may include confirmation of deletion or details about the operation's result (such as success status or error information).
Dependencies
- External Service: Requires access to a ChatWoot instance.
- API Credentials: Needs valid
chatwootApicredentials configured in n8n, including the base URL and authentication token. - n8n Configuration: Ensure that the ChatWoot API credentials are set up in your n8n instance.
Troubleshooting
Common Issues:
- Invalid ID: If the provided Id does not correspond to an existing agent bot, the API may return a "Not Found" error.
- Authentication Errors: Missing or incorrect API credentials will result in authentication failures.
- Permission Denied: The user associated with the API key must have permission to delete agent bots.
Error Messages & Resolutions:
"404 Not Found": Check that the Id is correct and the agent bot exists."401 Unauthorized"or"403 Forbidden": Verify your API credentials and permissions."400 Bad Request": Ensure the Id is a valid number and required fields are filled.