Closed loop: Tasks, attributes and events
A survey is worth running only if somebody acts on the answers. When a response completes, several things happen, each optional and each independent of the others: a Task, a Case or a ticket for a low score, the scores on the contact, an event, Arena, Slack or Teams, and the customer's record for the next agent.
1. A Task for a low score
If the response is flagged low (see the survey's low-score rule) and Settings > Closed loop has a task flow ID, SurveyCX opens an Amazon Connect Task named Low survey score: 1.5 of 5 (Ann Lee) with:
- the survey name, channel and queue,
- every question and answer, including the customer's comment,
- references: Contact details (a link to the contact in the Connect console, when
ConnectInstanceUrl is set) and Survey response (a link to the response on the results page),
- the original contact linked as the previous contact, so the agent's history shows it.
The task flow decides who gets it: create a flow that transfers the Task to a supervisor queue (or to the agent's own queue if you want agents to follow up themselves) and paste its ID, the part of its ARN after contact-flow/, into Settings. Tasks are routed, worked and reported like any other contact, so follow-up time and completion are visible in Connect's own reports.
If the flow ID is empty, nothing is opened and the low score is still flagged on the results page.
2. Scores on the contact
The scores are written onto the original contact as attributes, so they appear in Contact Lens, in the contact record and in anything else that reads attributes:
| Attribute |
Value |
csat (name configurable) |
the agent-attributable score on a 1-5 scale, or the overall score when no question is agent-attributable |
surveycx_five |
the overall 1-5 score |
surveycx_nps |
the NPS answer, 0-10, when asked |
surveycx_ces |
the effort answer, 1-7, when asked |
surveycx_low |
true when flagged |
surveycx_survey |
the survey id |
The csat attribute is the one Arena reads from contact records, so a stack that sends contact records to both products needs no other link.
3. An event
Every completed response is put on the account's default EventBridge bus with source surveycx and detail type Survey Completed or Survey Completed - Low Score. The detail carries the contact id, survey, channel, queue, agent, scores and answers. Rules on that bus can post to Slack, open a ticket in your CRM, or land the event in a warehouse; nothing in SurveyCX needs to change.
4. Arena
5. Slack and Microsoft Teams
A low score from a customer who scored low within the previous 30 days is posted as a Repeat low score, with which one it is and when the previous one was; see The customer's journey.
Settings › Alerts takes a Slack incoming-webhook URL, a Teams Workflows webhook URL, or both. Every low score is posted as it completes: the survey, channel and queue, the scores, the customer's comment with its sentiment, whether a Task is open, a button to the response and a button to the supervisor's phone page, where the follow-up can be closed from the phone. Send a test alert posts a sample so you can check the channel.
The same card sets up the digest: weekly (choose the day) or daily, at an hour in the stack's time zone. It compares the period with the one before (responses, CSAT, NPS, effort), lists low scores and open or overdue follow-ups with the median time to follow up, names the highest and lowest agents with at least five responses, and adds the share of positive and negative comments and the current themes when verbatim analysis is on. Every What changed sentence is a link in Slack, Teams and the email: the queue that moved opens the results page filtered to that queue and period, the question that moved highlights its driver row, the low-score count opens the low scores only. The plain-text version carries the sentences without links. Add email addresses to receive it by mail too; it is sent from the stack's EmailFrom identity.
Webhook URLs are stored in your table and shown masked once saved.
The agent-attributable score goes to Arena through its ingest endpoint. See Feeding Arena.
When the customer asked for a call
A survey can offer a call back after a low score (see Building a survey). When the customer says yes, the Task is named Call back requested, its description opens with that line, the alert leads with it, and the results page and the phone page show a call back pill.
The queue. The agent panel opens with Customers waiting for a call: every open call-back request on the agent's own contacts (supervisors see everyone's), oldest first, with how long the customer has waited and the number's place on the contact record. I'll call them claims it under the agent's name, so two people never call the same customer; Done records the outcome (recovered, not recovered, no answer) and closes the follow-up exactly as the results page would, with the ticket write-back and the recovery message that follow. The results page shows who claimed and who called.
The target. Settings › Closed loop › Call-back target (four hours by default) is the time a customer should wait at most. Past it, the request shows as overdue in the queue and the overdue escalation (Settings › Alerts) names it first, marked CALL BACK REQUESTED, even when the general follow-up target has not passed.
What Contact Lens heard
With Settings › Verbatim analysis › Attach the Contact Lens post-contact summary on, and Contact Lens post-contact summaries enabled on the instance, a low score on a voice or chat contact carries Connect's own summary of the conversation: in the Task description, in the Slack or Teams alert (in italics, under the score), in the response view and on the phone page. Connect writes the summary a little after the contact ends; when the survey finishes first (the IVR survey usually does), the Task and the alert go without it and the response view fetches it when opened, retrying at most every ten minutes. The stack's functions call ListRealtimeContactAnalysisSegmentsV2 for this; nothing else is read.
When nobody follows up
Settings › Alerts › Overdue follow-ups tells a named person once when a follow-up passes its target (the closed-loop target by default, or a number of hours): one message to Slack or Teams and to the email addresses given, with an optional mention, listing each overdue follow-up with the score, agent, queue, comment, how long it has been open and whether a Task or ticket exists, and a button to the phone page. Each follow-up is escalated once; reopening it allows a second escalation. The results page marks escalated follow-ups.
After the follow-up
Closing a follow-up can do two more things: send the customer a recovery message by SMS or email, and write the outcome back to the Zendesk ticket or Salesforce Case and close it. Both are settings; both are off or on per stack.
When the customer says it was not resolved
With the "was it resolved?" question switched on, a customer who answers no one or two days after the survey reopens the follow-up (or opens one when the score was not low), with the note The customer says the issue was not resolved, and the alert channels get a message with a link to the response. The same target and escalation apply as to any follow-up.
Did anyone follow up?
If the Task was completed by the same agent who handled the contact, the response shows closed by the agent on the contact and the headline counts those separately; route the follow-up flow to a supervisor queue if that should never happen.
Every low score opens a follow-up on the response. It is closed in one of three ways:
- the Connect Task opened for it is completed by whoever worked it (the contact record of the Task closes the follow-up and names the agent), or
- a supervisor opens the response on the results page and clicks Mark followed up, choosing an outcome (customer recovered, not recovered, could not reach) and an optional note, or
- a partner's application calls
PUT /api/ingest/{key}/responses/{contactId}/followup.
Settings > Closed loop has a follow-up target in hours (48 by default). The results page shows how many follow-ups are open, how many are overdue, the median time to follow up and the share done within target, overall and per queue; the queue table and the data API carry the same figures, and the CSV has the status, hours and outcome per response. A follow-up can be dismissed (a prank answer, a wrong number) or reopened.
Timing
On voice and chat the agent is known only once the contact record arrives, a few minutes after the call. The Task, the attributes and the event go out at completion; the Arena score and the agent on the Task name follow when the record lands, and the attributes are refreshed then as well. Invitations by SMS and email complete whenever the customer answers.
A Case instead of, or besides, the Task
Centres that run Amazon Connect Cases can have the low score open a Case: in Settings › Closed loop tick Also open an Amazon Connect Case, pick the Cases domain of your instance and a template (both lists come from your account). The case is created with the score and agent in its title, the survey, channel and queue in its summary, the answers as a comment, and the original contact as a related item, so an agent opening it in the Cases panel sees the whole story. With Customer Profiles switched on and the customer's profile known, the case is attached to the customer too; a template whose required fields include the customer needs that.
The case id is kept on the response's follow-up beside the Task id. Closing the Case does not close the follow-up by itself (Tasks do); close it from the results page or let the Task do it when both are on. Amazon Connect Cases is billed by AWS per case created.
A ticket in Zendesk or Salesforce
Where the team works in a help desk or CRM rather than in Connect, Settings › Ticketing opens a Zendesk ticket or a Salesforce Case for every low score, with the score and agent in the subject, the answers in the body and a link to the response; the customer's address is not sent. It works on every platform, including Genesys Cloud and Zoom Contact Center, and beside the Task and the Case. The ticket link is kept on the follow-up and shown on the results page. See Tickets in Zendesk or Salesforce.
The next contact
The loop also closes forward: the customer's last score, date, agent and comment are kept on their customer record and, with Settings › Customer Profiles on, written onto their Customer Profiles profile, so the next agent sees them at the start of the next contact. See The agent panel and Customer Profiles.
Current as of version 0.20.0. See the release notes for what changed since.