The agent panel and Customer Profiles
Two ways to put the customer's last survey in front of the agent who picks up the next contact, and to show agents their own feedback without opening the results page.
The agent panel in the Connect agent workspace
agent-panel.html on your stack's site is a third-party application for the Amazon Connect agent workspace. It shows:
- This customer: at the start of a contact, the customer's last survey with you: score, date, the agent they spoke to, their comment, how many surveys they have answered, and whether they asked not to be surveyed. "First survey with us" when there is none. The customer is matched by the phone number or email address of the contact, through the same hashed customer record the frequency cap uses, so this works with no other setup.
- Your feedback, last 7 days: CSAT, average score and response count against the week before, and the latest responses with their comments. Agents see only their own; a supervisor opening the panel sees everyone's.
- Ask this customer for feedback: during a contact, the agent can ask for a survey for this customer; it is queued after the contact ends, sampling skipped, every other rule kept. See Response rate.
- Customers waiting for a call: at the top when there are any, the agent's open call-back requests, oldest first, with the wait and an overdue mark past the call-back target. I'll call them claims it; Done with the outcome closes the follow-up. See Closed loop.
- Customers waiting for a call: at the top when there are any, the agent's open call-back requests, oldest first, with the wait and an overdue mark past the call-back target. I'll call them claims it; Done with the outcome closes the follow-up. See Closed loop.
- Mark as seen: each low score in the agent's list has a Mark as seen button. Pressing it records that the agent has read the feedback, once, with the time; the results page shows a seen pill on the response and the coaching view counts how many low scores the agent acknowledged. It is a receipt, not a follow-up: closing the loop with the customer stays with the supervisor.
- Coaching: eight weeks of the agent's feedback against the team's, with one thing to work on and one thing they do well, the week-by-week line, the questions where they differ from the team, and the reasons and comments behind their low scores. Supervisors open it per agent from the results page. See The coaching view.
Registering it
- In the Connect console open Third-party applications (under Applications) and add an application with the access URL
<SiteUrl>/agent-panel.html (the SiteUrl output of the stack) and the approved origin <SiteUrl>.
- Grant the application on the agents' security profiles (Agent applications).
- Agents sign in to the panel with their SurveyCX agent login the first time (the same Cognito pool as the results page;
node lambda/sync-users.js creates agent logins from the instance). With your own identity provider federated into the pool, this is single sign-on.
The stack's security headers allow the pages to be framed only by your instance (ConnectInstanceUrl), which is what the workspace does. Outside the workspace the panel still opens as a normal page showing the agent's own feedback; the This customer section needs the workspace.
For the "this customer" lookup the API calls DescribeContact on the contact the agent is handling and refuses contacts assigned to another agent.
Customer Profiles
With Settings › Customer Profiles switched on and a domain chosen (the one your instance uses; the list comes from your account), every completed survey is also written onto the customer's profile as custom attributes, so it shows in the native Customer profiles panel of the agent workspace and travels with the profile into whatever reads it:
| Attribute |
Example |
SurveyCX_LastScore |
2 / 5 |
SurveyCX_LastCSAT, SurveyCX_LastNPS |
2, 3 |
SurveyCX_LowScore |
yes |
SurveyCX_LastAt |
2026-11-15T10:05:00Z |
SurveyCX_LastSurvey, SurveyCX_LastChannel, SurveyCX_LastAgent |
Post-contact survey, voice, Ann Lee |
SurveyCX_LastComment |
the first free-text answer, redacted, at most 255 characters |
SurveyCX_LastContactId |
the contact the survey followed |
SurveyCX_Responses |
3 |
The profile is found by the contact id Connect associates with the profile when Customer Profiles is enabled on the instance, and, at the moment the survey is offered, by phone number or email address. A customer without a profile is skipped; nothing is created. Only Connect contacts are written; contacts from other platforms through the ingest endpoint are not.
Permissions: the stack's functions get profile:SearchProfiles and profile:UpdateProfile on your account's domains and profile:ListDomains. If the domain uses a customer-managed KMS key, allow the stack's function roles to use it (kms:Decrypt, kms:GenerateDataKey), as Customer Profiles requires.
Nothing leaves your account: the profile and the customer record live in your Connect instance and your stack's table.
Current as of version 0.18.0. See the release notes for what changed since.