Getting started
SurveyCX runs inside your own AWS account. Setting it up takes four steps: launch the stack, connect it to Amazon Connect, build a survey, and watch the first answers arrive.
1. Subscribe and launch
Subscribe to SurveyCX for Amazon Connect on AWS Marketplace and choose Set up your account. The registration page shows a Launch SurveyCX in CloudFormation button with your subscription pre-filled.
In the CloudFormation console:
- Fill in ConnectInstanceId (the ID of your Connect instance, the part after
instance/ in its ARN) and ConnectInstanceUrl (its access URL). Both can also be set later in the console.
- Optionally set AlarmEmail, Timezone (for the send window) and the SMS and email parameters; see SMS and email invitations.
- Tick all three acknowledgement boxes at the bottom and create the stack. It takes about ten minutes.
The Outputs tab then shows SiteUrl (the console, results and the hosted survey), FlowLambdaArn and StreamArn.
2. Create a supervisor sign-in
The stack creates a Cognito user pool (UserPoolId output). (Deployed with AuthMode=external instead? Then there is no pool: your identity provider signs everyone in and this step is registering the app there.) In the Cognito console create a user, add them to the supervisors group, and give them a temporary password. Agents who should see their own results go in the agents group with the custom:agentArn attribute set to their Connect agent ARN. One command does all of it from your Connect directory:
node lambda/sync-users.js <stack name> --instance <connect instance id> --dry-run
node lambda/sync-users.js <stack name> --instance <connect instance id>
Users whose Connect security profile is named supervisor, admin or manager land in the supervisors group; everyone else becomes an agent. New users get a temporary password by email. See Settings reference for using your own identity provider instead.
3. Connect the survey to your flows
Voice and chat surveys run in the disconnect flow:
With ConnectInstanceId set, the stack does the wiring itself as it deploys (the ConnectSetup parameter, enabled by default): it adds the flow Lambda to the instance, creates the flow module SurveyCX survey, creates the flow SurveyCX disconnect that runs it, creates the flow SurveyCX follow-up that routes low-score Tasks to BasicQueue and writes it into Settings › Closed loop, and sets the instance's contact record stream to the stack's stream when the instance has none. Settings › Closed loop shows what was done. An upgrade refreshes the module and the SurveyCX disconnect flow, so keep your own blocks in the inbound flow and leave those two to the stack; the follow-up flow is yours to edit.
What remains yours:
- In each inbound flow you want surveyed, add a Set disconnect flow block pointing at SurveyCX disconnect, and publish.
- If the instance already sent contact records somewhere (a Firehose for Arena, your own stream), the stack leaves that alone and says so; point
StreamArn from that pipeline, or switch the target to the stack's stream in Data streaming.
- Change the follow-up flow's queue from BasicQueue to a supervisor queue when you have one.
Without ConnectSetup (or on an instance you cannot let the stack change), the manual steps are: add the function from the FlowLambdaArn output under Flows › AWS Lambda; run node lambda/flow-module.js <FlowLambdaArn> or take the module file from the release and import it as a flow module; create a flow that invokes the module and disconnects; set the contact record stream target to StreamArn.
Details and what the customer hears are in Surveys on voice and chat.
For agent attribution and SMS/email invitations, send contact records to the stack: in the Connect console under Data streaming, enable contact trace records and choose the Kinesis stream from the StreamArn output.
4. Try it on one queue
Open <SiteUrl>/console.html and sign in. Until the stack has its first completed response, the Surveys page opens with a card, Try it on one queue, that walks through the first run in four steps:
- Pick a queue. The list comes from your Connect instance (or from the queues seen on recent contacts; you can also type a name).
- Create the survey from a template. One click creates an active survey targeted at that queue, named after the template and the queue. Edit it afterwards like any survey.
- Send yourself a test. Enter your mobile number or email address. The invitation goes out at once, outside the send window, skipping sampling and the caps; the response is marked as a test and is never billed. Without an SMS or email sender configured yet, the card still gives you a link to open the survey in your browser.
- See the first response. Answer it; the card shows your score when it arrives and links to the response on the results page. From then on every contact on that queue gets the survey.
The first line of the card says what is wired (Connect instance, flows, senders). Hide dismisses it; console.html#wizard brings it back at any time, for example to run a test on a new queue.
A starter survey is also ready on a new stack: satisfaction, resolved, effort, recommend, and an open question that only appears after a low score. Edit it or add one per queue; see Building a survey.
5. Watch the answers
<SiteUrl>/results.html shows scores as soon as the first survey completes. A low score opens a Task in Connect if you set a task flow in Settings; see Closed loop.
Pilots without Marketplace
The same template deploys without a subscription: leave the three Marketplace… parameters empty and nothing is reported or billed.
Current as of version 0.21.0. See the release notes for what changed since.