This problem is arising when using events. Say, after a particular event 'A' occurs, intent 'X' is called. 'X' has fulfillment webhook which tries to render a SimpleResponse response and a BasicCard response. But, in the simulator, only the SimpleResponse can be seen and not the BasicCard. There are no errors reported in the simulator also. Below is the JSON response:
{
"payload": {
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "Sample Text1"
}
},
{
"basicCard": {
"title": "Sample Text2 ",
"formattedText": " Sample Text3",
"image": {
"url": "Sample working URL1"
},
"buttons": [
{
"title": "Sample Text4",
"openUrlAction": {
"url": "Sample working URL2"
}
}
]
}
}
]
}
}
}
}
Now what is surprising, the same JSON response renders both SimpleResponse as well as BasicCard response when another intent 'Y' is called by one of its utterance. 'Y' is also linked to a webhook fulfillment. Any reason why?