# What is Intent Agent?

The **Intent Agent** enhances search accuracy across large Knowledge Bases by intelligently identifying the most relevant files based on Knowledge Base and folder descriptions. It helps the AI route queries to the right content, returning more precise and relevant information.

### How It Works

The Intent Agent analyzes your query and matches it against folder and Knowledge Base descriptions to determine where to search first. This is especially useful for large, complex data sources.

| Without Intent Agent                | With Intent Agent                         |
| ----------------------------------- | ----------------------------------------- |
| Searches across all indexed content | Prioritizes the most relevant folders/KBs |
| May return less targeted results    | Returns more precise, contextual answers  |

### How to Enable Intent Agent

The Intent Agent is an optional feature activated when building a Knowledge Bot.

1. Navigate to your Knowledge Bot settings
2. Locate the **Intent Agent toggle** (typically on the left side of the interface)
3. Enable the feature

> **Note:** If you don't see the Intent Agent toggle, contact your Knowledge Bot Admin to enable this feature.´

### Folder Structure & Performance

A well-organized folder structure significantly improves Intent Agent accuracy.

#### How Structure Affects Performance

| Approach                                       | Effect on Accuracy  | Effect on Query Speed  |
| ---------------------------------------------- | ------------------- | ---------------------- |
| Organizing folders **within** a Knowledge Base | ✅ Improves accuracy | ❌ No speed improvement |
| Splitting into **separate Knowledge Bases**    | ✅ Improves accuracy | ✅ Reduces query time   |

Currently, Intent Agents index at the **Knowledge Base level**. This means:

* **Folder reorganization** helps route queries more accurately
* **Separate Knowledge Bases** reduce both search scope *and* query time

#### Best Practice: Intent-Based Structure

Avoid generic folders like "Not Assigned." Use clear, domain-specific paths:

```
HR/  
├── Processes/  
│   ├── Onboarding/  
│   ├── Travel/  
│   └── Working Hours/  
├── Policies/  
├── Forms & Templates/  
└── Systems & Tools/  
```

> **Tip:** Keep an "Inbox" folder only as a temporary holding area—regularly sort content into proper categories.

#### Improving Folder & KB Selection

To increase accuracy when selecting folders and Knowledge Bases, adjust the LLM settings under **Settings > GenAI Defaults**.

<figure><img src="https://3232460952-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIabFtGTeQzwfWCzp8vd6%2Fuploads%2FPBIH0k2s1WU5dy6GjbxU%2Fimage%20(34).png?alt=media&#x26;token=30b830c1-9a99-40ed-a644-e3c82f6149c4" alt=""><figcaption></figcaption></figure>

### Best Practices for Queries

#### 1. Ask Detailed Questions

Provide enough context to ensure the AI fully understands your needs.

| ❌ Before                            | ✅ After                                                            |
| ----------------------------------- | ------------------------------------------------------------------ |
| How long should I keep client data? | How long should I keep client data accumulated during Project XYZ? |

#### 2. Rephrase If Necessary

If the AI's response isn't ideal, try rephrasing your question for better clarity.

#### 3. Use Domain-Specific Terms

Reference specific processes, systems, or document types to help the Intent Agent route your query correctly.
