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

> ## Agent Instructions
> Mono is an AI platform for small and medium-sized firms in Switzerland, Germany, Austria and Italy. Answer in the reader's language. Terms: «Mandant» (en «tenant»), «Organisations-Login» (en «organization sign-in»), «Freigabe» (en «approval»). Reading needs no approval; every write waits for one. Never suggest pasting a key or token into a chat.

# File new scans with filing rules

> File every new scan that fits as a copy into a share of the same Mono Connector, by type and customer, with one approval per filing.

A filing rule files every new scan of a scan inbox (A folder the scanner writes into and from which the Mono Connector brings every new file into the tenant’s knowledge.) that fits as a copy into a folder of a share on the same device, by type and customer, such as `Customers/<Customer>/Invoices`. Every filing waits in the Inbox as an approval (An action that writes waits for a person’s confirmation.).

From Mono 0.4.3

> [accordion] What you need
>
> * The Admin role in the tenant. You may use the scan inbox and the share yourself.
> * A Mono Connector with a scan inbox and a share (network drive) on the same device, see [Connect a network drive, scan inbox and legacy system](https://mono.mintlify.site/en/admins/shares-scan-legacy.md).
> * For the share: the folder on the device with `:rw` and “Allow saving” under Connectors.
> * The share’s data class is at least the scan inbox’s.

## Add a rule

**1. Open the scan inbox’s rules**

Open Connectors. In the row of the scan inbox, such as “Empfang” in “Büro Zürich”, choose “Add filing rule”. If it already has rules, it says “Filing rules: 1”. The row’s menu opens the same with “Filing rules …”.

**2. Describe the rule**

The form is already filled with the Default: “Name” “Invoices by customer”, under “Document type” “Invoice”, the first “Share” Mono may file into, and under “Folder” `Customers/<Customer>/Invoices`. Mono fills in the placeholders `<Customer>`, `<Type>`, `<Year>` and `<Month>` for each scan.

Under “Known customers (optional)” you name one customer per line. Without a list, the sender is the customer, for example “Payable to” of a QR-bill. Under “More conditions” are “Keywords”, “Sender contains”, “File name contains” and “Ask the model where the rules find nothing”.

![Filing rules · Empfang with the name “Rechnungen nach Kunde”, type “Rechnung”, the share, the folder Kunden/\<Kunde>/Rechnungen and the dry run, Büro Zürich, Muster AG](https://mintcdn.com/mono/rCyoy1dN0QEXZ3No/images/filing-rules/form-light.jpg?fit=max\&auto=format\&n=rCyoy1dN0QEXZ3No\&q=85\&s=7c55fc7e6011c1953f228d29a631fe80)

A filing rule’s form with the dry run

**3. Look at the dry run**

Choose “Dry run”. Mono shows what the rule would do with the last arrivals: where each scan would go, or why not, such as “customer not recognized” or “other type”. Nothing is written, and no approval is created.

**4. Add the rule**

Choose “Add rule”. The rule applies to new scans from now on. It does not file older scans.

> [!TIP]
>
> The “Filing rules · Empfang” window shows the rule with “on”, its target and “30 days: 0 filed, 0 waiting for approval”. The scan inbox’s row says “Filing rules: 1”.

## A rule for a folder of a network drive

The same rule exists for a folder of a network drive, such as “Inbox”, that a mail export or a download folder writes into: Mono moves each new file there that fits, by type and customer, with the same approval.

**1. Open the network drive’s rules**

Open Connectors. In the menu of the network drive’s row, such as “Ablage”, choose “Filing rules …”.

**2. Name the folder and describe the rule**

“Watched folder” says “Inbox”; empty means the top level. The rest is as for a scan inbox. The network drive needs `:rw` and “Allow saving”, because Mono moves the file out.

**3. Create the rule**

Choose “Create rule”. It applies to files that come into the folder from now on – what is there already shows in the dry run and is not filed.

> [!TIP]
>
> A new invoice in “Inbox” waits as “Move the file … to …” in the Inbox; after “Confirm” it is in the rule’s folder. The same file renamed in the folder is not filed again.

## Approve a filing

When a new scan that fits arrives, it waits as “File scan” in your Inbox. The preview names the scan, its origin, type, customer, share, folder and data class. Until you decide, the share stays untouched.

* “Run” (key E): the device copies the scan into the folder. If a folder is missing, it creates it.
* “Always allow for …” (key I): the next filings of exactly this rule run for 90 days without asking. The rule then shows “Always allowed until …”. You revoke it under Profile › Always allowed.

![Inbox with the approval to file the scan “Rechnung 118.txt” in “Ablage › Kunden/Garage Beispiel AG/Rechnungen”, the preview and the buttons to run it or always allow it, Muster AG](https://mintcdn.com/mono/rCyoy1dN0QEXZ3No/images/filing-rules/inbox-light.jpg?fit=max\&auto=format\&n=rCyoy1dN0QEXZ3No\&q=85\&s=40f9c6815cf3833ee3fb6d3c72ad561e)

A filing waits as “File scan” in the Inbox

## What the rule counts

Every rule shows what the Node measured: “30 days: … filed, … waiting for approval”. A rule’s menu holds “Edit”, “Dry run”, “Pause” or “Resume”, “View in the Inbox” and “Remove”. Filed scans stay where they are, also when you remove the rule.

> [accordion] How Mono recognizes type and customer
>
> Mono recognizes the type by its words in German, French, Italian and English, such as “Rechnung”, “Facture”, “Invoice”. Mono knows invoice, reminder, credit note, quote, order, delivery note, contract and payslip. Mono takes the customer from your list or from the sender: “Payable to” of a QR-bill, a “From:” line or the letterhead.
>
> Mono asks one of the tenant’s models only when you switch on “Ask the model where the rules find nothing” (Default: off) and the rules found nothing. Mono then sends the scan’s data class along, and “confidential” goes only to a model on your own hardware.

> [accordion] Undo
>
> In the rule’s menu, choose “Pause”. Mono then files nothing until you choose “Resume”. “Remove” deletes the rule. Copies already in the share stay there.

## What Mono never does

* Overwrite a file. If a name is taken, the copy gets “ (2)”.
* Move or delete a scan. The original stays on its device.
* File a scan without approval, unless you always allowed exactly this rule.
* File a scan into a share with a lower data class, or with more rights than the person who added the rule has.

## Limits

* A rule files only new scans, each scan once and by the first rule that fits. It does not file older documents afterwards.
* The share must be on the same Mono Connector as the scan inbox. A share on another device is not possible yet.
* At most 50 filing rules per tenant.
* The dry run looks at the last arrivals, 10 by default, at most 50.
* A second person for filings by a tenant rule is not available yet.

## In the chat

Ask “Mono Admin”. The answer is a card with the rule; what changes, it shows as “Please confirm”, and it applies only after your click.

Add a filing rule

Please add a filing rule for the scan inbox “Empfang” in Büro Zürich: invoices by customer into the share, folder Customers/\<Customer>/Invoices.

“Mono Admin” shows “Please confirm” with before and after. After you confirm, the rule is on. In the same conversation you show the dry run, pause the rule, resume it, change it or remove it.

What a rule checks – such as “sender contains “…”” – is read by your AI client too. If you do not want a customer’s name there, add the rule in the Console.

Show the dry run

What would the filing rule “Invoices by customer” do with the last scans?

## If something does not work

| What you see | What you do |
| - | - |
| “This device has no share Mono may file into.” | Mount a share with `:rw` on the device and switch on “Allow saving” under Connectors. |
| At a share: “read-only on the device” | The folder is mounted on the device without `:rw`. |
| At a share: “filing is switched off” | Switch on “Allow saving” in the share’s menu. |
| At a share: “lower than “confidential”” | The share has a lower data class than the scan inbox. Choose another share. |
| “This folder is not possible like this.” | Name a folder inside the share, separated by “/”. |
| The rule shows “Cannot file” | The tooltip gives the reason. Usually the right to the share or writing on the device is missing. |
| In the dry run: “customer not recognized” | Name the customer under “Known customers (optional)” or switch on “Ask the model where the rules find nothing”. |
| “Nothing has arrived in this scan inbox yet.” | The scanner does not write into the folder yet. Check the target on the scanner. |
| “The filing rules cannot be loaded right now.” | Choose “Try again”. If it stays, check the Node under Operations. |
| “This filing rule no longer exists.” | Someone removed it. Close the window and open the filing rules again. |
| “This Mono Connector is not paired (any more).” | Pair the device again, see [Pair a Mono Connector](https://mono.mintlify.site/en/admins/pair-connector.md). |
| “You have no access to the scan inbox “Empfang”.” | An admin adds you under Connectors in the scan inbox’s “For”. |
| ““Büro Zürich” has no share “Archiv”. …” | Choose a share of the same device. The scan never leaves its device. |
| “Filing is switched off in “Ablage”. …” | Switch on “Allow saving” under Connectors in the share’s menu. |
| “The Mono Connector does not file this file type.” | The scan stays in the scan inbox. File it by hand. |

## Next

> [card] [Drives and scanner](https://mono.mintlify.site/en/admins/shares-scan-legacy.md)
>
> Connect a scan inbox and a share.

> [card] [Tutorial: scan invoices](https://mono.mintlify.site/en/tutorials/treuhand-scan-invoices.md)
>
> Treuhand Berg AG scans invoices into the knowledge.

> [card] [Data classes](https://mono.mintlify.site/en/concepts/data-classes.md)
>
> What “public”, “internal” and “confidential” mean.

> [card] [Manage Mono in the chat](https://mono.mintlify.site/en/admins/mono-admin-chat.md)
>
> The Console per chat.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.