Export API data to a spreadsheet

I am pulling data from an external API which I connected using Bubble API Connector and displaying it in a repeating group. I want to provide an option to allow the user to download the API data as a spreadsheet. How would I go about that?

I was able to figure it out. Simply create a button (or icon) to export the API data in a spreadsheet. Then, in the workflow, go to Data (Things) > Download data as CSV. From there, you can set the data source to your API call.

screenshot|