actions-on-google - Action On Google,带有 actions.intent.NEW_SURFACE 的 webhook 响应
问题描述
尝试在 webhook 响应中实现 NEW_SURFACE(Google Assistant 语音调用 Dialogflow 调用 webhook)。
当我有网络浏览器功能时,我会显示我的卡片,但是当用户来自 Google Home 时,我何时将用户重定向到他的手机。
这是我在 Google 上的操作中的错误:
{
"responseMetadata": {
"status": {
"code": 10,
"message": "Failed to parse Dialogflow response into AppResponse because of empty speech response",
"details": [
{
"@type": "type.googleapis.com/google.protobuf.Value",
"value": "{\"id\":\"28ef98e1-caec-4e1f-9a14-8fda597e8a06\",\"timestamp\":\"2018-08-17T12:31:10.735Z\",\"lang\":\"fr-ca\",\"result\":{},\"alternateResult\":{},\"status\":{\"code\":200,\"errorType\":\"success\"},\"sessionId\":\"1534509012113\"}"
}
]
}
}
}
这是我的 webhook 响应:
{
"fulfillmentMessages": [],
"payload": {
"google": {
"expectUserResponse": true,
"expectedInputs": [
{
"inputPrompt": {
"richInitialPrompt": {
"items": [
{
"simpleResponse": {
"textToSpeech": "TEST CHANGE SURFACE"
}
}
]
}
},
"possibleIntents": [
{
"intent": "actions.intent.NEW_SURFACE",
"inputValueData": {
"@type": "type.googleapis.com/google.actions.v2.NewSurfaceValueSpec",
"context": "To show you an image",
"notificationTitle": "Check out this image",
"capabilities": [
"actions.capability.SCREEN_OUTPUT"
]
}
}
]
}
]
}
},
"source": "google"
}
需要帮助请;-)
解决方案
推荐阅读
- r - readxl,返回值与 Excel 上的值略有不同
- python - pyspark 中的 Pandas UDF
- python - 字段 'id' 需要一个数字,但得到了
- swift - 如何在 Swift 中检查两个结构是否具有相同的泛型参数类型?
- android - 在 Android 上通过以太网 eth0 接口 Ping 和其他人
- java - 只打印java中文本第一行上的字符串
- ios - 使用 EXC_CORPSE_NOTIFY 启动 iOS 应用程序崩溃
- spring-boot - spring-kafka:在 Spring Boot 中使用交互式查询
- python-3.x - Python3 类型系统:调用参数中的特定属性?
- parsing - 如何使时间解析谓词双向工作?