ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions113

Overview

This node interacts with the ChatWoot API to update an existing canned response within a specified account. Canned responses are predefined message templates that can be quickly inserted during conversations, improving efficiency and consistency in communication.

A typical use case is when you want to modify the content or shortcut code of a canned response without manually updating it through the ChatWoot dashboard. For example, if your support team updates a policy or fixes a typo in a standard reply, this node allows you to programmatically apply those changes.

Properties

Name Meaning
Account Id The numeric ID of the ChatWoot account where the canned response exists.
Id The unique numeric ID of the canned response to be updated.
Content The new message content for the canned response.
Short Code A short code string for quick access to the canned response (like a shortcut key).

Output

The node outputs JSON data representing the updated canned response as returned by the ChatWoot API. This typically includes fields such as the canned response's ID, updated content, short code, timestamps, and possibly metadata about the account or user who made the change.

No binary data output is involved.

Dependencies

  • Requires an active ChatWoot account.
  • Needs an API authentication token configured in n8n credentials to authorize requests to the ChatWoot API.
  • The base URL for the ChatWoot instance must be set in the credentials configuration.

Troubleshooting

  • Invalid Account Id or Canned Response Id: If these IDs do not exist or are incorrect, the API will return an error indicating the resource was not found. Verify the IDs before running the node.
  • Authentication Errors: Missing or invalid API tokens will cause authorization failures. Ensure the API key credential is correctly configured.
  • Empty Content or Short Code: While optional, providing empty strings might overwrite existing values unintentionally. Confirm input values before execution.
  • API Rate Limits: Frequent updates may hit rate limits imposed by ChatWoot. Consider adding delays or retries if errors occur.

Links and References

Discussion