In this tutorial you will learn how to create a "rate your experience" feature that is activated at random to ensure a great customer experience with your conversational AI. In addition, you will learn how to apply this behavior only to the channels of your choosing (in this example, just to a website chatbot).

Add Random Customer Rating (How to #3).mov

Code Mentioned In Video

In the above video, Zoe used the following code in UI Builder that you can copy and paste as you are building out this feature.

${turn.zammoData.QnaResults.topScoringAnswer.Answer}

=rand(1,5) == 2

dialog.AnswerQuestion

dialog.AnswerQuestion == true

=turn.zammoData.Channel == "directline"