Digital Assistant and Mobile

Get Involved. Join the Conversation.

Topic

    Ameur Baccoucha
    Access the different values of a ENTITY list in the...
    Topic posted April 23, 2018 by Ameur BaccouchaGold Medal: 3,500+ Points 
    49 Views, 1 Comment
    Title:
    Access the different values of a ENTITY list in the dialogflow.
    Summary:
    Access the different values of a ENTITY list in the dialogflow.
    Content:

    i have create a "Entity list" named as 'VisaInfo' contains a "yes_no" and "date" and a nother entity that i called 'VisaType'.
    in the dialogflow i wanna set/access the diffrente values of a variable ' visa : "VisaInfo" ' ...
    how can i do it ?

    Comment

     

    • Martin Jarvis

      Ameur,

      See this extract from our Pizza Bot demo. PizzaSize is a custom entity based on a value list with 3 entries.

      context:
        variables:
          iResult: "nlpresult"
          pizzaType: "PizzaType"
          pizzaSize: "PizzaSize"
          pizzaMenu: "string"

      ...

        askSizeState:
          component: "System.List"
          properties: 
            prompt: "What size do you prefer?"
            variable: "pizzaSize"
            options: "${pizzaSize.type.enumValues}"
            nlpResultVariable: "iResult"
            translate:
          transitions: {}