Rules decide what happens to an incoming email before it becomes a lead. You can import emails as leads and send them to a particular pipeline, ignore emails entirely, such as newsletters, or file them straight into spam. Rules only apply to emails from your FlowLeads mailboxes. They play no part for forms, the API or emails handed over from FlowSupport.
You find them under Settings › Rules. This needs the right to manage the FlowLeads settings.

How FlowLeads checks rules
FlowLeads goes through the rules for each email from top to bottom. The first active rule that matches decides. The rules below it are not checked for that email. If no rule matches, FlowLeads creates a lead with the mailbox defaults.
Change the order with Move up and Move down. Put specific rules at the top and general ones further down.
Create a rule
- Click Add rule.
- Give the rule a name under Name, for example "Ignore newsletters". For spam rules this name later appears as the reason in the spam view.
- Under Mailbox, choose whether the rule applies to one mailbox or to All mailboxes.
- Set the Conditions (see below).
- Under Then, choose the Action.
- Click Save.
The Active switch in the list turns a rule off without deleting it. Edit changes it, Delete removes it together with all its conditions.

Conditions and groups
A condition consists of Field, Comparison and Value, for example "Subject contains quote".
Fields: Sender, Recipient, CC, Reply-To, Subject, Text, Attachment name and Has attachment (Yes or No).
Comparisons:
| Comparison | Matches when … |
|---|---|
| contains / does not contain | the value appears anywhere in the field, or does not |
| equals / does not equal | the field is exactly the value, or is not |
| domain is | the address belongs to this domain, subdomains included. example.com also matches mail.example.com |
| matches regex | the regular expression matches (see below) |
Not every comparison fits every field; the editor only offers the ones that do. Upper and lower case never matter. If a field holds several addresses, such as several recipients, contains already matches when one address matches. does not contain and does not equal only match when no address matches. So an email without CC fulfils "CC does not contain …".
Group conditions with Add condition and Add group. Inside a group, choose All (AND) or Any (OR), and under Combine groups you set the same for the groups among each other. That way you can build, for example: "Subject contains quote OR Subject contains enquiry" AND "Text does not contain unsubscribe".
A rule without any condition never matches. That stops an empty Ignore rule from swallowing every email by accident.
Regular expressions
Enter the expression without delimiters, so quote|enquiry instead of /quote|enquiry/i. At most 200 characters are allowed. So that a rule cannot bring processing to a halt, FlowLeads rejects some constructs when you save: nested repetitions such as (a+)+, backreferences and recursion.
What a rule can do
| Action | Result |
|---|---|
| Import | A lead is created. Optionally you set a Pipeline, Stage, Assignment, Source and Tags that differ from the mailbox defaults. Whatever you leave empty or on As set on the mailbox comes from the mailbox. Tags of the rule are added to the mailbox tags. |
| Ignore | No lead, no AI. The email only stays in the mailbox. |
| Mark as spam | The lead is created straight in the spam view, without notification and without AI. You can restore it there. |
Replies to an email that already has a lead do not go through the rules. They always land on the timeline of the existing lead.
When a rule does not apply
- Is there another active rule higher up that also matches? Then that one decides.
- Is the rule limited to a different mailbox?
- Is the Active switch on?
- With equals, the field has to match the value exactly. For part of a subject use contains.