SurveyCX for Amazon Connect

Help center › The agent panel and Customer Profiles

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:

Registering it

  1. 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>.
  2. Grant the application on the agents' security profiles (Agent applications).
  3. 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.