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

# 🔍 Smart rule filters

> Combine additive or independent filters when configuring Upflow smart rules, with practical examples covering the most common triggers and edge cases.

**Goal:** Build rule conditions that fire on exactly the customers you meant, and no others.

Smart rules assign workflows, owners, and payment methods automatically, so a rule that matches too broadly quietly reshapes your collection. For what smart rules are and how they work, see the [main article](https://docs.upflow.io/en-us/collection-and-collaboration/smart-rules/smart-rules.md).

## What you'll decide

* How to combine several conditions
* How to handle text values
* Whether you need a counter rule
* Which action the rule performs

### How several filters combine

Filters behave differently depending on whether they sit in the same field or different ones, and this catches people out.

* **Different fields are additive.** Every condition must be true for the rule to fire.
* **Several values in the same field are independent.** Country is US **or** CA **or** GB, so any one of them is enough.

Filters apply to customer properties, including custom fields. See [Filters in Upflow](https://docs.upflow.io/en-us/upflow-configuration/organization-configuration/filters.md).

### Text values are case-sensitive

**Match the value exactly as it's stored**, including capitals, spaces, and special characters. A rule looking for "B2B" will not match a customer whose field says "b2b".

**Use one rule per value.** "Contains = B2B, B2C" searches for the single literal string "B2B, B2C", not for either value. If you need the same behavior for several values, duplicate the rule.

### Write the counter rule

**Any rule that assigns something conditionally needs a second rule that reverses it.** Otherwise a customer who stops matching keeps whatever the first rule gave them, and your data drifts out of line with your rules without anyone noticing.

For example, if one rule assigns a workflow when a condition is met, write another that handles customers once that condition no longer holds.

![Rule 1: assigns a workflow when the condition is met](https://mintcdn.com/upflow-04dc27cd/OZnra-N7HEVQpUpj/images/Capture-d%E2%80%99%C3%A9cran-2026-06-02-%C3%A0-09.58.21.png?fit=max\&auto=format\&n=OZnra-N7HEVQpUpj\&q=85\&s=4744d69ead0dcfcbd620dbdeaec26c32)

![Rule 2: the counter rule, handling customers who no longer match](https://mintcdn.com/upflow-04dc27cd/OZnra-N7HEVQpUpj/images/Capture-d%E2%80%99%C3%A9cran-2026-06-02-%C3%A0-09.59.35.png?fit=max\&auto=format\&n=OZnra-N7HEVQpUpj\&q=85\&s=4db20f36982dcd8d39d11190e1445ca9)

### Choose the action

**Each rule supports one action**, so plan a rule per outcome rather than trying to do several things at once.

| **Action** | **Description** | **Example scenario** |
| :- | :- | :- |
| Assign users | Assign users to the corresponding customer. You can specify one user or use a custom field containing their email address. | Assign Sales and CSMs to their customers based on a custom field value |
| Assign a workflow | Assign a workflow to the corresponding customer. | Assign workflows automatically by country, payment behavior, and so on |
| Assign payment methods | Assign payment methods to the corresponding customer. | Assign the card payment method to all your SMB customers |
| Send a notification | Send a notification to the person and channel of your choice, with personalized content. | Notify the customer's CSM when their outstanding amount passes their credit limit |

To exclude customers automatically, use [exclusion rules](https://docs.upflow.io/en-us/core-entities/customers/exclude-customers.md#exclude-customers-automatically-with-rules) in **Settings > Excluded customers** rather than a smart rule. Customers who stop matching an exclusion rule are included again automatically.

Give every rule a name that says what it does, then click **Save & Close**. You'll thank yourself when you have twenty of them.

## Key takeaways

* Conditions on different fields must all be true. Several values in the same field mean any one of them is enough.
* Text values are case-sensitive, and each rule should look for a single value.
* Every conditional rule needs a counter rule that reverses it.
* Each rule performs one action. Name it after what it does.

Next: [**Assigning with smart rules**](https://docs.upflow.io/en-us/guides/workflow-best-practices/smart-rules-assignment-best-practice.md)


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