ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions100

Overview

This node allows you to update an existing account in ChatWoot by specifying the account's numeric ID and providing a new name. It is useful in scenarios where you need to programmatically rename or update account details within your ChatWoot workspace, such as synchronizing account names with another system or automating administrative tasks.

Example use cases:

  • Automatically updating account names based on changes in your CRM.
  • Bulk-renaming accounts during data migration.
  • Integrating with other systems to keep account information consistent.

Properties

Display Name Type Required Description
Account Id Number Yes The numeric ID of the account.
Name String No Name of the account.
  • Account Id: The unique identifier for the account you wish to update.
  • Name: The new name to assign to the account.

Output

The output will be a JSON object reflecting the updated account information as returned by the ChatWoot API. Typical fields may include:

{
  "id": 123,
  "name": "New Account Name",
  // ...other account properties as provided by ChatWoot
}

Note: The exact structure depends on the ChatWoot API response.

Dependencies

  • External Service: Requires access to a ChatWoot instance.
  • API Credentials: You must configure chatwootApi credentials in n8n, including the base URL (url) and authentication details.
  • 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:
    Error message: "No credentials found" or authentication errors.
    Resolution: Make sure you have set up the chatwootApi credentials correctly in n8n.

  • Invalid Account Id:
    Error message: "Account not found" or similar from the API.
    Resolution: Verify that the Account Id exists in your ChatWoot instance.

  • Network/Connection Issues:
    Error message: "Could not reach server" or timeout errors.
    Resolution: Check network connectivity and ensure the ChatWoot API URL is correct and accessible.

  • Insufficient Permissions:
    Error message: "Unauthorized" or "Forbidden".
    Resolution: Ensure the API key/user used has permission to update accounts.

Links and References

Discussion