aws-samples / amazon-connect-contact-surveys

MIT No Attribution
17 stars 8 forks source link

Submitted survey values are empty #18

Closed Hesham-Salama closed 1 month ago

Hesham-Salama commented 1 month ago

How to reproduce:

  1. Follow all tutorial steps.
  2. Create a new lex bot version 2 and associate it with the 'template' alias (otherwise the chat won't work).
  3. Test the chat (for example using 'Test Chat' in AWS Connect control dashboard.

The bot asks the two questions then it ends successfully but after checking the survey dashboard it says all scores are 0.

screen1

And when checking the dynamodb table Production-surveys-results the values are empty.

screen2
Hesham-Salama commented 1 month ago

There is a block in contact survey module (your connect dashboard page-> flows -> modules) which has survey_result_$.Attributes.loopCounter set to $.StoredCustomerInput For some reason the value in that variable is always empty ''. To fix it I had to replace $.StoredCustomerInput with lex's intent name as shown below.

Now the dynamoDB table gets the correct customer's inputs and it's reflected in the survey dashboard.

Screenshot 2024-08-08 at 16 00 37 Screenshot 2024-08-08 at 16 05 00