n8n-nodes-gorgias
v1.0.0
Published
A comprehensive n8n community node for Gorgias e-commerce helpdesk providing 14 resources and 90+ operations for ticket management, customer support, team collaboration, and automation.
Maintainers
Readme
n8n-nodes-gorgias
[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 Gorgias, the leading e-commerce customer support helpdesk built specifically for Shopify, Magento, and BigCommerce merchants. This node provides full access to the Gorgias REST API for managing tickets, customers, messages, tags, rules, teams, and more.
Features
- 14 Resource Categories - Complete coverage of the Gorgias API
- 90+ Operations - Full CRUD operations and specialized actions
- Webhook Triggers - Real-time event notifications via HTTP integrations
- Multi-Channel Support - Email, chat, phone, SMS, and social channels
- E-commerce Integration - View Shopify/Magento/BigCommerce orders directly
- Automation Support - Manage rules, macros, and saved replies
- Team Management - Handle users, teams, and assignments
- Statistics & Analytics - Access performance metrics and CSAT scores
Installation
Community Nodes (Recommended)
- Open your n8n instance
- Go to Settings → Community Nodes
- Click Install a community node
- Enter
n8n-nodes-gorgias - Click Install
Manual Installation
# Navigate to your n8n custom nodes directory
cd ~/.n8n/custom
# Clone the repository
git clone https://github.com/Velocity-BPA/n8n-nodes-gorgias.git
# Install dependencies and build
cd n8n-nodes-gorgias
npm install
npm run build
# Restart n8nDevelopment Installation
# 1. Extract/clone the project
cd n8n-nodes-gorgias
# 2. Install dependencies
npm install
# 3. Build the project
npm run build
# 4. Create symlink to n8n custom nodes directory
mkdir -p ~/.n8n/custom
ln -s $(pwd) ~/.n8n/custom/n8n-nodes-gorgias
# 5. Restart n8n
n8n startCredentials Setup
To use this node, you need Gorgias API credentials:
| Field | Description | Example |
|-------|-------------|---------|
| Domain | Your Gorgias helpdesk subdomain | your-store (from your-store.gorgias.com) |
| API Key | Your Gorgias API key | Found in Settings → REST API |
| Password | Leave empty for API key auth | (empty) |
Getting Your API Key
- Log in to your Gorgias helpdesk
- Go to Settings → REST API
- Click Add API key
- Copy the generated API key
- Note your helpdesk domain (subdomain from the URL)
Resources & Operations
Ticket
| Operation | Description | |-----------|-------------| | Get Many | List tickets with filters | | Get | Get ticket by ID | | Create | Create new ticket | | Update | Update ticket | | Delete | Delete ticket | | Assign | Assign to user | | Unassign | Remove assignee | | Close | Close ticket | | Open | Reopen ticket | | Snooze | Snooze ticket | | Unsnooze | Unsnooze ticket | | Add Tag | Add tag to ticket | | Remove Tag | Remove tag from ticket | | Merge | Merge multiple tickets | | Get Messages | Get messages in ticket | | Get Events | Get ticket events/timeline |
Message
| Operation | Description | |-----------|-------------| | Get Many | List messages | | Get | Get message by ID | | Create | Create message in ticket | | Create Internal Note | Create internal note | | Send | Send outbound message | | Update | Update message | | Delete | Delete message |
Customer
| Operation | Description | |-----------|-------------| | Get Many | List customers | | Get | Get customer by ID | | Create | Create new customer | | Update | Update customer | | Delete | Delete customer | | Add Note | Add note to customer | | Merge | Merge customers | | Get Tickets | Get customer's tickets | | Get Orders | Get orders from e-commerce integrations |
User (Agent)
| Operation | Description | |-----------|-------------| | Get Many | List users/agents | | Get | Get user by ID | | Create | Create new user | | Update | Update user | | Deactivate | Deactivate user | | Get Stats | Get agent statistics |
Team
| Operation | Description | |-----------|-------------| | Get Many | List teams | | Get | Get team by ID | | Create | Create team | | Update | Update team | | Delete | Delete team | | Get Members | Get team members | | Add Member | Add member to team | | Remove Member | Remove member from team |
Tag
| Operation | Description | |-----------|-------------| | Get Many | List all tags | | Get | Get tag by ID | | Create | Create new tag | | Update | Update tag | | Delete | Delete tag |
View
| Operation | Description | |-----------|-------------| | Get Many | List views | | Get | Get view by ID | | Create | Create view | | Update | Update view | | Delete | Delete view | | Get Tickets | Get tickets in view |
Macro (Saved Reply)
| Operation | Description | |-----------|-------------| | Get Many | List macros | | Get | Get macro by ID | | Create | Create macro | | Update | Update macro | | Delete | Delete macro | | Apply | Apply macro to ticket |
Rule
| Operation | Description | |-----------|-------------| | Get Many | List automation rules | | Get | Get rule by ID | | Create | Create rule | | Update | Update rule | | Delete | Delete rule | | Enable | Enable rule | | Disable | Disable rule |
Integration
| Operation | Description | |-----------|-------------| | Get Many | List integrations | | Get | Get integration | | Create | Create HTTP integration | | Update | Update integration | | Delete | Delete integration |
Widget
| Operation | Description | |-----------|-------------| | Get Many | List widgets | | Get | Get widget by ID | | Create | Create widget | | Update | Update widget | | Delete | Delete widget |
Channel
| Operation | Description | |-----------|-------------| | Get Many | List support channels | | Get | Get channel | | Update | Update channel settings |
Statistics
| Operation | Description | |-----------|-------------| | Get Ticket Stats | Get ticket statistics | | Get Agent Stats | Get agent performance | | Get Satisfaction Stats | Get CSAT scores | | Get Response Time Stats | Get response times | | Get Volume Stats | Get ticket volumes |
Satisfaction
| Operation | Description | |-----------|-------------| | Get Many | List satisfaction surveys | | Get Responses | Get survey responses | | Get Stats | Get survey statistics |
Trigger Node
The Gorgias Trigger node listens for webhook events via HTTP integrations:
| Event | Description | |-------|-------------| | Ticket Created | New ticket created | | Ticket Updated | Ticket updated | | Ticket Closed | Ticket closed | | Ticket Opened | Ticket reopened | | Ticket Assigned | Ticket assigned | | Ticket Tagged | Tag added to ticket | | Message Created | New message received | | Message Sent | Message sent | | Customer Created | Customer created | | Customer Updated | Customer updated | | Satisfaction Received | CSAT response received |
Usage Examples
Create a Ticket
{
"resource": "ticket",
"operation": "create",
"subject": "Order Issue",
"channel": "email",
"customerEmail": "[email protected]",
"additionalFields": {
"priority": "high",
"status": "open"
}
}Send a Reply
{
"resource": "message",
"operation": "send",
"ticketId": 12345,
"body": "Thank you for contacting us. We're looking into this issue.",
"channel": "email"
}Apply a Macro
{
"resource": "macro",
"operation": "apply",
"ticketId": 12345,
"macroId": 67890,
"sendMessage": true
}Gorgias Concepts
| Concept | Description | |---------|-------------| | Ticket | A support conversation/case | | Message | Individual message within a ticket | | Customer | End customer/shopper | | User | Agent/team member | | Channel | Communication channel (email, chat, etc.) | | Tag | Ticket categorization label | | Macro | Saved reply template | | Rule | Automation rule | | View | Filtered ticket list | | Integration | External service connection |
Supported Channels
- Chat
- Phone
- SMS
- Facebook Messenger
- Instagram Direct
- Air Call
- Help Center
- Internal Note
- API
Error Handling
The node handles Gorgias API errors gracefully:
- 401 Unauthorized - Invalid API credentials
- 403 Forbidden - Insufficient permissions
- 404 Not Found - Resource not found
- 422 Unprocessable Entity - Validation error
- 429 Too Many Requests - Rate limit exceeded
- 500+ Server Errors - Gorgias server issues
Enable Continue on Fail to handle errors in workflows without stopping execution.
Security Best Practices
- Store credentials securely - Use n8n's credential system
- Limit API key permissions - Use least privilege principle
- Monitor API usage - Check Gorgias dashboard for unusual activity
- Rotate keys periodically - Update API keys regularly
- Use webhooks wisely - Validate incoming webhook data
Development
# Install dependencies
npm install
# Build the project
npm run build
# Watch for changes
npm run dev
# Run linting
npm run lint
# Fix linting issues
npm run lint:fix
# Run tests
npm test
# Run tests with coverage
npm run test:coverageAuthor
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:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Submit a pull request
Support
- Issues: GitHub Issues
- Gorgias API Docs: developers.gorgias.com
- n8n Community: community.n8n.io
