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
Overview
This node allows you to add a new custom attribute to an account within the ChatWoot platform. Custom attributes are useful for extending account data with additional metadata tailored to your business needs, such as tagging accounts with specific labels, tracking extra numeric or textual information, or adding dates and links relevant to the account.
Common scenarios include:
- Adding personalized fields to customer accounts for segmentation or reporting.
- Tracking custom metrics or statuses that are not part of the default account schema.
- Integrating external system data by storing unique keys and values as attributes.
For example, you might add a "Customer Tier" attribute with a list of possible values or a "Last Purchase Date" attribute with a date type to enrich account profiles.
Properties
| Name | Meaning |
|---|---|
| Account Id | The numeric ID of the account to which the custom attribute will be added. |
| Attribute Display Name | The human-readable name of the custom attribute shown in the UI. |
| Attribute Display Type | The data type of the attribute's value. Options: 0 (text), 1 (number), 2 (currency), 3 (percent), 4 (link), 5 (date), 6 (list), 7 (checkbox). |
| Attribute Description | A description explaining the purpose or usage of the attribute. |
| Attribute Key | A unique key identifier for the attribute used internally to reference it. |
| Attribute Values | JSON array representing possible values for the attribute (useful especially for list types). |
| Attribute Model | The model type indicating where the attribute applies: 0 for conversation attribute, 1 for contact attribute. |
Output
The node outputs JSON data representing the response from the ChatWoot API after creating the custom attribute. This typically includes details of the newly created attribute such as its ID, key, display name, type, description, and any other metadata returned by the API.
No binary data output is produced by this node.
Dependencies
- Requires an active connection to the ChatWoot API.
- Needs an API authentication token configured in n8n credentials to authorize requests.
- The base URL for the ChatWoot instance must be set in the credentials configuration.
Troubleshooting
- Invalid Account Id: If the provided account ID does not exist or is incorrect, the API will return an error. Verify the account ID before running the node.
- Duplicate Attribute Key: Attempting to add an attribute with a key that already exists may cause a conflict error. Use unique keys for each attribute.
- Incorrect Attribute Values Format: The
attribute_valuesproperty expects valid JSON. Malformed JSON will cause parsing errors. Ensure the JSON syntax is correct. - Authentication Errors: Missing or invalid API credentials will result in authorization failures. Confirm that the API key/token is correctly configured.
- Unsupported Attribute Display Type or Model: Using unsupported numeric codes for display type or model may lead to unexpected behavior or API rejection. Use only the documented options.