ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions100

Overview

This node allows you to retrieve a custom attribute for a specific account from the ChatWoot platform. It is useful in scenarios where you need to fetch metadata or additional information associated with an account, such as custom fields defined for conversations or contacts. For example, you might use this node to pull a user's custom profile data or conversation-specific attributes for further processing in your n8n workflow.

Properties

Display Name Type Description
Account Id Number The numeric ID of the account whose custom attribute you want to retrieve.
Attribute Model Options Specifies the type of attribute: conversation_attribute (0) or contact_attribute (1).

Output

  • json: The output will contain the details of the requested custom attribute for the specified account. The structure will reflect the data returned by the ChatWoot API for the selected attribute model and account.
  • Binary: This node does not output binary data.

Dependencies

  • External Service: Requires access to a ChatWoot instance.
  • API Key: You must configure valid ChatWoot API credentials (chatwootApi) in n8n.
  • Environment Variable: The base URL for the ChatWoot instance must be set in the credentials as url.

Troubleshooting

  • Invalid Account Id: If the provided Account Id does not exist, the node may return an error indicating that the account was not found. Double-check the Account Id value.
  • Missing Credentials: If the ChatWoot API credentials are not configured or are incorrect, authentication errors will occur.
  • Attribute Not Found: If the specified attribute model does not exist for the account, the response may be empty or include an error message from the API.
  • Common Error Messages:
    • 401 Unauthorized: Check your API key and permissions.
    • 404 Not Found: Verify the Account Id and Attribute Model values.

Links and References

Discussion