如何在Alexa中使用其他值扩展内置插槽类型? [英] How to extend built-in slot type with additional values in Alexa?

查看:110
本文介绍了如何在Alexa中使用其他值扩展内置插槽类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上,我使用了Alexa内置插槽AMAZON.DATE。现在,我想在该广告位中添加每日价值。因此,谁能告诉我如何扩展Alexa内置插槽,例如如何在内置插槽中添加其他值?请举个例子。



您可以在图像1
中看到我的集合提醒意图中包含用户AMAZON.DATE。



在图2中,您可以看到内置的插槽类型,但是我没有选择添加任何附加值的选项。因此,请帮助我实现这一目标。



解决方案

根据


Actually, I have used AMAZON.DATE which is Alexa built-in slot. Now I want to add 'daily' value in that slot. So can anyone tell me how to extend Alexa built-in slots, like how to add additional values in the built-in slot? Please give an example.

You can see I have user AMAZON.DATE in my set reminder intent in image 1

In image 2 you can see built-in slot type but I do not get any option to add any additional values. So please help me to achieve this.

解决方案

According to documentation you can extend a built-in slot type:

Before you can extend a built-in type, you need to add it to your skill. In the left-hand navigation, note the types under Slot Types. If the slot type to extend is not included, add it to your skill:

  1. From the left-hand navigation, click Add next to Slot Types.

  2. Select the Use an existing slot type from Alexa's built-in library option.

  3. Find the built-in slot type you want to add. You can filter the slot types by name.

  4. Click Add Slot Type for each built-in type to add.

  5. Be sure to save your work as you make changes.

To extend a built-in slot type, add values to it just as you would a custom type. In the left-hand navigation, under Slot Types, select the slot type to edit. Enter each value and click the plus or press Enter.

For more about creating and editing slot types in the developer console, see Create and Edit Custom Slot Types

But it looks, that you cannot extend AMAZON.DATE slot (since it's not a list slot type - more details here)

So in order to handle daily word, you should create a separate custom slot called for example FrequencySlot, and define there some values (see attachment) and then - add new utterances to your intent and handle new slot type in the code.

这篇关于如何在Alexa中使用其他值扩展内置插槽类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