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
Automation Rule → Update Automation Rule In Account
AI-generatedOverview
This node allows you to update an existing automation rule within a specified account in ChatWoot. Automation rules help automate actions based on specific events and conditions, such as labeling messages or triggering workflows when certain message content appears.
Common scenarios include:
- Automatically tagging incoming messages containing keywords like "help" or "support".
- Enabling or disabling automation rules dynamically.
- Updating the description or name of an automation rule to reflect changes in business logic.
For example, you might use this node to update a rule that adds a "support" label to any message containing the word "help", ensuring your support team can quickly identify relevant conversations.
Properties
| Name | Meaning |
|---|---|
| Account Id | The numeric ID of the account where the automation rule exists. |
| Id | The ID of the automation rule to be updated. |
| Name | The new name for the automation rule. |
| Description | A textual description explaining what the automation rule does and its actions. |
| Event Name | The event that triggers the automation rule. Options: Conversation Created, Conversation Updated, Message Created. |
| Active | Boolean flag to enable or disable the automation rule. |
| Actions | JSON array defining the actions to perform when conditions match. Example: adding labels like "support". |
| Conditions | JSON array defining the conditions under which the automation triggers. Example: message content contains "help". |
Output
The node outputs JSON data representing the updated automation rule object as returned by the ChatWoot API. This typically includes fields such as the rule's ID, name, description, active status, event name, conditions, and actions.
If the node supports binary data output (not indicated here), it would represent associated files or attachments related to the automation rule, but this is not applicable in this context.
Dependencies
- Requires an API key credential for authenticating with the ChatWoot API.
- Needs the base URL of the ChatWoot instance configured in the credentials.
- Depends on the ChatWoot REST API being accessible and the user having permissions to update automation rules.
Troubleshooting
- Invalid Account or Rule ID: Ensure the provided account ID and automation rule ID exist and are correct; otherwise, the API will return errors indicating resource not found.
- Malformed JSON in Actions or Conditions: The
actionsandconditionsproperties expect valid JSON arrays. Invalid JSON will cause parsing errors. - Insufficient Permissions: If the API key lacks permission to update automation rules, the request will fail with authorization errors.
- API Connectivity Issues: Network problems or incorrect base URL configuration can prevent successful API calls.
To resolve these issues:
- Double-check IDs and JSON formatting.
- Verify API credentials and permissions.
- Confirm network connectivity and correct API endpoint URL.
Links and References
- ChatWoot API Documentation
- Automation Rules Guide - ChatWoot (for understanding rule setup and usage)