Actions113
- 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
- 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
Overview
This node interacts with the Conversations resource of the ChatWoot API, specifically providing a "Conversation Filter" operation. It allows users to filter conversations based on various attributes and conditions defined in a JSON payload. This is useful for scenarios where you want to programmatically retrieve subsets of conversations matching specific criteria, such as filtering by status, language, or other custom attributes.
Practical examples include:
- Fetching all conversations that are currently pending.
- Filtering out conversations where the browser language is not English.
- Combining multiple attribute filters using logical operators (AND/OR) to refine the search results.
Properties
| Name | Meaning |
|---|---|
| Account Id | The numeric ID of the account whose conversations you want to filter. |
| Page | The page number of the paginated results to retrieve (for navigating through large result sets). |
| Payload | A JSON array defining the filter criteria. Each object specifies an attribute key, filter operator, values, and optional query operator to combine multiple filters. Example structure: json [ { "attribute_key": "browser_language", "filter_operator": "not_eq", "values": ["en"], "query_operator": "AND" }, { "attribute_key": "status", "filter_operator": "eq", "values": ["pending"], "query_operator": null } ] |
Output
The node outputs JSON data representing the filtered list of conversations returned by the ChatWoot API. The exact structure depends on the API response but typically includes conversation details such as IDs, statuses, timestamps, participants, and message summaries.
If binary data were involved (e.g., attachments), it would be included separately, but this operation focuses on JSON conversation data only.
Dependencies
- Requires an API key credential for authenticating with the ChatWoot API.
- Needs the base URL of the ChatWoot instance configured in the credentials.
- Depends on the ChatWoot API being accessible and the user having appropriate permissions to access conversation data.
Troubleshooting
- Invalid Account Id: If the account ID is incorrect or does not exist, the API will likely return an error or empty results. Verify the account ID before running the node.
- Malformed Payload: The filter payload must be valid JSON and follow the expected schema. Invalid JSON or unsupported filter operators may cause request failures.
- Pagination Issues: Requesting pages beyond the available range may return empty results. Adjust the
Pageproperty accordingly. - Authentication Errors: Ensure the API key credential is valid and has sufficient permissions.
- API Rate Limits: Excessive requests might trigger rate limiting; handle such errors by retrying after some delay.
Links and References
- ChatWoot API Documentation
- ChatWoot Conversations API Reference
- n8n Documentation on HTTP Request Node (for understanding API calls)