हाय मैं डायलॉगफ्लो से रिच रिस्पांस के साथ एक प्रतिक्रिया भेज रहा हूं। इस समृद्ध प्रतिक्रिया में हिंडोला है, लेकिन मुझे केवल साधारण प्रतिक्रिया दिखाई देती है। मुझे GA में हिंडोला प्रतिक्रिया नहीं दिखाई दे रही है..मेरी प्रतिक्रिया में कोई त्रुटि है? मुझे एक्शन-ऑन-कंसोल सिम्युलेटर में कोई त्रुटि नहीं दिख रही है ..
"payload": {
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "Please follow these steps:",
"displayText": "Please follow these steps:"
},
"Carousel": {
"items": [
{
"title": "Step 1/6",
"description": "hello",
"image": {
"url": "https://www.xx",
"accessibilityText": "hello"
}
},
{
"title": "Step 2/6",
"description": "hello",
"image": {
"url": "https://www.xx",
"accessibilityText": "hello"
}
},
]
}
}
],
"suggestions": []
}
}
}
}
1
Sakthi Subramanian
4 पद 2018, 18:55
1 उत्तर
सबसे बढ़िया उत्तर
यदि आप JSON को सीधे वापस भेज रहे हैं, तो Carousel और List ऑब्जेक्ट richResponse
प्रॉपर्टी का हिस्सा नहीं हैं। इसके बजाय, वे के बच्चों में बताए गए हैं systemIntent
प्रॉपर्टी।
पूरी प्रतिक्रिया कुछ इस तरह दिख सकती है
{
"payload": {
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "Choose a item"
}
}
]
},
"systemIntent": {
"intent": "actions.intent.OPTION",
"data": {
"@type": "type.googleapis.com/google.actions.v2.OptionValueSpec",
"carouselSelect": {
"items": [
{
"optionInfo": {
"key": "first title"
},
"description": "first description",
"image": {
"url": "https://developers.google.com/actions/images/badges/XPM_BADGING_GoogleAssistant_VER.png",
"accessibilityText": "first alt"
},
"title": "first title"
},
{
"optionInfo": {
"key": "second"
},
"description": "second description",
"image": {
"url": "https://lh3.googleusercontent.com/Nu3a6F80WfixUqf_ec_vgXy_c0-0r4VLJRXjVFF_X_CIilEu8B9fT35qyTEj_PEsKw",
"accessibilityText": "second alt"
},
"title": "second title"
}
]
}
}
}
}
}
}
(Dialogflow's sample github से लिया गया भंडार ।)
1
Prisoner
4 पद 2018, 16:14