> For the complete documentation index, see [llms.txt](https://docs.charted.com/ap-automation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.charted.com/ap-automation/charted-configuration/invoice-ai/advanced-settings.md).

# Advanced settings

This page covers the settings on the Charted OCR Settings record: where Invoice AI files source documents, which extra fields it auto-fills, and exceptions for individual vendors or subsidiaries. They are optional, and you may not need any of them.

Open **Charted > AP Automation > Settings**, press **Settings** in the left navigation under **Invoice Automation**, then press **Advanced Settings** under **Related Settings** on the Invoice AI Settings page. That opens the **Charted OCR Settings** record, where these settings live.

## Advanced Settings

| Setting                          | Default   | What it does                                                                                         |
| -------------------------------- | --------- | ---------------------------------------------------------------------------------------------------- |
| Custom PO Number Field           | Blank     | Points Invoice AI at a different field for the purchase order (PO) number                            |
| Invoice Document Folder ID       | Blank     | Sets where Invoice AI files your source documents                                                    |
| Auto-Fill Fields                 | Blank     | Adds fields Invoice AI populates from the vendor's earlier bills. See below.                         |
| Override default autofill fields | Unchecked | When on, your Auto-Fill Fields list replaces the standard autofill fields rather than adding to them |

Leave these blank unless you have a specific requirement.

### Where source documents are stored

Invoice AI keeps a source document for every transaction it creates, along with the email it arrived in. **Invoice Document Folder ID** decides which NetSuite File Cabinet folder receives them.

### Auto-Fill Fields

On bills without a purchase order, Invoice AI already fills these fields from the vendor's earlier bills:

| Line type     | Fields filled by default                                         |
| ------------- | ---------------------------------------------------------------- |
| Expense lines | Category (where available), account, department, class, location |
| Item lines    | Item, department, class, location                                |

Use **Auto-Fill Fields** when your team sets another field to the same value for a vendor every time, such as a custom classification or a header-level department.

For a header field, Invoice AI looks at that vendor's previous bill for the same subsidiary and copies the value forward. Line fields work differently, because there is no single obvious previous line to copy from: Invoice AI uses what it has learned to find the most similar line across several of the vendor's earlier bills, and takes the value from that.

Enter a comma-separated list of NetSuite field identifiers. Prefix a line field with the line type it belongs to:

```
body_field_id, expense.expense_line_field_id, item.item_line_field_id
```

| To fill                                                                    | Enter                                                |
| -------------------------------------------------------------------------- | ---------------------------------------------------- |
| A custom header memo field, and a custom department field on expense lines | `custbody_invoice_memo, expense.custcol_custom_dept` |
| A project field on item lines only                                         | `item.custcol_project_ref`                           |

With **Override default autofill fields** not enabled, Invoice AI fills your listed fields in addition to the defaults above. Enable it only when you want your list to replace the defaults.

For how this compares with Directions and Rules, see [Choosing the right tool](https://docs.charted.com/ap-automation/charted-configuration/invoice-ai/ai-directions.md#choosing-the-right-tool).

{% hint style="info" %}
Auto-fill applies to bills without a purchase order. Invoice AI ignores it on a bill linked to a purchase order, because the purchase order supplies those values.
{% endhint %}

## Subsidiary Settings

Use this when different subsidiaries need different vendor bill forms.

1. Open the **Subsidiary Settings** sub-tab.
2. Press **New Charted OCR Subsidiary Settings**.
3. Select the subsidiary and choose the **Default Vendor Bill Form** for it.
4. Press **Save**.

## Vendor Settings

Use this when one vendor should not follow your global settings. The override applies to that vendor's invoices only.

1. Open the **Vendor Settings** sub-tab, at the bottom of the Charted OCR Settings record.
2. Press **New Charted OCR Vendor Settings**.
3. Select the vendor in the **Vendor** field, and set the overrides you need.
4. Press **Save**.

| Override                   | When to use it                                                                                                                                                                                                                       |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Copy Lines from Prior Bill | The vendor's invoices repeat the same lines each period                                                                                                                                                                              |
| Line consolidation         | This vendor should consolidate, or not, against your global setting on [Invoice AI settings](https://docs.charted.com/ap-automation/charted-configuration/invoice-ai/invoice-ai-settings.md). The per-vendor setting takes priority. |
| Default bill line type     | This vendor's bills should default to expense or item lines differently from your global setting                                                                                                                                     |
| Vendor Bill Lookback       | The vendor sends very large invoices. Set it to 0 or 1 so Invoice AI references only their most recent bill.                                                                                                                         |
| Auto-Create Non-PO Bills   | The vendor's invoices are predictable enough for Invoice AI to create the bill without your review                                                                                                                                   |

For choosing which vendors to auto-create bills for, see [How do I identify vendors for auto-creation?](https://docs.charted.com/ap-automation/charted-faqs/invoice-ai/how-do-i-identify-vendors-for-auto-creation.md)

## Related

* [Configuration overview](https://docs.charted.com/ap-automation/charted-configuration/invoice-ai/configuration-overview.md), which lists where every setting lives
* [Invoice AI settings](https://docs.charted.com/ap-automation/charted-configuration/invoice-ai/invoice-ai-settings.md), for the account-wide settings these override


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.charted.com/ap-automation/charted-configuration/invoice-ai/advanced-settings.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
