Create the automation
- Open the Trace Explorer and set the filter that selects the traces you want, for example an evaluation result or a metadata value.
- Click Automate in the toolbar. The automation drawer opens with the current filter as its subject.

Add Automation
- Pick Add to dataset as the action, choose the dataset, and map the trace fields to its columns. Columns named
input,output,expected_output,contexts,total_cost,spans,trace_idandtimestampare mapped for you; any other column maps to the metadata key with the same name until you change it.

Add To Dataset
- Save. From then on, every trace that matches the filter adds one row to the dataset.