> ## 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.

# Add trace threads to datasets

> Add full conversation threads to datasets in LangWatch to generate richer evaluation inputs for AI agent testing.

To add trace threads to a dataset, follow these steps:

<Steps>
  <Step title="Create a new dataset">
    Create a new dataset in your LangWatch workspace.
  </Step>

  <Step title="Add a traces column">
    Add a traces column with the JSON data type to store the trace data associated with each thread ID.

    <Frame>
      <img className="block" src="https://mintcdn.com/langwatch/-v0XgW5kRdRH4vBO/images/dataset-thread-type.png?fit=max&auto=format&n=-v0XgW5kRdRH4vBO&q=85&s=b35c944b2f936ac3abb06287db4f77de" alt="LangWatch Dataset Thread Add" width="1600" height="792" data-path="images/dataset-thread-type.png" />
    </Frame>
  </Step>

  <Step title="Add threads to the dataset">
    By selecting the thread mapping option, you can choose which information from the trace to include in the dataset. By default, the JSON object contains INPUT and OUTPUT fields.

    <Frame>
      <img className="block" src="https://mintcdn.com/langwatch/-v0XgW5kRdRH4vBO/images/dataset-thread-add.png?fit=max&auto=format&n=-v0XgW5kRdRH4vBO&q=85&s=fa7639a44421b81584e6740f5b1a50ad" alt="LangWatch Dataset Thread Add" width="2498" height="1124" data-path="images/dataset-thread-add.png" />
    </Frame>
  </Step>

  <Step title="That's it!">
    You can select multiple traces to add to the dataset. When using the thread mapping option, all traces will be grouped by the thread ID.
  </Step>
</Steps>
