for i in range(len(resultSet)):
payload = "/doc_name{}".format(
{"doctor_name": resultSet[i]["doctor_name"], "doctor_id": resultSet[i]["doctor_id"],
"specialist": resultSet[i]["speciality"], "appointment_id": resultSet[i]["appointment_id"]})
payload = payload.replace('\'', '\"')
title = "{}[{}]".format(resultSet[i]["doctor_name"], resultSet[i]["speciality"])
# buttons.append(lst)
buttons.append({"payload": payload, "title": title})
dispatcher.utter_message("You have {} appointments with same name".format(no_app), buttons=buttons)
I am returning the button form actions. The slot is not getting set when we press the button…in UI side But on the other hand if run same in code in shell , slot when are mentioned in buttons are set. Any idea,why it is happening?