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 Automation Rule from a specific account in ChatWoot via the ChatWoot API. It is useful for automating the management of automation rules, such as cleaning up obsolete or redundant rules within your ChatWoot workspace. For example, you might use this node in workflows that maintain account hygiene or respond to changes in business logic by removing outdated automation rules.
Properties
| Display Name | Type | Description |
|---|---|---|
| Account Id | Number | The numeric ID of the account. |
| Id | Number | The ID of the automation rule to be deleted. |
Both properties are required and must be provided for the operation to succeed.
Output
- json:
The output will typically contain a JSON object reflecting the result of the deletion request. This may include status information or confirmation of deletion. The exact structure depends on the ChatWoot API's response for a successful or failed deletion operation.
Dependencies
- External Service: Requires access to the ChatWoot API.
- API Credentials: You must configure valid
chatwootApicredentials in n8n, including the base URL (url) for your ChatWoot instance. - n8n Configuration: Ensure the node has access to the necessary credentials and that the ChatWoot API is reachable from your n8n environment.
Troubleshooting
Missing or Invalid Credentials:
If thechatwootApicredentials are not set or incorrect, the node will fail to connect to the ChatWoot API. Make sure the credentials are configured properly in n8n.Invalid Account Id or Rule Id:
Providing an incorrect Account Id or Automation Rule Id will result in errors from the ChatWoot API, such as "Not Found" or "Unauthorized". Double-check these values before running the workflow.Permission Issues:
The API key used must have sufficient permissions to delete automation rules. Insufficient permissions will cause the operation to fail.Common Error Messages:
404 Not Found: The specified account or automation rule does not exist.401 Unauthorized: The credentials are missing or invalid.403 Forbidden: The API key does not have permission to perform this action.