@velocity-bpa/n8n-nodes-customer-io
v1.0.0
Published
n8n node for Customer.io - customer engagement automation platform for email, SMS, and push notifications
Readme
n8n-nodes-customer-io
[Velocity BPA Licensing Notice]
This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).
Use of this node by for-profit organizations in production environments requires a commercial license from Velocity BPA.
For licensing information, visit https://velobpa.com/licensing or contact [email protected].
A comprehensive n8n community node for Customer.io integration, providing access to 6 core resources including customers, events, campaigns, messages, segments, and webhooks. This node enables automated customer engagement workflows with full CRUD operations, event tracking, campaign management, and real-time webhook processing for data-driven marketing automation.
Features
- Customer Management - Create, update, retrieve, and delete customer profiles with custom attributes
- Event Tracking - Track custom events and behaviors with comprehensive metadata
- Campaign Operations - Manage email campaigns, newsletters, and automated messaging sequences
- Message Handling - Send transactional emails, SMS, and push notifications
- Segment Management - Create and manage dynamic customer segments based on attributes and behaviors
- Webhook Integration - Process real-time Customer.io webhooks for events, deliveries, and customer updates
- Bulk Operations - Support for batch customer imports and bulk event tracking
- Advanced Filtering - Query customers and messages with sophisticated filtering options
Installation
Community Nodes (Recommended)
- Open n8n
- Go to Settings → Community Nodes
- Click Install a community node
- Enter
n8n-nodes-customer-io - Click Install
Manual Installation
cd ~/.n8n
npm install n8n-nodes-customer-ioDevelopment Installation
git clone https://github.com/Velocity-BPA/n8n-nodes-customer-io.git
cd n8n-nodes-customer-io
npm install
npm run build
mkdir -p ~/.n8n/custom
ln -s $(pwd) ~/.n8n/custom/n8n-nodes-customer-io
n8n startCredentials Setup
| Field | Description | Required | |-------|-------------|----------| | Site ID | Your Customer.io Site ID found in account settings | Yes | | API Key | Customer.io API Key with appropriate permissions | Yes | | App API Key | App API Key for transactional messaging (optional) | No | | Region | Customer.io region (US or EU) | Yes |
Resources & Operations
1. Customer
| Operation | Description | |-----------|-------------| | Create | Create a new customer profile with attributes | | Update | Update existing customer attributes and properties | | Get | Retrieve customer details by ID or email | | Delete | Remove a customer from your workspace | | List | Get paginated list of customers with filtering | | Add to Segment | Add customer to a specific segment | | Remove from Segment | Remove customer from a segment |
2. Event
| Operation | Description | |-----------|-------------| | Track | Track custom events for customers | | Track Page View | Record page view events | | Track Anonymous | Track events for anonymous visitors | | Bulk Track | Submit multiple events in a single request | | Get Events | Retrieve event history for a customer |
3. Campaign
| Operation | Description | |-----------|-------------| | List | Get all campaigns with filtering options | | Get | Retrieve specific campaign details | | Get Metrics | Get campaign performance metrics | | Get Actions | List campaign actions and triggers | | Update | Modify campaign settings | | Trigger | Manually trigger campaign for customers |
4. Message
| Operation | Description | |-----------|-------------| | Send Transactional | Send transactional emails via API | | Send Push | Send push notifications to mobile devices | | Send SMS | Send SMS messages to customers | | List | Get message history with filtering | | Get | Retrieve specific message details | | Get Metrics | Get message delivery and engagement metrics |
5. Segment
| Operation | Description | |-----------|-------------| | List | Get all segments in your workspace | | Get | Retrieve segment details and member count | | Create | Create new customer segments | | Update | Modify segment criteria and settings | | Delete | Remove segments from workspace | | Get Members | List customers in a specific segment |
6. Webhook
| Operation | Description | |-----------|-------------| | List | Get configured webhook endpoints | | Create | Set up new webhook endpoints | | Update | Modify webhook settings and events | | Delete | Remove webhook configurations | | Test | Test webhook endpoint connectivity | | Get Events | List webhook event types |
Usage Examples
// Track user signup event
{
"customer_id": "user_12345",
"name": "signed_up",
"data": {
"plan": "premium",
"source": "website",
"trial_days": 30
}
}// Create customer with attributes
{
"id": "user_67890",
"email": "[email protected]",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"plan": "enterprise",
"created_at": 1640995200
}
}// Send transactional email
{
"transactional_message_id": "welcome_email",
"to": "[email protected]",
"message_data": {
"name": "Jane",
"activation_link": "https://app.example.com/activate/abc123"
},
"identifiers": {
"id": "user_54321"
}
}// Create customer segment
{
"name": "High Value Customers",
"description": "Customers with lifetime value > $1000",
"segment": {
"and": [
{
"attribute": {
"field": "lifetime_value",
"operator": "gt",
"value": 1000
}
}
]
}
}Error Handling
| Error | Description | Solution | |-------|-------------|----------| | 401 Unauthorized | Invalid API credentials | Verify Site ID and API Key in credentials | | 403 Forbidden | Insufficient permissions | Check API key permissions in Customer.io dashboard | | 404 Not Found | Customer or resource not found | Verify customer ID or resource identifier exists | | 429 Rate Limited | API rate limit exceeded | Implement delays between requests or reduce frequency | | 400 Bad Request | Invalid request data | Validate required fields and data formats | | 500 Server Error | Customer.io service error | Retry request after delay or check Customer.io status |
Development
npm install
npm run build
npm test
npm run lint
npm run devAuthor
Velocity BPA
- Website: velobpa.com
- GitHub: Velocity-BPA
Licensing
This n8n community node is licensed under the Business Source License 1.1.
Free Use
Permitted for personal, educational, research, and internal business use.
Commercial Use
Use of this node within any SaaS, PaaS, hosted platform, managed service, or paid automation offering requires a commercial license.
For licensing inquiries: [email protected]
See LICENSE, COMMERCIAL_LICENSE.md, and LICENSING_FAQ.md for details.
Contributing
Contributions are welcome! Please ensure:
- Code follows existing style conventions
- All tests pass (
npm test) - Linting passes (
npm run lint) - Documentation is updated for new features
- Commit messages are descriptive
Support
- Issues: GitHub Issues
- Customer.io API Docs: Customer.io API Documentation
- Customer.io Community: Customer.io Community Forum
