Actions100
- 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
Overview
The Conversation Filter operation for the Conversations resource in this custom n8n node allows users to filter and retrieve conversations from a ChatWoot account based on specific criteria. This is particularly useful for support teams or administrators who need to segment conversations by attributes such as language, status, or other metadata. For example, you can use this node to fetch all pending conversations where the browser language is not English.
Properties
| Display Name | Type | Description |
|---|---|---|
| Account Id | Number | The numeric ID of the ChatWoot account. This is required to specify which account to query. |
| Page | Number | The page number for paginated results. Useful for navigating through large result sets. |
| Payload | JSON | An array of filter objects defining how to filter conversations (e.g., by attribute, status). |
Details
- Account Id:
- Type: Number
- Required: Yes
- Description: The unique identifier for your ChatWoot account.
- Page:
- Type: Number
- Default: 0
- Description: Used for pagination; specifies which page of results to return.
- Payload:
- Type: JSON
- Default Example:
[ { "attribute_key": "browser_language", "filter_operator": "not_eq", "values": ["en"], "query_operator": "AND" }, { "attribute_key": "status", "filter_operator": "eq", "values": ["pending"], "query_operator": null } ] - Description: Defines the filtering logic. Each object specifies an attribute to filter by, the operator, values, and how it combines with other filters.
Output
json:
The output will be a JSON object containing the filtered list of conversations matching the specified criteria. The structure typically includes conversation details such as IDs, statuses, participants, timestamps, and any other relevant metadata provided by the ChatWoot API.Binary:
This node does not output binary data.
Dependencies
- External Service: Requires access to a ChatWoot instance.
- API Key/Credentials: Needs valid ChatWoot API credentials configured in n8n under the name
chatwootApi. - Environment Variables: The base URL for the ChatWoot instance must be set in the credentials (
urlfield).
Troubleshooting
Common Issues:
- Invalid Account Id: If the provided Account Id does not exist or is incorrect, the node may return an error or empty results.
- Malformed Payload: If the payload JSON is invalid or does not match the expected schema, the request may fail.
- Authentication Errors: Missing or incorrect API credentials will result in authentication failures.
- Pagination Issues: Requesting a page number beyond available pages will return empty results.
Error Messages & Resolutions:
- "401 Unauthorized": Check that your API credentials are correct and have sufficient permissions.
- "400 Bad Request": Ensure the payload is valid JSON and matches the expected filter format.
- "404 Not Found": Verify the Account Id and endpoint URL.