ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions113

Automation Rule → Update Automation Rule In Account

AI-generated

Overview

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 actions and conditions properties 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

Discussion