enhancementgood first issueintegrationnew-featurenew-integration
Repository metrics
- Stars
- (1,930 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
Description
Add Gorgias integration to sync e-commerce helpdesk tickets, customers, and messages into CORE.
Reference Implementations
Existing Integrations (use as templates)
integrations/hubspot/- Similar customer support systemintegrations/slack/- Messaging integration referenceintegrations/linear/- Ticket tracking integration
Required Files Structure
integrations/gorgias/
├── src/
│ ├── index.ts # Main entry, OAuth spec
│ ├── schedule.ts # Sync logic
│ ├── utils.ts # Gorgias API utilities
│ ├── account-create.ts # API key setup
│ └── create-activity.ts # Activity formatting
├── package.json
├── tsup.config.ts
└── README.md
Gorgias API Integration
OAuth Setup
- Use HTTP Basic Authentication (username + password from API settings)
- Credentials available at:
https://{domain}.gorgias.com/app/settings/api - Base URL:
https://{domain}.gorgias.com/api/
Key Endpoints
GET /api/tickets- List all ticketsGET /api/tickets/{id}- Get a specific ticketGET /api/tickets/{id}/messages- Get ticket messagesGET /api/customers- List all customersGET /api/customers/{id}- Get a specific customerGET /api/users- List all support agentsGET /api/tags- List all tagsGET /api/events- List eventsPOST /api/tickets- Create a ticket
Events to Track
- Tickets - Created, updated, resolved, closed, reopened
- Messages - Customer messages, agent replies, internal notes
- Customers - New customers, customer updates
- Tags - Tags applied/removed from tickets
- Assignments - Ticket assignments to agents/teams
Implementation Tasks
- Set up basic integration structure following
integrations/github/src/index.tspattern - Implement HTTP Basic Auth flow in
account-create.ts - Create API utilities in
utils.tswith Gorgias REST API client - Implement sync logic in
schedule.tsfor tickets, customers, messages - Convert Gorgias events to CORE activity format
- Add error handling and rate limiting
- Create integration documentation
- Add to
integrations/README.md
Technical Notes
- RESTful API with JSON responses
- HTTP Basic Authentication using credentials from Settings > REST API
- Supports webhooks (HTTP integrations) for real-time event notifications
- Designed for e-commerce helpdesk use cases (deep Shopify, Magento, BigCommerce integrations)
- Pagination via
cursorparameter - Rate limits apply per account
- Only admin users can access API settings
Resources
- Gorgias REST API Documentation
- Gorgias Developers Portal
- Gorgias Help Center
- Gorgias API Postman Collection
- HTTP Integrations (Webhooks)
Labels
enhancement, integration, new-feature