aws-lambda - Alexa Skill:测试期间未更新交互模型
问题描述
我正在开发一个 Alexa 技能,我有一个最初有 7 个插槽的Intent
名称。NewAppointmentIntent
我Slot
昨天添加了一个新的命名Doctor
并成功构建了技能。
当我调用该意图时,它仍然有 7 个插槽而不是 8 个。Doctor
插槽不会出现在请求和响应输出中。
图片中的意图:
当output
调用 , where 属性中的插槽Intent
时:Doctor
slots
"request": {
"type": "IntentRequest",
"requestId": "amzn1.echo-api.request.9529849e-190d-4278-95a8-3702b3ee4d1c",
"timestamp": "2018-12-12T10:05:14Z",
"locale": "en-US",
"intent": {
"name": "NewAppointmentIntent",
"confirmationStatus": "NONE",
"slots": {
"Status": {
"name": "Status",
"confirmationStatus": "NONE"
},
"Comment": {
"name": "Comment",
"confirmationStatus": "NONE"
},
"ReasonForVisit": {
"name": "ReasonForVisit",
"confirmationStatus": "NONE"
},
"Time": {
"name": "Time",
"confirmationStatus": "NONE"
},
"EmergencyType": {
"name": "EmergencyType",
"confirmationStatus": "NONE"
},
"PatientNumber": {
"name": "PatientNumber",
"confirmationStatus": "NONE"
},
"Day": {
"name": "Day",
"confirmationStatus": "NONE"
}
}
},
"dialogState": "STARTED"
}
所以我想知道如何刷新技能?
解决方案
关闭窗口,重新打开并在控制台中 -> 保存模型 -> 构建模型。然后再次测试。
如果仍然不显示,请单击 JSON 编辑器(这将是您的交互模型列表中的最后一个选项),然后您NewAppointmentIntent
可以在数组中看到Docter
插槽吗?slots
如果不是,那么可能是在您创建插槽时出现了问题。所以删除Docter
插槽并重新添加它。然后再次在 JSON 编辑器中验证它,这应该可以解决问题。
推荐阅读
- windows - Windows 中的 g_massstorage 设备
- php - phpmyadmin 空白页 - 'php index.php' 时出现 getCookie 错误
- java - jdbc DB2 queryTimeout 未按预期工作
- angular - 在平均堆栈上注册新用户时停止 [Chrome 控制台上的未知错误]
- python - 如何根据pydatatable中的数据类型选择列?
- yii2 - SwiftMailer 错误:调用数组上的成员函数 ping()
- html - 为什么 align-items: flex-start 在我尝试在列中垂直对齐时水平对齐
- jmeter - 通过 JMeter 记录时获取加密数据
- macos - 是否有与适用于 macOS 的 Windows 10 受控文件夹访问 (CFA) 的等效项?
- amazon-dynamodb - 来自 java 的 DynamoDB 连接问题