How do I retain a response from buttons or a carousel?

I have a chatbot with questions in the form of buttons and carousels, and I want to record the answers to confirm all the choices users made at the end.
Was this page helpful?