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

# Filter tickets

> Combine deterministic and AI filters with AND/OR logic to target the right work

Filters determine which tickets a workflow will process. You can use either *Deterministic filters* (i.e Status = `New`) or *AI filters* (i.e Ticket content is related to `printer issue`) to target the right tickets.

## Deterministic filters

Deterministic filters match explicit criteria like queue, status, priority, and company. They are predictable and fast. Example below when trying to filter for all tickets that are from a company called `Autotask Corporation` and are in a `New` status.

<Frame>
  <img src="https://mintcdn.com/neoagent/sS3srabBkfhvyGqC/images/deterministic-filters.png?fit=max&auto=format&n=sS3srabBkfhvyGqC&q=85&s=9360ab289ded56f8a47de0b8cb1cbb99" alt="Deterministic filter configuration for tickets" caption="Deterministic filter configuration for tickets" width="2828" height="796" data-path="images/deterministic-filters.png" />
</Frame>

## AI filters

AI filters capture intent across inconsistent fields and text. They reduce noise and catch edge cases. Example below when trying to filter for all tickets that are related to a `printer issue`.

<Frame>
  <img src="https://mintcdn.com/neoagent/veHQSriAqNTW5qHX/images/ai-filters.png?fit=max&auto=format&n=veHQSriAqNTW5qHX&q=85&s=b821e707539444dfa058c788b6f7d434" alt="AI filter configuration for tickets" caption="AI filter configuration for tickets" width="2844" height="704" data-path="images/ai-filters.png" />
</Frame>

## Building your filters using AI

We get that building filters can sometimes be a bit tricky. So to make this easier, you can get Neo to build your filters for you using the `Generate Rules` button. You'd specify, in natural language, what you want to filter for and Neo will build the filters for you.

<Frame>
  <img src="https://mintcdn.com/neoagent/G1PkeWrWjzTWVbma/images/generate-filters-modal.png?fit=max&auto=format&n=G1PkeWrWjzTWVbma&q=85&s=7e9c8febb134eae07fe62f37610b6a1c" alt="Modal to generate and refine AI filters" width="1770" height="766" data-path="images/generate-filters-modal.png" />
</Frame>
