--- title: "9. 添加 Slot Filling 功能" draft: false chapter: false weight: 160 --- 在这个小节中, 您讲会开启 Slot Filling 功能进行测试,并对比与刚才的不同。之后,您讲理解这功能的用意,并可以在后续的 custom alexa skill 开发中灵活使用此功能。 1. 点击 **Build** 页面 1. 选择 `GetAccountDetail` intent 下的 Slot `AccountType`。 1. 打开 **Is this slot required to fulfill the intent?** 中的 **Slot Filling** 1. 输入 `which account, saving for checking?` 并且点击 **Alexa speech prompts** 中的 "+" 按钮。 ![](/images/ask/alexa-slot-filling.png) 1. 点击 **Save Model**, 然后运行 **Build Model**, 等待 build 执行完成。 1. 回到 **Test** tab 1. 输入 `Open personal banker` 唤醒 skill 1. 输入 `What is my account balance?` 查看结果 1. 随意探索输入。 ## 比较不同 您应该已经观察到了, **Slot Filling** 开启后的变化。变化如下: - 开启 Slot Filling 之前 ![](/images/ask/before-slot-filling.png) - 开启 Slot Filling 之后 ![](/images/ask/after-slot-filling.png)