Reports in bots

In the new Automation functionality, how I create a report in PDF? I need to have a button in my data main view that triggers producing a report with a subset of the records meeting certain conditions and displaying a subset of the columns. The report would be a table printed in a PDF and sent as an attachment to an email.