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 a user from a specific account in ChatWoot, a customer engagement platform. It is useful for administrators or automation workflows that need to manage account memberships, such as removing users who no longer require access or automating offboarding processes.
Example scenarios:
- Automatically remove a user from an account when their employment ends.
- Clean up inactive users from ChatWoot accounts on a scheduled basis.
- Integrate with HR systems to synchronize user access.
Properties
| Display Name | Type | Required | Description |
|---|---|---|---|
| Account Id | Number | Yes | The numeric ID of the account. |
| User Id | Number | Yes | The ID of the user to be deleted. |
Output
The output will contain a JSON object reflecting the result of the deletion operation. Typically, this may include:
- A status indicator (e.g., success or failure).
- Any message or error returned by the ChatWoot API.
- Details about the deleted user or account, if provided by the API.
Example output:
{
"status": "success",
"message": "User removed from account"
}
Note: The exact structure depends on the ChatWoot API response.
Dependencies
- External Service: Requires access to a ChatWoot instance.
- API Credentials: You must configure n8n with valid ChatWoot API credentials (
chatwootApi), including the base URL and authentication token. - n8n Configuration: Ensure the ChatWoot credential is set up in your n8n instance.
Troubleshooting
Missing or Invalid Credentials:
Error: "401 Unauthorized" or similar.
Resolution: Check that your ChatWoot API credentials are correctly configured in n8n.Invalid Account or User ID:
Error: "404 Not Found" or "User not found in account."
Resolution: Verify that both the Account Id and User Id are correct and that the user exists in the specified account.Insufficient Permissions:
Error: "403 Forbidden."
Resolution: Ensure the API key used has sufficient permissions to delete users from the account.Network Issues:
Error: "Network Error" or timeouts.
Resolution: Confirm connectivity between n8n and your ChatWoot instance.