How to save users' answers in a CSV file?

I’d like to ask users a set of questions, and I’m wondering how can I save all the answers from users in a CSV file?

You can use forms. While the user fills the forms, their answer gets saved in the slots.

Use rules to link the form to a custom action once the form has been completed.

In the custom action, get the slot values with tracker.get_slot() and save it in a CSV file as you would with any Python code.