@pankaj676, follow the below stesp:
-
you need to add buttons in you front-end before calling the Rasa server, the
Language button suggestion
which you are trying to send from Rasa must be shown directly from the front-end not from Rasa server. -
so those language buttons are not the part of response of Rasa server, it should be as hardcoded buttons from the UI and you must not handle those button click event using the
addSuggestion
function since it handles the response of Rasa server -
you need to write a function similar to
addSuggestion
which will check the language selected by user and then call the respective language bot of the Rasa.