Information
This documentation supports the 20.08 version of BMC Helix Chatbot. To view the documentation for the previous version, select 20.02 from the Product version menu.

Use case - Customize confirmation question before submitting request


After answering all questions for a given service request a confirmation message is displayed. The out-of-the-box (OOTB) confirmation will not list questions and their response for the user to review. If you want to summarize all questionnaire and their responses for the user to review before submission, then you need to customize confirmation message as explained below.
Lets take an example of BMC - Create Distribution List service which comes with the starter kit. Go to the Confirmation - Create Distribution List dialog node for that service. At this node, create one context variable like,
ConfirmationMessageHTML : "<br><b> Display Name-</b> $pleaseProvideDisplayNameForTheDistributio <br><b>Primary Admin-</b> $pleaseProvideFirstAlternateAdministratorE <br><b>Secondary Admin-</b> $pleaseProvideSecondAlternateAdministrator <br><b>Description-</b> $pleaseProvideDescriptionOfTheDistribution"

worddavdecebdbe214e916710a000f8af22f8d1.png

In the context variable, we have added questions and their responses in a label:value pair format . All question responses are stored in a variable so the same are used in above context variable. To find what are the response variable, go to each question, if its a slot then the response is stored in a variable which is defined under the Save it as option. Please refer below screenshot,
worddav553dd8edd6b4d38cd588fe164910b936.png

Once the Context variable is defined then in the same Dialog node, add that context variable after OOTB confirmation message, as shown in the screenshot below.
worddav3b7a3c9ca4a10296abcc52d9a98f400e.png

Now if you access same service, then at the end you will find confirmation message with the questions and their corresponding responses.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Helix Chatbot 20.08