Gorgias-connector

Verbind je Gorgias-helpdesk met Brevo voor supportgedreven klantbetrokkenheid, post-ticket-marketingflows en uniforme customer experience-analytics via Tajo.

Overzicht

EigenschapWaarde
PlatformGorgias
CategorieSupport
SetupcomplexiteitEenvoudig
Officiële integratieNee
Gesynchroniseerde dataKlanten, Tickets, Events
API-typeREST API
AuthenticatieAPI-sleutel + e-mail (Basic Auth)
Base URLhttps://{domain}.gorgias.com/api/

Functies

  • Ticket-event-sync - Stuur events voor ticket-aanmaak, -oplossing en CSAT door naar Brevo-timelines
  • Verrijking van klantprofielen - Synchroniseer Gorgias-klantdata inclusief tags en custom velden naar Brevo
  • Post-support-campagnes - Trigger Brevo-workflows na ticketoplossing voor opvolging of upsell
  • Tevredenheidstracking - Synchroniseer CSAT-surveyresultaten als Brevo-contactattributen
  • Tag-gebaseerde segmentatie - Spiegel Gorgias-klanttags naar Brevo-lijstlidmaatschappen
  • Macro- en regel-events - Track geautomatiseerde acties voor operationele analytics

Vereisten

Voordat je begint, zorg dat je beschikt over:

  1. Een Gorgias-account met admin-toegang
  2. Je Gorgias-subdomein (bijv. yourstore.gorgias.com)
  3. Een API-sleutel en bijbehorend e-mailadres
  4. Een Brevo-account met API-toegang
  5. Een Tajo-account met een actief abonnement

Authenticatie

Gorgias gebruikt HTTP Basic Authentication met je account-e-mail en API-sleutel.

Een API-sleutel aanmaken

  1. Log in op je Gorgias-dashboard
  2. Ga naar Settings > REST API
  3. Klik op Create API Key (of kopieer een bestaande sleutel)
  4. Noteer je API base URL: https://{domain}.gorgias.com/api/
Terminal window
# Basic Auth: email as username, API key as password
curl -X GET "https://yourstore.gorgias.com/api/customers" \
-u "[email protected]:$GORGIAS_API_KEY" \
-H "Content-Type: application/json"

Rechten van API-sleutels

Gorgias-API-sleutels hebben volledige toegang tot je accountdata. Er is geen scope-gebaseerd rechtenmodel. Bescherm je API-sleutel en rouleer hem regelmatig.

Verbinden met Tajo

Terminal window
tajo connectors install gorgias \
--domain yourstore.gorgias.com \
--api-key $GORGIAS_API_KEY

Configuratie

Basisopzet

connectors:
gorgias:
enabled: true
domain: "yourstore.gorgias.com"
sync:
customers: true
tickets: true
satisfaction_surveys: true
tags: true
lists:
all_support_contacts: 35
satisfied_customers: 36
dissatisfied_customers: 37

Veldmapping

Koppel Gorgias-klant- en ticketvelden aan Brevo-contactattributen:

field_mapping:
# Customer fields
id: GORGIAS_ID
email: email
name: FIRSTNAME
phone: SMS
# Support metrics
nb_tickets: TICKET_COUNT
last_ticket_date: LAST_SUPPORT_DATE
last_ticket_channel: LAST_SUPPORT_CHANNEL
avg_response_time: AVG_RESPONSE_TIME
# CSAT data
last_satisfaction_score: CSAT_SCORE
satisfaction_count: CSAT_RESPONSES
# Custom fields
customer_type: CUSTOMER_TYPE
vip_status: VIP_STATUS

Event-mapping

event_mapping:
ticket.created: SUPPORT_TICKET_OPENED
ticket.closed: SUPPORT_TICKET_RESOLVED
ticket.reopened: SUPPORT_TICKET_REOPENED
satisfaction_survey.created: CSAT_SURVEY_SENT
satisfaction_survey.responded: CSAT_SUBMITTED
customer.created: SUPPORT_CUSTOMER_CREATED

API-endpoints

Tajo integreert met de volgende Gorgias REST API-endpoints:

EndpointMethodeDoel
/api/customersGETKlanten opvragen
/api/customers/{id}GETKlant ophalen
/api/customersPOSTKlant aanmaken
/api/customers/{id}PUTKlant bijwerken
/api/ticketsGETTickets opvragen
/api/tickets/{id}GETTicket ophalen
/api/tickets/{id}/messagesGETTicketberichten opvragen
/api/tagsGETTags opvragen
/api/satisfaction-surveysGETCSAT-surveys opvragen
/api/satisfaction-surveys/{id}GETSurvey ophalen
/api/usersGETAgents opvragen
/api/integrationsGETIntegraties opvragen
/api/eventsGETEvents opvragen
/api/customers/{id}/custom-fieldsGETCustom field-waarden ophalen

Codevoorbeelden

Connector initialiseren

