question

mun3 avatar image
mun3 asked

Dynamic values for slots

Hi I wonder if it's possible to dynamically define values for slots. For instance, User A on my system might define destinations "pete's house" and "mary's shop" whilst User B defines "anna's house". These values are dynamically set (not hardcoded in the intention model) and are specific to the user on my system. Is it possible to achieve this? Any advice appreciated.
alexa skills kitvoice-user interface
10 |5000

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

mun3 avatar image
mun3 answered
I should add that, my understanding is that, it could perhaps be achieved by account linking. However, the Interaction Model requires values to be entered for Custom Slot Types. What values should be given if the value is expected to be dynamic/open-ended? Thanks
10 |5000

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

jjaquinta avatar image
jjaquinta answered
No. You can't. Please search the forum for explanations of why, and suggestions of what to do about it. There are plenty of threads on the topic.
10 |5000

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

mun3 avatar image
mun3 answered
I have and found this post https://forums.developer.amazon.com/forums/thread.jspa?threadID=10165 and that's what got me a little confused. It was mentioned that the Drive Time skill does something like this. The example was that the user's enter the names of destinations (for example, "nora's house") via account linking, and then compute the string similarity between what Alexa hears and strings in the database. However, how should the values of the Custom Slot Type be defined? My understanding is that it's a static list. When the user adds "nora's house" into our system's db, it needs to somehow be reflected in the Custom Slot Type values - right? Message was edited by: mun3 Message was edited by: mun3
10 |5000

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

jjaquinta avatar image
jjaquinta answered
If I remember right, it uses a "generic slot". You can search the forum on that technique too. It is basically creating a slot/intent so generic that Alexa will try to match it to anything. Alexa is not built for this. You can trick it into it, but the quality is poor. If you are just doing a flashy demo, go for it. If you want to create a wide release skill of quality, I do not recommend this option.
10 |5000

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