Question 6

In your conversation flow, you want to make sure that users always see a message, even when there is no data to display. To implement this, you decide to use a system.setvariable component that verifies that the variable mydata contains a value and, if it does, sets the value of the displayVar variable to the value of mydata. If no value is specified for mydata, then displayVar is set to the string 'No Data 1.
Which two BotML with Apache FreeMarker examples implement this requirement?
  • Question 7

    You have a skill for ordering pizzas. In your experience, you have found that 95% of your customers want a regular crust and just 5% prefer gluten-free crust. Because so few people are likely to want a gluten-free crust, you don't want to prompt for that option, but you do want to make it available.
    Assuming you already have a composite bag entity that contains a PizzaCrust entity that has the values
    "regular" and "gluten free", what would be the simplest way to have your skill enable a user to order a pizza with a gluten-free crust without the skill prompting the user for that option?
  • Question 8

    You have a use case that calls for users to enter a series of complex values.
    What would you do to ensure that users enter these values correctly with the least effort?
  • Question 9

    What is the error message ''Your session appears to be in an infinite loop'' usually caused by?
  • Question 10

    Consider this code snippet:

    Which two statements about this code are true?