question

newuser-48f2894f-2141-46ab-b4a3-21ecc0712563 avatar image

How to deploy Custom Slot Types from ask CLI

Custom Slots defined in the developer console are erased when using "ask deploy" is there a way to preserve those slots or deploy them from the local machine?

The current workflow is to define a slot type as some regular AMAZON.type, then use 'ask deploy', then go to developer.amazon.com to manually enter the custom list and change the slot type. This negates a lot of the time saving of the ask CLI.

alexa skills kithow-toslotsamazon developer portalask cli
10 |5000

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

Anand@Amazon avatar image
Anand@Amazon answered

Hi there,

Sorry for the late reply.

We have uploaded different type of sample code which you clone it through ASK CLI.

Just run the below command and then in template skill where you can check for en-US.Json file.

$ ask new --template
1 comment
10 |5000

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

The decision tree template had examples of what I needed, thank you!!

0 Likes 0 ·
Anand@Amazon avatar image
Anand@Amazon answered

Hi there,

Sorry for late reply.

Whenever you are creating tool using ASK CLI then you are providing all Intent name, Slot name and Slot value as en-US Json file from your local machine to the Amazon API. And you will get the response from apis in terminal. If you want to add some slot type then you can easily mention in the same JSON file and even you can extend to add some specific values but to do this JSON syntax should follow all necessary syntax.

10 |5000

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

newuser-48f2894f-2141-46ab-b4a3-21ecc0712563 avatar image
newuser-48f2894f-2141-46ab-b4a3-21ecc0712563 answered

Yes but what is the correct syntax for declaring a custom slot type in the en-US.json file? There is know way to know this, because the developer website does not show you the en-us.json file as far as i know. So how do i create a totally offline custom slot type then upload it? What is the correct syntax?

1 comment
10 |5000

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

Anand@Amazon avatar image Anand@Amazon ♦ commented ·

Hi there,

Sorry for late reply. You can use any of the templates and modify according to your skill.

0 Likes 0 ·