You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to escape comma (,) in System.List component

edited Jun 15, 2020 9:34AM in Digital Assistant & Mobile 1 comment

Summary

Escaping comma (,) in System.List component

Content

Hi,

I'm trying to add a comma (,) in the list of options to order a pizza in a pizza skill as below

component: "System.List"
    properties:
      #options: "Thick,Thin,Stuffed,Pan"
      options: "1. Large, hot pizza, 2.Large, with extra cheeze, 3. Medium, 4. Small"
      prompt: "What crust do you want for your Pizza?"
      variable: "crust"
    transitions: {}

When I test this skill, its printing 6 options instead of 3. 

 

any ideas how can I fix this ?

Thanks

Code Snippet

metadata:
  platformVersion: "1.0"
main: true
name: "PizzaBot"
parameters:
  age: 18
context:
  variables:
    size: "PizzaSize"
    type: "PizzaType"
    crust: "PizzaCrust"
    iResult: "nlpresult"
states:
  intent:
    component: "System.Intent"
    properties:
      variable: "iResult"
    transitions:
      actions:
        OrderPizza: "resolvesize"
        CancelPizza: "cancelorder"
        unresolvedIntent: "unresolved"
  resolvesize:
    component: "System.SetVariable"
    properties:
   

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!