question

newuser-71077eee-2d8b-44dc-917e-73fe0d0072d9 avatar image
newuser-71077eee-2d8b-44dc-917e-73fe0d0072d9 asked ·

Access predefined city from different languages

Hi, it appears that the pre-defined slot data types are dependent on the locale in some cases. If so How do I access - say AMAZON.City defined in India locale from US? The use case is accessing Alexa skill from a US device with EN(US) setting but the skill needs to access EN(IN) data types. How does it work? I don't think I can do this in the code can I? Thanks.

alexa skills kitslotsbuilt-in library
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

Anand@Amazon avatar image
Anand@Amazon answered ·

Hello Developer,

There are different set of in-built slot types provided as per locale. As you said you can use AMAZON.City but this will contains all data of US city but if you need Indian cities data too then you can add those data into this in-built slot type. This updated data will only be available for your skill.

Another way that you can create a custom slot type and provide all Indian cities data and use this slot type for your skill.

Check this link for more details.

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.