Skip to content

Add shuffle suggested responses functionality

Tyler Merritt requested to merge feature/shuffle_suggested_responses into master
  • ported from external project, takes suggestedResponses [] (if present in the displayHtml.html object) and shuffles their order, to add an element of diversity to an experience (requires the front-end implement handling of this payload, which is part of the P22 UI, that a number of customers / partners currently use in production)

Set environment variable SHUFFLE_SUGGESTED_RESPONSES == true and uncomment lines 57-60 in conversation/node/services/lib/format.js to enable

What to check:

run tests. Tests cover stringified payload, regular JSON payload, and no suggestResponses present in payload

Merge request reports