> ## Documentation Index
> Fetch the complete documentation index at: https://langwatch.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Automatically build datasets from real-time traces

> Automatically build datasets from real-time traces to power LLM evaluations, regression tests, and AI agent testing workflows.

You can keep continously populating the dataset with new data arriving from production by using **Automations**, mapping trace fields to any dataset columns you prefer.

Simply go to the Messages page and select a filter (for example, by model), the Add Automation button will be enabled:

<div style={{ display: "flex", justifyContent: "center" }}>
  <Frame caption="Add Automation" style={{ maxWidth: "300px" }}>
    <img className="block" src="https://mintcdn.com/langwatch/zEjkqM6j5EFLGO6F/images/add-automation-filter.png?fit=max&auto=format&n=zEjkqM6j5EFLGO6F&q=85&s=6784604d50d9f139b6ae6695f3aa44b3" alt="LangWatch" width="642" height="1388" data-path="images/add-automation-filter.png" />
  </Frame>
</div>

For Action, select **Add To Dataset**, and chose the right fields to map from the trace to the dataset:

<Frame caption="Add To Dataset">
  <img className="block" src="https://mintcdn.com/langwatch/zEjkqM6j5EFLGO6F/images/add-to-dataset-automation.png?fit=max&auto=format&n=zEjkqM6j5EFLGO6F&q=85&s=66ba8b2206118a0f83304f4d041b5e97" alt="LangWatch" width="3024" height="1718" data-path="images/add-to-dataset-automation.png" />
</Frame>

Hit save, and that's it! Now every time a new message matches the filter, the automation will be fired and the dataset will be populated with the new row.
