Skip to main content

Email rules

Route/settings/smart-inbox/rules
Permissionthe relevant one on Smart Inbox

A rule says which emails from an account matter and what to do with them: save their attachments to the Knowledge Hub, analyze them with AI, or both. For example: "emails from invoices@supplier.com with 'invoice' in the subject: save the PDF to the Invoices folder and extract the data".

Rules are managed in Settings → Email rules.

List of email rules in ConsulPoint settings
Email rules

Create a rule​

  1. Click Create rule.
  2. Fill in the sections (see below).
  3. Click Save rule.

At the bottom of the form, Rule summary explains in one sentence what the rule will do with the chosen settings.

Name and priority​

FieldDescription
Rule nameRequired, between 3 and 100 characters
PriorityHighest, High, Medium (default), Low or Lowest
Description (optional)Up to 500 characters

If an email matches several rules, the one with the highest priority applies.

Mailbox​

FieldDescription
AccountRequired. The email account the rule reads. It cannot be changed later: for another account, create another rule
Capture emails sinceDate from which emails are captured. Empty: no date limit

Criteria​

CriterionExample
Subject keywordsinvoice, order
Sender emailsinvoices@supplier.com
Sender domainssupplier.com (includes its subdomains)

Add each value by pressing Enter or a comma.

  • An email is captured if it meets all the criteria you filled in.
  • Within a criterion, it is enough for one of the values to match.
  • Senders and domains count as a single criterion: it is enough for one of the two to match.
  • Matching is not case-sensitive. Keywords match even when they are part of another word.
  • With no criteria, the rule captures every email in the mailbox.

What to do with the emails​

Save attachments to the Knowledge Hub

FieldDescription
Folder for attachmentsRequired with this option. Your own folder or one shared with you with edit permission
File types (optional)PDF, DOCX, XLSX, CSV, TXT, PNG, JPG. With none selected, all are saved

Each attachment can be up to 25 MB.

Analyze with AI

When you turn it on, two fields are asked for, in this order:

FieldDescription
Results folderRequired. One file per analyzed email is saved here, in monthly subfolders
Mail readerRequired. A Mail Reader. It is chosen after the folder, because the folder decides which readers can be used
Analyze with AI card of an email rule, with the results folder and the list of mail readers grouped by result
Analyze with AI: first the folder, then the reader

Readers are grouped by their result, Structured data or Summary. The ones that do not fit the folder are shown disabled, with the reason:

ReasonWhy
This folder has a schema: it only accepts structured data readersThe folder has a schema assigned
This folder already holds summaries / This folder already holds structured dataA folder holds a single kind of result, and another rule already uses it with the other one

Analysis uses credits. See AI analysis.

Results folder requirements

It must be a folder you can write to and that is not a Smart Extract folder.

Rules without a folder

A rule with a Mail Reader and no results folder does not analyze emails. The rule list marks it with No folder, and editing it asks you to choose one.

When you change a rule's folder, if its reader no longer fits the new folder, you have to choose another reader before saving.

Save attachments from existing emails​

When you save a rule with attachments, the platform asks Save attachments of existing emails now?:

  • Save attachments now goes through all the account's emails that match the rule and saves their attachments. It runs in the background.
  • Not now creates the rule without processing anything.

You can repeat this at any time from the rule list, with Process attachments. Attachments the rule has already saved are not duplicated.

Manage rules​

The list shows, for each rule, the account, criteria, attachments folder, AI analysis, priority and status. Each rule's menu lets you:

ActionWhat it does
View detailsAll the settings and the Manual processing of the AI analysis
EditChanges the rule, except the account
Process attachmentsSaves the attachments of the emails that match the rule
Deactivate / ActivateA deactivated rule stops capturing and processing emails until it is activated again
DeleteDeletes the rule. This cannot be undone

Best practices​

Rules that work
  • One rule per type of email: invoices, orders, incidents. Each one with its own folder.
  • Specific criteria (sender or domain) rather than loose keywords, which capture more than they should.
  • A date in Capture emails since so you don't process years of old email.
  • Test the rule with the Smart Inbox rule selector before saving attachments or analyzing in bulk.