Dialogflow es 如何使用Google DialogFlow上的事务对象解决格式错误的响应?
我不明白为什么下面的事务决策对象会抛出一个格式错误的响应 每当我想从一个意图跳到传递这个对象的意图时,我都会遇到这个错误 畸形反应 无法将Dialogflow响应解析为AppResponse,因为平台响应无效:尝试解析来自系统意图的数据,但失败Dialogflow es 如何使用Google DialogFlow上的事务对象解决格式错误的响应?,dialogflow-es,actions-on-google,Dialogflow Es,Actions On Google,我不明白为什么下面的事务决策对象会抛出一个格式错误的响应 每当我想从一个意图跳到传递这个对象的意图时,我都会遇到这个错误 畸形反应 无法将Dialogflow响应解析为AppResponse,因为平台响应无效:尝试解析来自系统意图的数据,但失败 { "@type":"type.googleapis.com/google.actions.v2.TransactionDecisionValueSpec", "orderOptions":{ "requestDelivery
{
"@type":"type.googleapis.com/google.actions.v2.TransactionDecisionValueSpec",
"orderOptions":{
"requestDeliveryAddress":false,
"customerInfoOptions":{
"customerInfoProperties":[
"EMAIL"
]
}
},
"paymentOptions":{
"actionProvidedOptions":{
"displayName":"Bezahlung im Markt",
"paymentType":"ON_FULFILLMENT"
}
},
"proposedOrder":{
"id":"Max-Mustermann 2-417-2019-09-20T12:16:45.667Z",
"cart":{
"merchant":{
"name":"MediaMarkt Passau"
},
"lineItems":[
{
"name":"SONY PlayStation 4™ 500GB Black",
"id":"SONY PlayStation 4™ 500GB Black",
"quantity":1.0,
"type":"REGULAR",
"price":{
"amount":{
"currencyCode":"EUR",
"nanos":9.0E7,
"units":"252"
},
"type":"ACTUAL"
},
"image":{
"url":"https://pics.redblue.de/artikelid/DE/2490314/CHECK",
"accessibilityText":"Image logo"
},
"description":""
}
],
"notes":"Abholbereit in wenigen Werktagen"
},
"otherItems":[
{
"name":[
"Preis ohne MwSt."
],
"id":"subtotal",
"price":{
"amount":{
"currencyCode":"EUR",
"nanos":9.0E7,
"units":"252"
},
"type":"ACTUAL"
},
"type":"SUBTOTAL"
},
{
"name":[
"MwSt. 19%"
],
"id":"tax",
"price":{
"amount":{
"currencyCode":"EUR",
"nanos":9.0E8,
"units":"47"
},
"type":"ACTUAL"
},
"type":"TAX"
},
{
"name":[
"Versandkosten"
],
"id":"delivery",
"price":{
"amount":{
"currencyCode":"EUR",
"nanos":0.0,
"units":"0"
},
"type":"ACTUAL"
},
"type":"DELIVERY"
}
],
"totalPrice":{
"amount":{
"currencyCode":"EUR",
"nanos":0.0,
"units":"299.99"
},
"type":"ACTUAL"
},
"extension":{
"@type":"type.googleapis.com/google.actions.v2.orders.GenericExtension",
"locations":[
{
"type":"PICK_UP",
"location":{
"name":"MediaMarkt Passau",
"postalAddress":{
"addressLines":[
"Regensburger Str. 37"
],
"postalCode":"94036",
"locality":"Passau"
},
"phoneNumber":"0851/95593-0"
}
}
]
}
},
"presentationOptions":{
"callToAction":"BUY"
}
}
你是从履行中传递过来的吗?是的,我是。后端中的所有代码都由实现调用。是的,但它到底出了什么问题?我把它和一个正在工作的相比。这两个都是相同的。值只有其他名称和价格,但格式是相同的。我得到了相同的错误,JSON是由GoogleJavaSDK上的操作生成的。