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

# Trace Automations | Automated LLM Monitoring

> Automatically act on LLM trace data with rule-based automations. Add traces to datasets, trigger reviews, and scale quality monitoring without manual work.

## **What Are Trace Automations**

Trace Automations provide a way to build datasets, trigger actions, and streamline monitoring directly from trace activity.\
Each automation consists of:

* **Filters** — define which traces to target (for example, by status, tags, or feedback score)
* **Sampling rate** — choose what percentage of matching traces should trigger actions
* **Actions** — define what happens when a trace meets the conditions

This makes it easy to automatically collect, review, and evaluate traces as your application scales.

<Frame caption="Configuring your automation">
  <img src="https://mintcdn.com/orqai/y-oiaAggvg-y1TdJ/images/trace-automation-interface.png?fit=max&auto=format&n=y-oiaAggvg-y1TdJ&q=85&s=ace3554ecdc818ddaa366ecd7c2cf0ef" alt="Trace automation interface" width="798" height="906" data-path="images/trace-automation-interface.png" />
</Frame>

## **Why Use Automations**

As your LLM applications grow, the number of traces generated can quickly become too large to review manually.
Automations ensure that your most important traces are captured and acted on without manual work — whether for quality assurance, retraining, or debugging.

You can use automations to:

* Automatically **add traces to a dataset** for future evaluation or fine-tuning
* Send traces with **low feedback scores** to an **annotation queue** for human review
* **Trigger webhooks** to launch remote evaluations or downstream processes
* Extend **data retention** for traces with specific outcomes
* Sample a percentage of traces for **random quality checks**

## **Setting Up Trace Automations**

To create a new automation:

<Steps>
  <Step title="Navigate to Traces">
    Navigate to the **Traces** section in the AI Studio.
  </Step>

  <Step title="Create Automation">
    Select the **Automations** tab at the top.

    Click **Create Automation**.
  </Step>

  <Step title="Set Filters">
    Define the Filters for the Traces.

    Matching Traces will execute the desired Action.

    <Frame>
      <img src="https://mintcdn.com/orqai/8LR_8MYngeJCi-9L/images/automation-filter.png?fit=max&auto=format&n=8LR_8MYngeJCi-9L&q=85&s=23202fe83891d66b23c309446a1d06a5" alt="Automation Filter" width="459" height="410" data-path="images/automation-filter.png" />
    </Frame>
  </Step>

  <Step title="Set Sampling Rate">
    Define the Sampling Rate: choose how many matching Traces will execute the Action
  </Step>

  <Step title="Define Action">
    Choose from the following action:

    * Add to [Dataset](/docs/datasets/overview).
    * Add to [Annotation Queue](/docs/administer/annotation-queue).
  </Step>

  <Step title="Enable Automation">
    Once saved, your automation will only run on future Traces coming into the Platform.
  </Step>
</Steps>

Once active, every new trace that matches your defined filters will trigger the configured action automatically.
