# Creating and Scoping New Directions

### Abstract <a href="#hrr3tr9g1lly" id="hrr3tr9g1lly"></a>

*Invoice AI Directions* allow administrators to guide how the AI model processes invoices by setting specific natural language instructions. These directions act as exceptions to general rules and help tailor invoice handling based on keywords or vendors. Administrators can better control invoice data recognition for complex or vendor-specific documents by configuring new directions. For example, if every delta consultants invoice contains the phrase “*Delta Consultants*,” you can create a direction that applies exclusively to that vendor.

In this article, you’ll learn how to create a new **AI Direction**, set its identifying keywords, and decide whether it should apply universally or only to selected documents.

### Creating and Scoping New Directions <a href="#qib2mgen1518" id="qib2mgen1518"></a>

**AI Directions** are one-off instructions you add when the standard rules are not enough. Each direction triggers only when its document keywords appear, letting you confine the behavior to a single vendor, account number, or any custom marker you choose.

Follow these steps to add a new direction and set its scope:<br>

1. Once you are on the **AI Directions** page, click the **Create AI Direction** button, which will open the **Create AI Direction** page:\ <br>

   <div align="left"><img src="/files/EelVBkNVToHgCPViZBal" alt=""></div>

   <div align="left"><img src="/files/ylTWH8Ryrei97BVkLJO7" alt=""></div>

   <br>
2. Next, enter a name for the direction (e.g., *Test for training)* in the **Direction Name** box:\ <br>

   <div align="left"><img src="/files/8OuUmT6JXsFrBgaRB5BT" alt=""></div>

   <br>
3. In the **Identifying Document Keyword(s)** box, type in your desired keyword that turns the direction on:\ <br>

   <div align="left"><img src="/files/MmCFtX7ONcvcQSNQNqDS" alt=""></div>

   \
   \
   Use something unique on the document, such as a vendor name, account number, or tax ID, so the direction applies only when those keywords appear.\ <br>
4. If you need the direction to apply broadly, enter a period (.) in the **Identifying Document Keyword(s)** box since a period appears on every invoice, so the direction runs across the board:\ <br>

   <div align="left"><img src="/files/uwzGFsP3E5V51JS4Gwls" alt=""></div>

   <br>
5. If you want this to apply to delta consultants only, type **Delta Consultants** in the **Identifying Document Keyword(s)** box so the direction triggers exclusively for that vendor:\ <br>

   <div align="left"><img src="/files/TW1n2mgU5hGJZhHrlRfS" alt=""></div>

   <br>

This concludes the overview of creating a new direction in **Charted**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.charted.com/ap-automation/charted-configuration/invoice-ai/creating-and-scoping-new-directions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
