Tickets in Zendesk or Salesforce
A low score can open a ticket where your support team already works: a Zendesk ticket or a Salesforce Case. It works on every platform that feeds SurveyCX (Amazon Connect, Genesys Cloud, Zoom Contact Center, the ingest endpoint), beside or instead of the Amazon Connect Task and Case.
What the ticket contains
- Subject: Low survey score: 1.5 of 5 (Ann Lee).
- Body: the survey, channel, queue and agent; the scores (CSAT, NPS, effort); every question and answer, including the customer's comment; the contact id and the platform; a link to the response on the results page.
- Zendesk: priority high, the tags you choose (
surveycx, low-score by default), external_id = surveycx-<contact id>, and the group when you give a group id. The requester is the user the API token belongs to.
- Salesforce: a Case with Priority High, Type Problem, the Origin you choose (Web by default) and, optionally, a record type.
The customer's phone number or email address is not sent: the ticket is for the team, and the customer's address stays in the stack's table. If you want the ticket linked to the customer's record in your CRM, the body carries the contact id and the Connect contact link, which your CRM's telephony integration already knows.
The ticket's link is kept on the response's follow-up and shown on the results page (Zendesk ticket 1234, Salesforce case 500…). One ticket per response: a follow-up that already has a ticket never gets another, however many times the closed loop runs for that response (it runs again when the agent is attributed late).
Zendesk setup
- In Zendesk Admin Center, Apps and integrations › APIs › Zendesk API, enable Token access and add an API token. Note the agent email it belongs to.
- In SurveyCX, Settings › Ticketing, choose Zendesk, enter the subdomain (
acme for acme.zendesk.com), that email and the token; optionally a group id (the number in the group's URL) and tags.
- Save, then Open a test ticket: a ticket titled Low survey score: 1.5 of 5 (Test agent) appears in Zendesk and opens in a new tab.
Salesforce setup
- In Setup, create an External Client App (or a Connected App) with OAuth enabled, the scope Manage user data via APIs (api), and Enable Client Credentials Flow. Under its policies set the Run As user: an integration user whose profile can create Cases. Copy the consumer key and consumer secret.
- In SurveyCX, Settings › Ticketing, choose Salesforce, enter your My Domain host (
acme.my.salesforce.com, a sandbox is acme--dev.sandbox.my.salesforce.com), the consumer key and secret, the Case origin and, if your org uses Case record types, the record type id.
- Save, then Open a test ticket.
The token is requested from your My Domain (/services/oauth2/token, grant_type=client_credentials) and kept in the function for 25 minutes; a 401 refreshes it. Cases are created through the REST API, version 62.0.
Where the secrets live
The Zendesk API token and the Salesforce consumer secret are stored in your account's AWS Systems Manager Parameter Store as SecureString parameters, like the other secrets, and shown masked once saved. See Security and data.
The outcome, written back
When the follow-up is closed in SurveyCX (results page, phone page, a Connect Task completing, a partner's call), the ticket gets an internal note with the outcome (Follow-up done in SurveyCX: recovered (by Sam), 3 h after the low score, plus the supervisor's note) and is solved in Zendesk or set to Closed in Salesforce. A dismissed follow-up closes the ticket with a dismissed note. Untick write the outcome to the ticket under Settings › Ticketing to leave tickets to the help desk's own workflow. The response shows when the ticket was closed.
Failures
A ticket that cannot be created (wrong token, a required field in your Zendesk or Salesforce configuration, the provider down) is logged with the contact id in the API or flow function's log and the survey path continues; the low score is still flagged, the Task and Case still open, and the alert still goes out. Nothing is retried, because the response is complete; open the ticket by hand from the results page link if it matters.
Cost
Nothing from SurveyCX or AWS beyond the function's own run time. Zendesk and Salesforce count tickets and API calls against your own plan's limits (one API call per ticket, plus one token call per 25 minutes on Salesforce).
Current as of version 0.9.0. See the release notes for what changed since.