Is it possible to capture the text of the quick reply button when clicked on it ? Is there any specific event for it ?
In quick replies, we have a field called “button value”, whatever you give in the button value, you will be able to fetch that. Using button value, you can know which QR button is clicked.
Yes, if you want to write code for it, store the response in some variable.
just after the QR node, attach a function, in that function use :-
let response =
@ShreyasMahajan can you share some more context
Why do you need to pass it to client side. What kind of datapoint is it and will this constantly change?
Sure. I have a few buttons as shown in screenshot below :
Here is the use Case : I want to capture the text on the button. For Example : How to Preview Online Exam ? I am doing this to find out which is the most used/clicked button in my chatbot. The text on this buttons will not change constantly. It will remain the same.
You can measure this in 2 ways
- user journey visualizing
- Use the analytics node in this specific point to log which button gets clicked