import { TajoClient } from '@tajo/sdk';
const tajo = new TajoClient({
apiKey: process.env.TAJO_API_KEY,
brevoApiKey: process.env.BREVO_API_KEY
});
await tajo.connectors.connect('gorgias', {
domain: 'yourstore.gorgias.com',
apiKey: process.env.GORGIAS_API_KEY
});

Klanten naar Brevo synchroniseren

await tajo.connectors.sync('gorgias', {
type: 'incremental',
resources: ['customers'],
since: '2024-01-01',
batchSize: 30
});
const status = await tajo.connectors.status('gorgias');
console.log(status);
// {
// connected: true,
// lastSync: '2024-03-15T17:00:00Z',
// customersCount: 14200,
// ticketsTracked: 28600,
// csatResponses: 3400
// }

Ticket-events afhandelen via HTTP-integratie

// Gorgias can send HTTP requests via Rules or HTTP integrations
app.post('/webhooks/gorgias', async (req, res) => {
const event = req.body;
await tajo.connectors.handleEvent('gorgias', {
type: 'ticket.updated',
payload: {
ticketId: event.ticket_id,
status: event.status,
customerEmail: event.customer?.email,
channel: event.channel,
tags: event.tags,
satisfaction: event.satisfaction
}
});
res.status(200).send('OK');
});

Post-oplossing-campagne

// Trigger a follow-up email after a support ticket is resolved
tajo.connectors.on('gorgias', 'ticket.closed', async (event) => {
if (event.satisfaction_score >= 4) {
await tajo.campaigns.trigger('post-support-upsell', {
email: event.customer.email,
params: {
agent_name: event.assignee.name,
ticket_subject: event.subject,
resolution_time: event.resolution_time
}
});
}
});

CSAT-data synchroniseren

// Sync satisfaction survey results to Brevo attributes
await tajo.connectors.sync('gorgias', {
type: 'incremental',
resources: ['satisfaction_surveys'],
since: '2024-01-01'
});

Ratelimits

Gorgias hanteert ratelimits per account:

LimiettypeWaarde
API-ratelimit2 requests per seconde
Burst-toegestaanTot 5 requests in korte bursts
Paginatie30 items per pagina (standaard), max 100

Paginatiestrategie

Gorgias gebruikt cursor-gebaseerde paginatie met cursor- en limit-parameters. Tajo regelt dit automatisch en vraagt tot 100 items per pagina op voor maximale efficiëntie.

Gorgias geeft 429 Too Many Requests terug wanneer ratelimits worden overschreden.

Probleemoplossing

Veelvoorkomende problemen

ProbleemOorzaakOplossing
401 UnauthorizedOngeldig e-mailadres of API-sleutelVerifieer inloggegevens in Gorgias Settings > REST API
404 Not FoundOngeldig endpoint of resource-IDControleer of de API base URL je subdomein bevat
Klanten ontbrekenGeen e-mail in recordGorgias vereist e-mail voor klantmatching
Tags synchroniseren nietTags niet toegewezen aan klantenVerifieer dat tags op klantobjecten staan, niet alleen op tickets
Trage syncLage ratelimitGorgias beperkt tot 2 req/s; volledige syncs duren langer

Debugmodus

connectors:
gorgias:
debug: true
log_level: verbose
log_api_calls: true

Verbinding testen

Terminal window
tajo connectors test gorgias
# ✓ API authentication successful
# ✓ Customer list accessible
# ✓ Ticket data readable
# ✓ CSAT surveys available
# ✓ Tags listable

Best practices

  1. Gebruik HTTP-integraties voor realtime - Configureer Gorgias Rules om HTTP-requests naar Tajo te sturen bij ticket-events
  2. Synchroniseer CSAT-data regelmatig - Gebruik satisfactionscores om re-engagementcampagnes aan te sturen
  3. Koppel tags aan segmenten - Vertaal Gorgias-klanttags naar Brevo-lijstlidmaatschappen
  4. Ga zorgvuldig om met paginatie - Met 2 req/s-limieten moet je rekening houden met langere sync-tijden voor grote datasets
  5. Koppel aan e-commercedata - Combineer Gorgias-supportdata met Shopify-orderdata in Brevo
  6. Rouleer API-sleutels - Omdat Gorgias-sleutels volledige toegang hebben, rouleer je ze periodiek

Beveiliging

  • Basic Auth - E-mail en API-sleutel over HTTPS
  • Alleen HTTPS - Alle API-communicatie versleuteld via TLS 1.2+
  • Sleutels met volledige toegang - Geen granulaire scoping (bescherm sleutels zorgvuldig)
  • IP-allowlisting - Beschikbaar op hogere Gorgias-plannen
  • Versleutelde opslag - API-inloggegevens versleuteld opgeslagen in Tajo
  • SOC 2-compliance - Het Gorgias-platform is SOC 2 Type II-gecertificeerd

Gerelateerde resources

Subscribe to updates

developer-docs

Drop your email or phone number — we'll send you what matters next.

auto-detect
AI-assistent

Hallo! Stel me vragen over de documentatie.