I am trying to trigger an event on button click in dialogflow using Python inside of a dialogflow console
message={"fulfillmentMessages":
[{"text": {"text":
["Please choose one of the options below"]}
},
{"card":{
"buttons": [
{
"text": "Make A Reservation",
"event": {
"name": "makereservation",
"languageCode": "en-US"
}
},
{
"text": "Cancel Reservation",
"event": {
"name": "cancelreservation",
"languageCode": "en-US"
}
},
]
}}
]
}
This is just a sample. I would like to trigger events with name makereservation and cancelreservation but they don't get triggered in the dialogflow console. Also I am using python for the same. I am unable to fix the bug even after spending lot of time.