SurveyCX for Amazon Connect

Help center › NICE CXone, Five9, Talkdesk and Dynamics 365 connectors

NICE CXone, Five9, Talkdesk and Dynamics 365 connectors

Four more platforms reach SurveyCX without middleware. None of them has an event feed into AWS the way Genesys Cloud does, so these connectors read each platform's own API every five minutes for the interactions that ended since the last read (and, on Five9, can also take its event feed). The customer is then invited by SMS, email or WhatsApp to the hosted web survey, and the response is attributed to the agent and queue; the in-conversation surveys stay an Amazon Connect feature. Deploy or update the stack with Connectors=enabled, then paste credentials under Settings › Connectors; Test fetches a token and one small read.

Common behaviour: a watermark per platform with a ten-minute overlap, so nothing is missed and nothing is invited twice (a contact already seen is only enriched); a new connector starts an hour back; a connector that was off for days catches up a day per run; a run that cannot reach the platform leaves the error on the card and the surveycx-connectors-errors alarm; every contact goes through the usual frequency cap, send window, suppression list and the survey's targeting by queue, direction and campaign. Credentials live in Parameter Store and are shown masked.

NICE CXone

What it reads: the Reporting API's completed contacts (GET …/contacts/completed?updatedSince=), all media: phone calls, chats, SMS, social and digital become voice or chat contacts, emails email; voicemail, fax and work items are skipped, as are abandoned contacts and contacts no agent handled. Agent id and name, skill (as the queue), team, direction (isOutbound), the customer's number (fromAddress inbound, toAddress outbound) or email address, disposition id and end reason travel with the contact. A CXone campaign groups skills for reporting and is not treated as a dialler campaign; the connector does not flag Personal Connection calls, so a survey that must avoid dialler calls should target inbound only.

Setup: in CXone, register a back-end application in DEVone (client id and secret) and generate an Access Key (id and secret key) on a user with reporting permissions; paste all four. The connector authenticates at cxone.niceincontact.com/auth/token, finds your API endpoint from the token, and uses Reporting API version 30.0 unless you set another. FedRAMP tenants set the issuer to https://cxone-gov.niceincontact.com.

Five9

Push (recommended when licensed): Five9's Events Subscription Service posts interaction events to an HTTPS endpoint. In the Admin Console create a subscription: Delivery HTTPS POST to the webhook URL shown on the card (<SiteUrl>/api/connectors/five9/events), a header attribute X-SurveyCX-Token equal to the events token you saved (any long random string), event group InteractionEvent, event Dispositioned, with the field attached_variables selected. Each event names the call, the agent (id, name), the skill, the campaign, the disposition and, through the attached variables, ANI, DNIS, the call type and the start and end times; a Customer.email variable becomes the email address. Duplicates from Five9 are harmless.

Pull (no licence): an API user with the Reporting Web Services permission. Every five minutes the connector runs getCallLogReportCsv over the Configuration Web Services API (api.five9.com, api.five9.eu or api.five9.ca) for the window and reads the columns by name (CALL ID, TIMESTAMP, CAMPAIGN, CALL TYPE, AGENT, AGENT NAME, SKILL, DISPOSITION, ANI, DNIS, CALL LENGTH); a domain whose call log lacks a column simply loses that field. Rows without an agent are skipped.

Direction and campaigns: Inbound and queue callbacks are inbound or callback; Manual is outbound without a campaign; autodial, predictive, power, progressive and preview calls are outbound with the Five9 campaign as the campaign id, so only a survey that opts in to campaigns reaches them. Mode on the card chooses push, pull or both.

Talkdesk

What it reads: the Explore API's calls report (POST /data/reports/calls/jobs, then the file when the job is done). Talkdesk's reports trail real time by about fifteen minutes, so each run asks for a window ending fifteen minutes ago, and a job that is still running when the function's time is up is finished by the next run. Rows of type inbound and outbound with an agent become contacts (agent id, name, the first ring group as the queue, the customer's number, disposition, talk time); missed, abandoned and voicemail rows are skipped. Talkdesk's calls report carries no customer email and no dialler flag; Advanced Dialer calls appear as outbound calls without a campaign.

Setup: an OAuth client with the client-credentials grant and the scopes data-reports:read and data-reports:write (created under your Talkdesk partner project, or ask Talkdesk); paste the account name (the part before .talkdeskid.com), client id and secret, and the region (us, eu, ca or uk). Talkdesk allows fifteen report jobs at a time per account; the connector uses one.

Instant alternative, no polling: a Talkdesk Connections automation ("An inbound call ends", "An outbound call ends") can post straight to SurveyCX's ingest endpoint with the event fields, for example a JSON body of {"contacts":[{"contactId":"{{call_id}}","channel":"voice","agent":"{{agent.email}}","agentName":"{{agent.name}}","queue":"{{tags}}","phone":"{{contact_phone_number}}","email":"{{contact.email}}","platform":"talkdesk","direction":"inbound"}]} to POST <SiteUrl>/api/ingest/<key>/contacts. That path needs an ingest key and no connector.

Microsoft Dynamics 365 Contact Center

What it reads: closed conversations from the Dataverse Web API (msdyn_ocliveworkitems with statecode eq 1, modified since the watermark), expanded with the agent, the queue, the customer contact record and the voice and SMS engagement context rows that hold the customer's number. Voice and video conversations become voice contacts, chat, SMS, WhatsApp and the social channels chat. The customer's number comes from the engagement context (the from number on inbound, the to number on outbound), else from the contact record's mobile or phone; the email from the contact record. msdyn_isoutbound and the conversation type set the direction; the predictive dialler type (4) marks the contact as a campaign contact, so it is surveyed only by surveys that opted into campaigns. Transfer count, handle time, disposition and the Dynamics channel arrive as contact attributes.

Setup (pull): register an application in Microsoft Entra (client credentials), create an application user for it in the Power Platform admin centre with a security role that reads conversations, sessions, participants, engagement contexts, contacts, queues and users, and paste the organisation URL (https://org.crm.dynamics.com), tenant id, client id and secret. The connector asks Entra for a token with the scope <org>/.default and reads every five minutes. If your organisation rejects one of the relationship names used in the expand (a 400), the connector reads the same rows without the expands and uses the lookup ids; agent names and queue names then come from Dynamics' formatted values where available. The expand names follow Microsoft's published entity reference; verify them on your organisation with the Test button, which reads one row.

Setup (push, instant): with the Plug-in Registration Tool register a WebHook pointing at POST <SiteUrl>/api/connectors/dynamics/events with authentication HttpHeader, header X-SurveyCX-Token set to the events token you save on the card; register a step on Update of msdyn_ocliveworkitem, filtering attribute statecode, asynchronous, with a PostEntityImage carrying the conversation's columns. SurveyCX ignores every message but a conversation closing. With the pull credentials saved too, the webhook fetches the full conversation (engagement context and contact) so the customer's number is in hand; without them, a conversation whose image has no number is known but cannot be invited. Mode on the card: both (default), events or poll.

Cost

One function run every five minutes (inside the Lambda free tier for most stacks) and the platforms' own API calls, within their limits. Five9's Events Subscription Service is a Five9 licence; Dataverse API calls count against your Power Platform request limits. SurveyCX bills completed responses as always.

Current as of version 0.15.0. See the release notes for what changed since.