Gainsight Zendesk Integration for Customer Health Alerts
Turn Zendesk ticket trends into timely Gainsight health reviews. Build a durable account-risk workflow that keeps the CSM in control of health-score changes and follow-up CTAs.
TL;DR: what you'll build. A Zendesk ticket spike on a renewing account often sits unseen until the next quarterly business review, because Gainsight's health score only updates on its own schedule. You'll build a Major app that stores weekly Zendesk ticket snapshots next to Gainsight Company and Success Plan data, an agent that explains whether a ticket trend is worth a Customer Success Manager's attention, and a workflow that runs the check every Monday. The CSM reviews the evidence and approves any Gainsight CTA or health-score change before it's written.
The customer health signal support teams miss
Gainsight is the system of record for account health at most B2B SaaS companies, built around Company and Relationship records, Success Plans, and Calls to Action (CTAs) that route follow-up work to a Customer Success Manager (CSM). Zendesk is where support actually happens: Tickets, Organizations, and the conversations a customer has when something is broken.
The two systems rarely talk to each other in real time. A sudden run of support tickets on a renewing account is a leading indicator that something is wrong, but it typically shows up in Gainsight only when a CSM manually checks Zendesk before a quarterly business review (QBR), or when the native connector's scheduled sync finally lands.
That gap matters most in the week before a renewal conversation. This isn't a claim that ticket volume predicts churn on its own. A support surge after a big feature launch can be unrelated to account risk. It's a signal worth a CSM's five minutes, not a reason to auto-downgrade a health score.
This is a cross-industry process owned by the CSM or CS Operations function, which is why it sits at the intersection of two Major hubs: the customer support and success hub and the broader pattern of AI agents for B2B SaaS companies use to run renewal and health workflows. If your team already uses Salesforce Opportunity data for renewal risk, see the sibling Salesforce Zendesk integration for a CRM-centric version of this same idea; this build is for teams whose system of record is Gainsight instead.
The fix isn't a smarter Gainsight health-score formula. It's a durable, reviewable record of the Zendesk trend that a CSM can see before they need it, with a human in the loop before anything in Gainsight changes.
How the Gainsight and Zendesk data should fit together
Zendesk: tickets and organizations
Zendesk's Tickets API exposes GET /api/v2/tickets for listing records, with fields including priority (urgent, high, normal, low), status, organization_id, and requester_id. Pagination defaults to 100 records per page, and Zendesk recommends cursor pagination over offset pagination for large result sets.
The Organizations API (GET /api/v2/organizations) is how you resolve which Zendesk organization maps to which Gainsight account. Useful fields include external_id, domain_names, and organization_fields. An agent role scoped to "users in their own organization" can get a 403 on this endpoint, which matters when you pick the API-key identity for the connector.
Authentication follows Zendesk's security and auth guide: OAuth 2.0 bearer tokens are the recommended method over legacy basic auth with an API token. Rate limits are plan-based per-minute quotas; a request that exceeds the limit gets a 429 with a Retry-After header telling you how long to wait.
The honest gotcha: ticket counts alone don't carry severity context unless you also pull the priority field, and organization-level rollups require a second API call per account, which adds up fast across a large portfolio.
Gainsight: Company, Success Plans, and CTAs
Gainsight's API overview separates synchronous APIs (Company, Person, custom objects, CTAs, tasks, Success Plans) from asynchronous bulk APIs for large CSV-style loads. All of it lands in Gainsight's Matrix Data Platform (MDA).
The Company API documents POST /v1/data/objects/Company to create, POST /v1/data/objects/query/Company to query, and PUT /v1/data/objects/Company?keys=... to update. Success Plan APIs let you read which accounts have an active plan, which is the context an agent needs: a rising ticket count on an account with an active Success Plan is a different conversation than the same trend on an account with no plan at all.
The CTA API documents POST /v2/cockpit/cta/ to create a Call to Action, PUT /v2/cockpit/cta/ to update one, and POST /v2/cockpit/cta/list to fetch existing ones. Every create or update needs an external reference ID, which is exactly the field you use as an idempotency key so the workflow never creates the same CTA twice.
Authentication uses an admin-generated access key sent in the accesskey header, or M2M OAuth through Connectors 2.0. Gainsight's documented rate-limit guidance is roughly 100 synchronous calls per minute and 100,000 per day; exact fields and whether your tenant allows writes to the health score depend on your Gainsight package, so confirm both with your tenant admin before building the write path.
What Gainsight's native Zendesk connector already does, and doesn't
Gainsight ships a Zendesk Connector under Connectors 2.0 that can sync Zendesk tickets into Gainsight's Case object and users into the User object, with organizations and brands landing in custom objects. It's a real option for raw data sync, and you may already have it configured.
Two things it does not do, per the official page: it does not import ticket comments, and it does not import Zendesk custom objects. If your health-alert workflow needs the content of a ticket conversation (not just its count and priority), the native connector alone won't get you there. It also runs on a fixed job schedule an admin configures, not a decision workflow with a review step before anything changes in Gainsight.
Where GDPR applies
Both systems hold customer contact and usage data, some of it tied to identifiable people in the EU. GDPR requires that personal data processed on a customer's behalf be handled on documented instructions, with the ability to locate, correct, or delete a specific record on request. The practical requirement for this build is that the app's stored ticket snapshots and risk reviews need the same deletion and export support as the source systems, not a silent copy that outlives the original record.
Architecture: app, agent, workflow
Keep the three pieces separate so each one does only the job it's good at.
The workflow is deterministic and scheduled. It runs every Monday morning, fetches Zendesk tickets and organizations, fetches Gainsight Company and Success Plan context, computes the week-over-week delta per account, and writes a snapshot. It only calls the agent for accounts that cross a configured threshold. No judgment happens here, which is why it can run unattended.
The agent only does the one step that needs a model: looking at a flagged account's ticket counts, priority mix, and Success Plan status, and writing a plain-language rationale for whether this looks like a real risk signal or likely noise (a feature-launch spike, a single verbose customer, a one-off outage). It never writes to Gainsight directly.
The app is the CSM's review surface and the system's memory. It holds the account mapping, the weekly snapshots, and the review queue with every decision logged. Without the app, the agent would have to re-fetch and re-reason about history on every run; with it, each week's check only needs the current data plus last week's stored snapshot.

