Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Multi-value slots #684

Open
habuma opened this issue Oct 25, 2021 · 0 comments
Open

Multi-value slots #684

habuma opened this issue Oct 25, 2021 · 0 comments

Comments

@habuma
Copy link

habuma commented Oct 25, 2021

Is your feature request related to a problem? Please describe.
I'd like to use BST to test utterances/intents where the slot is a multi-value slot. But it doesn't work, because Alexa.getSlotValueV2(handlerInput.requestEnvelope, slotName) returns null. That's because BST doesn't support the "List" slot type.

For example, given a multi-value slot named "cities" of type "AMAZON.US_CITY", and an utterance of "I like Dallas, Detroit, and San Antonio", the slot JSON looks like this when run through BST:

{"cities":{"name":"cities","value":"Dallas Detroit and San Antonio","confirmationStatus":"NONE"}}

That same slot, when run in a deployed skill looks like this:

        "cities": {
          "name": "cities",
          "confirmationStatus": "NONE",
          "source": "USER",
          "slotValue": {
            "type": "List",
            "values": [
              {
                "type": "Simple",
                "value": "Dallas"
              },
              {
                "type": "Simple",
                "value": "Detroit"
              },
              {
                "type": "Simple",
                "value": "San Antonio"
              }
            ]
          }
        },

Notice the "slotValue" property and the breakout of each city.

Describe the solution you'd like
I'd like to be able to test multi-value slot intents the same as BST already supports single-value slots.

Describe alternatives you've considered
I probably could create a filter that populates the request to match the structure of a multi-value slot. But that is non-ideal. BST should support multi-value slots, which has been a feature of ASK since mid-2020.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant