Package Information
Released: 7/25/2025
Downloads: 182 weekly / 868 monthly
Latest Version: 0.1.5
Author: mctlisboa
Available Nodes
Documentation
@pixelinfinito/n8n-nodes-chatwoot
A comprehensive n8n community node for integrating with Chatwoot API. This node provides full access to Chatwoot's Application APIs for managing contacts, conversations, messages, and more.
Features
- Complete API Coverage: Support for all major Chatwoot Application API endpoints
- Multiple Resources: Account, Contact, Conversation, Message, Inbox, Canned Response, Webhook, Team, and Label operations
- Flexible Authentication: Support for both Application API and Platform API authentication
- Pagination Support: Built-in pagination for list operations
- Error Handling: Comprehensive error handling with continue on fail option
- TypeScript: Fully typed with TypeScript for better development experience
Resources & Operations
Account
- Get: Retrieve account details
Contact
- Get: Get a contact by ID
- Get All: List all contacts with pagination and filtering
- Create: Create a new contact
- Update: Update contact information
- Delete: Delete a contact
- Search: Search contacts by name, email, or phone
- Filter: Filter contacts using custom rules
Conversation
- Get: Get a conversation by ID
- Get All: List all conversations with filtering
- Create: Create a new conversation
- Update Status: Change conversation status (open, resolved, pending)
- Add Labels: Add labels to conversations
- Update Custom Attributes: Set custom attributes
Message
- Get: Get a message by ID
- Get All: List all messages in a conversation
- Create: Send a new message
- Update: Edit a message
- Delete: Delete a message
Inbox
- Get: Get an inbox by ID
- Get All: List all inboxes
Canned Response
- Get: Get a canned response by ID
- Get All: List all canned responses
- Create: Create a new canned response
- Update: Update a canned response
- Delete: Delete a canned response
Webhook
- Get: Get a webhook by ID
- Get All: List all webhooks
- Create: Create a new webhook
- Update: Update webhook settings
- Delete: Delete a webhook
Team
- Get: Get a team by ID
- Get All: List all teams
Label
- Get: Get a label by ID
- Get All: List all labels
Installation
Using npm
npm install @pixelinfinito/n8n-nodes-chatwoot
Using n8n-node-dev (Development)
n8n-node-dev build
Setup
1. Get Your Chatwoot API Token
- Log in to your Chatwoot account
- Go to Profile Settings
- Generate an API Access Token
- Copy the token for use in n8n
2. Configure Credentials in n8n
- In n8n, go to Settings → Credentials
- Click Add Credential
- Search for Chatwoot API
- Fill in the following details:
- API Type: Application API (for most use cases)
- Base URL: Your Chatwoot instance URL (e.g.,
https://app.chatwoot.com) - Access Token: Your API access token from step 1
3. Add the Chatwoot Node
- In your workflow, click the + button
- Search for Chatwoot
- Select the Chatwoot node
- Choose your credentials
- Select the resource and operation you want to perform
Usage Examples
Get All Contacts
{
"resource": "contact",
"operation": "getAll",
"accountId": 1,
"returnAll": false,
"limit": 50,
"sort": "name"
}
Create a New Contact
{
"resource": "contact",
"operation": "create",
"accountId": 1,
"name": "John Doe",
"email": "john.doe@example.com",
"phoneNumber": "+1234567890",
"identifier": "user-001"
}
Create a Conversation
{
"resource": "conversation",
"operation": "create",
"accountId": 1,
"sourceId": "ch-123-xyz",
"inboxId": 1,
"additionalFields": {
"fields": {
"status": "open",
"message": "Hello! How can I help you today?"
}
}
}
Send a Message
{
"resource": "message",
"operation": "create",
"accountId": 1,
"conversationId": 1,
"content": "Thank you for contacting us!",
"messageType": "outgoing"
}
Search Contacts
{
"resource": "contact",
"operation": "search",
"accountId": 1,
"query": "john",
"sort": "name"
}
Update Conversation Status
{
"resource": "conversation",
"operation": "updateStatus",
"accountId": 1,
"conversationId": 1,
"status": "resolved"
}
Workflow Examples
Customer Support Automation
- Webhook Trigger: Receive new conversation webhook
- Chatwoot Node: Get conversation details
- Chatwoot Node: Get contact information
- Condition Node: Check if VIP customer
- Chatwoot Node: Send automated response
- Chatwoot Node: Assign to appropriate team
Contact Management
- Schedule Trigger: Run daily at 9 AM
- Chatwoot Node: Get all contacts
- Filter Node: Filter inactive contacts
- Chatwoot Node: Update contact attributes
- Email Node: Send summary report
API Reference
This node supports the Chatwoot Application API. For detailed API documentation, visit:
Authentication
Application API (Recommended)
- Use Case: Account-level automation and agent-facing integrations
- Authentication: User access token from Profile Settings
- Availability: Cloud and Self-hosted installations
Platform API
- Use Case: Administrative management of installations
- Authentication: Platform App access token
- Availability: Self-hosted installations only
Error Handling
The node includes comprehensive error handling:
- Continue On Fail: Option to continue workflow execution even if the node fails
- HTTP Error Handling: Proper handling of API errors with meaningful messages
- Validation: Input validation for required fields and data types
Development
Prerequisites
- Node.js >= 20.15
- npm or yarn
- n8n development environment
Setup
# Clone the repository
git clone https://github.com/pixelinfinito/n8n-nodes-chatwoot.git
cd n8n-nodes-chatwoot
# Install dependencies
npm install
# Build the project
npm run build
# Run tests
npm test
# Run linting
npm run lint
# Format code
npm run format
Testing
# Run all tests
npm test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage
npm run test:coverage
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- Documentation: Chatwoot API Docs
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Changelog
See CHANGELOG.md for a list of changes and version history.
Team
Pixel Infinito - Infinite value. Limitless possibilities.
- Website: https://pixel.ao
- GitHub: https://github.com/pixelinfinito
- Email: dev@pixel.ao
- Location: Angola
We are a team dedicated to creating innovative solutions and contributing to the open-source community. This Chatwoot n8n node is part of our commitment to providing valuable integrations for the n8n ecosystem.