Gainsight and Zendesk customer health alert architecture on Major
A useful mental model: the workflow is the doorbell, not the conversation. A webhook or schedule just rings when something might need attention; it doesn't decide what to do about it. That decision stays with the agent and, ultimately, the CSM.
Build the Gainsight-Zendesk health alert on Major
- Connect Zendesk and Gainsight once, under IT's control. Major has an official Zendesk connector; for Gainsight, since there's no listed marketplace connector, set it up as a custom API connector using the base URL from your tenant and the access-key header auth documented in the Gainsight API overview. Both credentials live in Major's central credential store, scoped to these two connectors only, so no API key ever sits in a prompt or in application code. You should see both connectors listed as "Connected" in the credential store, each with its own scope.
- Build the app with three managed tables:
account_map(Zendesk organization ID, Gainsight Company ID, account owner, active flag),ticket_snapshot(account, window start, window end, ticket count, priority counts, fetched timestamp, pagination cursor), andrisk_review(trend summary, evidence, agent rationale, reviewer, decision, timestamps, idempotency key). Add a CSM-facing screen listing flagged accounts with their evidence. You should see a table of flagged accounts with a status column (open, approved, dismissed).
Example prompt to build it: "Build an app with three tables: accountmap linking a Zendesk organization ID to a Gainsight Company ID with an owner and active flag; ticketsnapshot storing weekly ticket counts and priority breakdowns per account; and riskreview storing the agent's rationale, the CSM's decision, and an idempotency key. Give me a review screen listing open riskreview rows with their evidence."
- Add the agent and scope its job narrowly: read a flagged account's current and prior ticketsnapshot rows plus its Gainsight Success Plan status, and write a short rationale to riskreview explaining whether the trend looks like genuine account risk. It should never call the Gainsight write endpoints itself. You should see a rationale field populated for each flagged account, in plain language a CSM could forward to a manager.
Example prompt: "When a ticketsnapshot shows a week-over-week increase above the configured threshold for an account, read its active Success Plan status from Gainsight, then write a 2-3 sentence rationale to riskreview explaining whether this looks like a real risk signal or likely noise, citing the specific ticket counts and priority mix."
- Set the workflow trigger: a weekly schedule, Monday 07:00 in the tenant's local time. Steps are fetch Zendesk tickets and organizations (paginated), fetch Gainsight Company and Success Plan data, match accounts via account_map, compute the trend, save the snapshot, and call the agent only for accounts above the threshold. You should see a workflow run log showing one execution per Monday with a count of accounts checked and accounts flagged.
- Test it in a sandbox Gainsight tenant or against a handful of real accounts with the Gainsight write step disabled, confirming the app correctly matches Zendesk organizations to Gainsight companies and that the snapshot math (current week minus prior week) is right. You should see matched accounts with no "unmapped organization" errors for your test set.
- Roll out with permissions: scope the agent and workflow so only the CTA create/update endpoints are reachable, not Company deletes or bulk operations. Give CSMs access to the review screen and restrict who can approve a write. You should see the review screen enforcing that only CSMs assigned to an account (or their manager) can approve its risk_review row.
The deterministic parts here (fetch, match, compute, snapshot) are exactly the kind of repeatable work this piece and the broader governed software factory pattern push into an app instead of asking a model to re-reason through it every Monday. Reason once about the trend logic, then run it for every account, every week, without spending a token on arithmetic a database can do.
Governance, exceptions and what to measure
Governance for this build rests on four controls tied directly to the process:
- SSO and role-based access: only CSMs and their managers can see the review screen and approve a decision; CS Operations can configure thresholds.
- Scoped credentials: the Zendesk and Gainsight credentials live in Major's credential proxy, scoped to read tickets/organizations and read/write CTAs respectively, never embedded in the agent's prompt or the app's code.
- Audit logs: every risk_review row records who approved or dismissed it and when, which is what you'd show a manager asking why an account's health changed.
- Managed database and storage: the accountmap, ticketsnapshot, and risk_review tables live in Major's managed database with normal backup and versioned deploys, not a spreadsheet someone forgets to update.
Approval is required before any Gainsight write. The agent drafts; it never submits a CTA or touches a health score on its own.
Failure handling and edge cases
Rate limits and errors are expected, not exceptional. A 429 from Zendesk means back off and retry after the Retry-After window; a failed Gainsight call should retry with backoff rather than silently skipping an account.
Partial syncs happen when Zendesk pagination gets interrupted mid-run. Store the pagination cursor in ticket_snapshot so a retry resumes rather than re-counting from zero, which also prevents duplicate counts.
Duplicate events are handled by the idempotency key on the Gainsight CTA write: if the workflow retries after a timeout, it checks whether a CTA with that external reference ID already exists before creating a new one.
Stale or missing account mappings go straight to a person. If a Zendesk organization has no matching Gainsight Company in account_map, the app should flag it for a human to map rather than guessing based on name similarity.
The agent must never auto-update a Gainsight health score or create a CTA without a logged CSM approval, and it must never guess an account mapping when one isn't already configured.
Worked example: review a rising ticket trend before the QBR
For example, say a CS team manages 150 B2B SaaS accounts, with one CSM covering roughly 30 accounts each. Consider one account, a mid-market customer with 40 named users and an active Gainsight Success Plan for a Q2 expansion.
In the prior 7-day window, that account had 4 open Zendesk tickets, all normal priority. In the current window, the snapshot shows 9 open tickets, including 2 flagged high priority, a jump the workflow's threshold rule (configured here as a 50% increase or any new high-priority ticket) catches immediately.
The agent reads both snapshot rows plus the active Success Plan status and writes: "Ticket volume more than doubled week over week (4 to 9), with 2 new high-priority tickets versus zero last week. This account has an active expansion Success Plan, so a support disruption now is worth a check before the Q2 conversation. Recommend reviewing with the account owner before the renewal call."
The CSM sees this in the app's review queue alongside the raw numbers, spends about two minutes reading it, and decides to open a CTA in Gainsight for "Review support trend before QBR" rather than wait for the scheduled business review. The workflow writes that CTA with an idempotency key so a retry never creates a duplicate.
Scaled across 150 accounts checked weekly, assume roughly 8 accounts cross the threshold in a typical week. Without this workflow, a CSM might catch a ticket spike only by manually opening Zendesk during QBR prep, if at all; with it, the same 8 accounts get a drafted rationale waiting in the queue every Monday morning, each reviewable in under five minutes instead of requiring a cross-system investigation. These numbers are illustrative of how the build behaves, not a measured result from any customer.
What to measure
Track a handful of numbers the CS team already cares about:
- Time to detection: days between a ticket trend starting and a CSM seeing it, versus waiting for the next scheduled business review.
- Review turnaround: how long a flagged account sits in the queue before a CSM approves or dismisses it.
- False-flag rate: the share of flagged accounts a CSM dismisses as noise, which tells you whether the threshold needs tuning.
- CTA follow-through: whether approved CTAs lead to a logged outreach or action in Gainsight within an agreed window.
- Unmapped-account count: how many Zendesk organizations still lack a Gainsight Company mapping, which shows whether account_map needs maintenance.
None of these numbers are guaranteed outcomes. Track them for a few weeks against your own baseline before deciding whether the threshold or cadence needs adjusting.
Frequently asked questions
How do you connect Gainsight and Zendesk?
Gainsight's native Zendesk Connector under Connectors 2.0 can sync tickets, users, and organizations into Gainsight objects on a scheduled job. For a health-alert workflow with a review step, a Major workflow instead pulls Zendesk tickets and organizations directly, matches them to Gainsight accounts, and stores a weekly snapshot an agent and CSM can act on.
Can Zendesk ticket trends update a Gainsight health score?
They can prompt a review, but this build never updates a score or creates a CTA automatically. The agent drafts a rationale, and a CSM has to approve it before anything is written to Gainsight.
Which Zendesk and Gainsight records are needed for health alerts?
You need Zendesk Tickets and Organizations for the raw signal, and Gainsight Company or Relationship records plus Success Plans (and optionally CTAs) for account context and follow-up. The exact mapping between a Zendesk organization and a Gainsight account is tenant-specific and must be configured.
How often should a Gainsight-Zendesk health workflow run?
Weekly is the cadence used in this build, matched to how often ticket trends meaningfully shift and to Zendesk and Gainsight's rate limits. Tune the schedule and lookback window to your team's operating cadence and account volume.
Does Gainsight's Zendesk connector import ticket comments?
No. Gainsight's official connector documentation states that ticket comments and Zendesk custom objects are not imported by that connector. A custom API pipeline like the one in this build can pull additional fields, but confirm current behavior with your tenant before relying on it.
What happens if an account can't be matched between the two systems?
The workflow logs it as unmapped rather than guessing. A person adds the mapping to account_map, and the account picks up in the next scheduled run.

