# Creating a New Invoice AI Rule

### Abstract <a href="#id-43day6xst4wm" id="id-43day6xst4wm"></a>

Creating an *Invoice AI* rule in **Charted** lets administrators enforce prescriptive “if-then” logic during invoice processing — such as assigning a static subsidiary or routing invoices to a specific queue owner based on the sender’s email or document text. By automating these decisions, organizations ensure consistent data entry and eliminate repetitive manual tasks, accelerating approvals and reducing errors.

In this article, you’ll learn how to add, save, and edit or deactivate an *Invoice AI* rule.

### Creating a New Invoice AI Rule <a href="#id-6wdimvkkhmze" id="id-6wdimvkkhmze"></a>

This section explains the step-by-step process of defining a new rule on the **Charted OCR Rule List** page.

Follow these steps to configure the invoice AI rule as required:

1. Once you are on the **Charted OCR Rule List** page, click the **New Charted OCR Rule** button to create a new **Invoice AI** rule. Clicking on this button will take you to a new **Charted OCR Rule** page:\ <br>

   <div align="left"><figure><img src="https://4244775538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDi74GwuQpTYzdGbZQFpz%2Fuploads%2FOL9gMW5it8FUSbBcwcCn%2Fimage.png?alt=media&#x26;token=b4e0af9f-a66e-40df-8a7c-cd9c1acb4345" alt=""><figcaption></figcaption></figure></div>

   <div align="left"><figure><img src="https://4244775538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDi74GwuQpTYzdGbZQFpz%2Fuploads%2FmWMhR7MOWsFWcNvSfqq4%2Fimage.png?alt=media&#x26;token=0834d11c-1fd0-442d-b838-e2c9ae38605f" alt=""><figcaption></figcaption></figure></div>

   <br>
2. Here, the rule relies on prescriptive if-then logic: when the specified condition is met, another action must automatically occur. For instance, if an invoice arrives from a particular email address, you can check the **ASSIGN SUBSIDIARY** box to route it to a designated entity:\ <br>

   <div align="left"><img src="https://4244775538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDi74GwuQpTYzdGbZQFpz%2Fuploads%2FF0xvI49UkNFBbfM9h4Tt%2F2.png?alt=media&#x26;token=5784b999-c687-4f68-89ea-f3bf5d115dd1" alt=""></div>

   \
   This setup is common for organizations that maintain separate AP inboxes for **Subsidiary One** and **Subsidiary Two**, ensuring each invoice posts to the correct subsidiary.<br>
3. Every time we receive an email from one of those different email addresses, instead of trying to determine what the subsidiary is, we do have the logic to do that. You can choose options from the **SUBSIDIARY** dropdown:\ <br>

   <div align="left"><img src="https://4244775538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDi74GwuQpTYzdGbZQFpz%2Fuploads%2FciQuLMORPIDz7qjR5GFR%2F3.png?alt=media&#x26;token=503009b4-20c7-4fb5-8b2a-ffc8687b63a1" alt=""></div>

   \
   \
   And if you just want to set it to a static value, that would be an example of forcing a behavior based on that if-then logic, probably the most common use case for a rule.<br>
4. Another use case might be assigning a queue owne&#x72;**.** So, if an invoice comes from a particular email or the document file contains particular text, it should be assigned to a particular person in the inbox to process, another use case to be used to assign a rule.<br>
5. For example, if the **DOCUMENT FILE NAME CONTAINS** *Michael Johnson*, then the **ASSIGN QUEUE OWNER** dropdown should have *Michael Johnson* selected:\ <br>

   <div align="left"><img src="https://4244775538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDi74GwuQpTYzdGbZQFpz%2Fuploads%2F1URudaweIVbpamkd8Qcd%2F4.png?alt=media&#x26;token=229214d3-9eaf-49c2-9a64-861a2cf589ba" alt=""></div>

   \
   That is another potential use case with very rigid logic — if this applies, then another action must take place.<br>
6. After making these changes, the next step is to name this rule (e.g., *MJ as owner*) in the **RULE NAME** box and click the **Save** button to apply the changes:\ <br>

   <div align="left"><figure><img src="https://4244775538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDi74GwuQpTYzdGbZQFpz%2Fuploads%2FBfLMJsIxqos25Iuin21Y%2Fimage.png?alt=media&#x26;token=8a1c2cac-f46d-46e3-b0c4-d579808212c3" alt=""><figcaption></figcaption></figure></div>

   \
   You can always go back in and edit this name later if needed.<br>

### Editing or Deactivating a Rule <a href="#id-5p5fsr1zdf7w" id="id-5p5fsr1zdf7w"></a>

If you need to change or deactivate an existing rule, follow these steps:<br>

1. To start, hover over the **Charted** menu, then the **AP Automation** tab, and select **Settings**:\ <br>

   <div align="left"><figure><img src="https://4244775538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDi74GwuQpTYzdGbZQFpz%2Fuploads%2FHi0AnQo0KwnFhDDKq9CM%2Fimage.png?alt=media&#x26;token=1f9aa65b-b287-4f8c-a9ba-0dbede171619" alt=""><figcaption></figcaption></figure></div>

   <br>
2. Next, click the **Settings** button next to the **Invoice AI** option on the **Charted Platform Features** page:\ <br>

   <div align="left"><figure><img src="https://4244775538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDi74GwuQpTYzdGbZQFpz%2Fuploads%2FJkN8w7PoMIsAAx95caCQ%2Fimage.png?alt=media&#x26;token=520a60e2-fe0a-4424-b73c-470c7dc300d7" alt=""><figcaption></figcaption></figure></div>

   <br>
3. Then, once on the **Invoice AI Settings** page, click the **Invoice AI Rules** option:\ <br>

   <div align="left"><figure><img src="https://4244775538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDi74GwuQpTYzdGbZQFpz%2Fuploads%2FMtRJ2iXbjuXfXd0HaS3s%2Fimage.png?alt=media&#x26;token=e74c4340-b6a1-4dab-ba01-d287b5097cf1" alt=""><figcaption></figcaption></figure></div>

   <br>
4. On the **Charted OCR Rule List page**, you will see the rule you just created listed there. To edit this rule, click the **Edit** option:\ <br>

   <div align="left"><figure><img src="https://4244775538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDi74GwuQpTYzdGbZQFpz%2Fuploads%2FmrISdgaxSFrtHJ1teQYd%2Fimage.png?alt=media&#x26;token=fbb669b8-a617-432c-9a5a-de1fc9aeb6d7" alt=""><figcaption></figcaption></figure></div>

   <br>
5. To make this rule inactiv&#x65;**,** check the **INACTIVE** box and click the **Save** button to apply the changes. The rule will no longer be displayed in the list:\ <br>

   <div align="left"><figure><img src="https://4244775538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDi74GwuQpTYzdGbZQFpz%2Fuploads%2FEGdqKQigt7EkoDHzNH7q%2Fimage.png?alt=media&#x26;token=3180280b-a8e5-46fe-be76-ab4203942a46" alt=""><figcaption></figcaption></figure></div>

   <div align="left"><figure><img src="https://4244775538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDi74GwuQpTYzdGbZQFpz%2Fuploads%2FAqYAqZTqh1qQfGynSyLA%2Fimage.png?alt=media&#x26;token=e4f194bc-a87e-40c8-9cf4-fdfc3af00b2b" alt=""><figcaption></figcaption></figure></div>

   <br>

This concludes the process of creating a new **Invoice AI** rule in **Charted**.
