I am Already using this custom payload to generate buttons but how can I link specific intent to the buttons like in the example below if user clicks yes follow up default intent yes response and so on.
{
"richContent": [
[
{
"text": "Yes",
"link": "https://example.com",
"type": "button",
"icon": {
"color": "#FF9800",
"type": "chevron_right"
},
"event": {
"languageCode": "en",
"name": "DefaultWelcomeIntent.DefaultWelcomeIntent-yes",
"parameters": {}
}
},
{
"event": {
"parameters": {},
"name": "DefaultWelcomeIntent.DefaultWelcomeIntent-no",
"languageCode": "en"
},
"type": "button",
"link": "https://example.com",
"text": "No",
"icon": {
"type": "chevron_right",
"color": "#FF9800"
}
}
]
]
}