What runs automatically versus what a CSM approves
Before you go live
Run through this list with the CSM lead and whoever owns the Gainsight tenant before the workflow goes live on real accounts. Each item maps back to a specific failure mode covered above, from an unscoped credential to a duplicate CTA write.
- [ ] Zendesk connector scoped to read-only access on Tickets and Organizations
- [ ] Gainsight credential scoped to the specific Company, Success Plan, and CTA endpoints you need, confirmed with your tenant admin
- [ ] account_map populated and reviewed for your highest-ARR accounts first
- [ ] Threshold rule tested against at least one real prior-week spike
- [ ] CSM review screen tested end to end with the Gainsight write step disabled
- [ ] Idempotency key confirmed to prevent duplicate CTA creation on retry
- [ ] Alerting set up for failed Zendesk or Gainsight API calls
- [ ] Named owner for maintaining account_map as accounts are added or renamed
Once every box is checked, run the workflow against a small slice of real accounts for one full week before opening the review screen to the whole CS team. That gives you one live cycle to catch a bad mapping or a miscalibrated threshold before it reaches every CSM's queue.
More use cases by tool: More Gainsight use cases, More Salesforce use cases, More Zendesk use cases.
More customer support & success AI automation use cases
- AI agents for customer support & success: every use case by tool
- Automate Amplitude usage-drop churn-risk alerts into Gainsight with AI
- Automate ticket triage and routing across Zendesk and Intercom
- Automate renewal-risk alerts with Salesforce Opportunity and Zendesk ticket data
Start building on Major
Build a customer-health review app that turns Zendesk ticket trends into explainable, CSM-approved Gainsight actions.
Related articles
- Automate Brex Spend Exceptions in NetSuite with AI
- Apollo.io Salesforce Integration for Lead Routing
- Automate Jira-Intercom Bug Escalation With AI
About the author
Ritvij Gautam is Head of Growth at Major.
Last reviewed November 23, 2026 by Ritvij Gautam.
Frequently asked questions
- How do you connect Gainsight and Zendesk?
- Gainsight's native Zendesk Connector under Connectors 2.0 can sync tickets, users, and organizations into Gainsight objects on a scheduled job. For a health-alert workflow with a review step, a Major workflow instead pulls Zendesk tickets and organizations directly, matches them to Gainsight accounts, and stores a weekly snapshot an agent and CSM can act on.
- Can Zendesk ticket trends update a Gainsight health score?
- They can prompt a review, but this build never updates a score or creates a CTA automatically. The agent drafts a rationale, and a CSM has to approve it before anything is written to Gainsight.
- Which Zendesk and Gainsight records are needed for health alerts?
- You need Zendesk Tickets and Organizations for the raw signal, and Gainsight Company or Relationship records plus Success Plans (and optionally CTAs) for account context and follow-up. The exact mapping between a Zendesk organization and a Gainsight account is tenant-specific and must be configured.
- How often should a Gainsight-Zendesk health workflow run?
- Weekly is the cadence used in this build, matched to how often ticket trends meaningfully shift and to Zendesk and Gainsight's rate limits. Tune the schedule and lookback window to your team's operating cadence and account volume.
- Does Gainsight's Zendesk connector import ticket comments?
- No. Gainsight's official connector documentation states that ticket comments and Zendesk custom objects are not imported by that connector. A custom API pipeline like the one in this build can pull additional fields, but confirm current behavior with your tenant before relying on it.
- What happens if an account can't be matched between the two systems?
- The workflow logs it as unmapped rather than guessing. A person adds the mapping to account_map, and the account picks up in the next scheduled run.