question

newuser-17be4a6a-80c6-4265-80ce-2d6f153f9142 avatar image
newuser-17be4a6a-80c6-4265-80ce-2d6f153f9142 asked ·

How to create composite slot types?

Is there a way to create composite slot types in Alexa skill? A composite slot type (entity) can be explained as if there are 3 slot types as slotType1, slotType2 and slotType3, values of slotType3 are created combining values of slotType1 and slotType2.

alexa skills kitalexaecho
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Rokas avatar image
Rokas answered ·

It is not possible to create composite slots, but why don't you just add utterances, that have bot slot1 + slot2, like:

{slotType1} {slotType2}

In this case, when user says slot1 + slot2, you'll get them both in the backend.

Other than that, you can copy values and build a script that would build composite slot type, but in this case there might be problems with recognition, because of the similar values in the slots.

If you need more help on building a good interaction model, let me know, what is your end goal, what type of skill are you building and I might be able to help you.

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.