Actions113
- 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
- Custom Filters Actions
- Webhooks Actions
- Reports Actions
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
- ChatWoot API Documentation – Official API docs for managing agents and accounts.
- n8n Documentation – General guidance on using n8n nodes and credentials.