Optimizing Alerts with Conditions
Take control of your notifications with conditions—powerful filters that ensure you receive alerts only when changes meet your specific criteria. This eliminates notification noise and helps you focus on what truly matters.
How Conditions Work
Distill uses a two-step process to determine when to send alerts:
- Change detection - The monitor identifies a change on the webpage
- Condition evaluation - The detected change is tested against your defined criteria (both global and local conditions)
Alerts are sent only when both steps succeed, ensuring every notification is relevant and actionable.
Examples
Price Alerts
Monitor product prices and get notified only when they reach your target:
- Without Conditions: You’ll receive alerts for every price change, even minor fluctuations
- With Conditions: Alert only when the price drops below your threshold—for example, notify when an $80 item falls below $70 using:
Added texthas number less than (<)70
Keyword Monitoring
Track specific terms or phrases appearing on monitored pages:
- Scenario: You want alerts only when certain keywords appear in new content
- Solution: Create conditions targeting specific keywords. For a single keyword, use:
Added textcontainsyourkeyword. For multiple keywords, combine conditions with OR:Added textcontainskeyword1ORAdded textcontainskeyword2
This approach is ideal for job postings, news monitoring, or tracking competitor mentions.
Global and Local Conditions
Distill offers two types of conditions to give you flexible control over your alerts:
Global conditions apply to every monitor that matches a filter. Each set of global conditions has its own filter in Apply to monitors matching filter. The filter uses the Watchlist search syntax, but ignores device:. Leave it empty to apply the conditions to all monitors.
To access global conditions:
- Click More watchlist actions (☰) in the Watchlist toolbar.
- Select Global Conditions.
Local conditions apply to individual monitors, allowing you to set specific rules for each page you’re tracking.
When both global and local conditions exist, alerts trigger only when the change satisfies all conditions from both levels. This AND logic ensures maximum precision in your notifications.
Add or delete conditions
Managing conditions for individual monitors is straightforward:
- Click the menu button on any monitor in your watchlist
- Select Edit Options from the menu
- In Conditions, click Add Condition to create a new filtering rule, or click the cross icon next to a condition to remove it.
- Save your changes to activate the new condition settings
Your conditions take effect immediately and will be evaluated against all future changes detected on that monitor.
Text Types
Understanding text types is crucial for creating effective conditions. Distill offers different text types that let you apply conditions to specific portions of the monitored content.
Example - Changes in the monitored content
Let’s examine how text types work with a practical example:
- Original Text: “Distill is an awesome monitoring app for web”
- Updated Text: “Distill is the best web monitoring app”
In the change history, additions appear highlighted in green by default. Deleted content isn’t shown unless you turn on Deleted.
The table below demonstrates how different text types capture this change. Notice that “web”, “monitoring” and “app” are in both Added text and Deleted text: these words only moved, so Net added text and Net deleted text leave them out.
| Text Type | Description | Values based on the above example |
|---|---|---|
Text |
Applies conditions to the whole monitored text, suitable for comprehensive content analysis. | Distill is the best web monitoring app |
Added text (Preferred) |
Targets only the text that was added after the latest change, ideal for incremental updates or additions. Use case: Trigger a notification when new keywords are added to a document. | the best web monitoring app |
Deleted text |
Focuses on text that was deleted during the latest update, critical for tracking content removal. Use case: Alert when specific terms are removed from a policy document. | an awesome monitoring app for web |
Previous text |
Conditions are evaluated on the whole text available before the latest change. | Distill is an awesome monitoring app for web |
Net added text |
Evaluates on the added text and ignores reordering of the texts. Use case: Ideal for dynamic content like news feeds, product lists, and ticketing sites that frequently reorder text sections. Use case | the best |
Net deleted text |
Works like Net added text, ignores reordering of text. Use case: Ideal for dynamic content like news feeds, product lists, and ticketing sites that frequently reorder text sections. |
an awesome for |
Tip: Click the bell icon in the change history to view the actual values for each text type and see how your conditions were evaluated when the alert triggered. This debugging tool helps you fine-tune your conditions for optimal results.
Inputs for other monitor types
Some monitor types offer other inputs in the condition’s first menu:
- Webpage monitors -
Summaryapplies conditions to a field of the AI Change Summary, such aschange_summaryorimportant. ChooseSummary, then pick or type the field name.Summaryappears when Summarize Changes is on in the workspace’s AI Summary settings. - JSON monitors -
DataandPrevious Datatake the place ofTextandPrevious text. Type a path after them to test one value, with keys separated by dots, such asitems.0.price. Leave the path empty to test the whole data. When the path leads to a list,containsand similar conditions match if any item matches. - Website monitors -
URLis the address of each changed page.Added URLsandDeleted URLslist the pages added or deleted in the check.
Global conditions offer only the text types in the table above.
Condition Types
Distill provides a comprehensive set of condition types to match virtually any monitoring scenario. Combine multiple conditions using AND/OR logic to create sophisticated alert rules tailored to your specific needs.
| Type | Description |
|---|---|
contains | Checks if the text includes a specified keyword or phrase. |
does not contain | Verifies that the text does not include the specified keyword or phrase, similar to contains. |
starts with | Determines if the text begins with a specified text. |
doesn't start with | Ensures the text does not start with a specified text. |
ends with | Checks if the text ends with a specified text. |
doesn't end with | Confirms the text does not end with the specified keyword or phrase. |
is empty | Verifies if the text is empty. |
is not empty | Confirms that the text is not empty. |
has number less than (<) | Applies when the numeric value in the text is less than the specified number. |
has number more than (>) | Applies when a numeric value in the text is more than the specified number. |
has number that decreased more than (-Δ >) | Checks if the numeric value has decreased by more than the specified amount. |
has number that increased more than (+Δ >) | Determines if the numeric value has increased by more than the specified amount. |
has number that decreased more than percent (-Δ% >) | Verifies if the numeric value has decreased by more than the specified percentage. |
has number that increased more than percent (+Δ% >) | Checks if the numeric value has increased by more than the specified percentage. |
length is less than | Applies to texts whose length (number of characters) is less than the specified amount. |
length is greater than | Useful for texts whose length is greater than the specified number of characters. |
matches regular expression | Allows for matching text against a specified regular expression pattern. This can be used for case-sensitive matching. gim flags can be added based on the need. g stands for global, i stands for insensitive, and m stands for multi. Usage: matches regular expression \w+ checks for one or more word characters (a–z, A–Z, 0–9, _). |
doesn't match regular expression | Used for cases where the text should not match the specified regular expression pattern. |
doesn't match any previous text | Used for cases to track if the latest text change differs from any previous updates in the change history. Use case |
Build complex filtering logic by combining multiple conditions using AND or OR operators:
- AND - All conditions must be true for the alert to trigger (stricter filtering)
- OR - At least one condition must be true for the alert to trigger (broader filtering)
Important Notes:
- Case sensitivity -
containsanddoes not containignore case, soproductmatches both “Product” and “product”.starts with,ends with,doesn't start withanddoesn't end withare case-sensitive. Regular expressions ignore case only with theiflag, which is on by default. - Numeric conditions - Work best when your selection contains a single number. With multiple numbers present, the condition evaluates each number independently and triggers if any match occurs.
- Increase and decrease conditions - The
-Δand+Δconditions compare each number with the number at the same position in the previous version. ForAdded text, the previous version is the deleted text. They are available only forText,Added textandSummary, and forDatain JSON monitors.
Number Format For Numeric Conditions
Accurate numeric comparisons require proper number formatting. Distill defaults to the United States format (e.g., 1,000.00 for one thousand).
Number Format appears below the conditions once you choose a numeric condition, such as has number less than (<). If the page uses another regional format, pick it there: A: 1,000,000.00 (the default), B: 1.000.000,00 or C: 1 000 000,00. This ensures decimal points and thousand separators are interpreted correctly for precise price tracking and numeric alerts.
Testing Conditions
Before deploying conditions to live monitors, validate their logic using Distill’s built-in testing tools. Test against historical data from your change history or custom sample data to ensure your conditions work as expected across different scenarios.
Access the Test Condition feature from:
- The Conditions section on any monitor’s Options Page
- The Condition Debugger window in your change history
How testing works:
By default, Previous Text and Text hold two versions from the change history. To test your own sample text, choose Custom Data in the menu above each one and type the text.
In the screenshot below, the condition Added text has number less than (<) 70 is tested on custom data where the price drops from $80 to $75. The added text is $75, which is not less than 70, so Final result is False: this change would not trigger an alert. This helps you refine your conditions before they affect real monitoring.
Notification Status and Condition Debugger
Distill’s Change History records every detected change, providing a complete audit trail regardless of whether conditions were met.
When a change meets your condition criteria:
- Configured alerts are sent (email, SMS, push notification, etc.)
- The monitor’s status changes to “unread” in your watchlist
- A bell icon appears in the change history entry
Understanding the Condition Debugger:
Click any bell icon to open the Condition Debugger, which reveals exactly how your conditions were evaluated. The Monitor Conditions header shows the result: True means all conditions passed and alerts were sent; False means conditions weren’t met and no alerts went out.
Each change history entry starts with a bell: a plain bell when the change triggered a notification, a crossed-out bell when it did not.
Example of a triggered alert’s condition evaluation. The monitor alerts when the text contains Pro or Enterprise. The new text contains “Pro”, so the first condition is True, the second is False, and Monitor Conditions is True:
Debugging non-triggered changes:
When a change doesn’t meet your conditions, the bell icon is crossed out. Click it anyway to review the evaluation details and understand why the alert didn’t fire—this insight is invaluable for troubleshooting and refining your conditions.
Common Use-Cases for Text Alerts
Learn from these practical examples to build effective conditions for your monitoring needs:
Alert on text additions only
Ignore deletions and focus only on new content:
Added textis not empty
Ignore minor changes
Filter out insignificant updates by requiring a minimum character count:
Added textlength is greater than10
This prevents alerts for trivial changes like single character typos or minor punctuation updates.
Alert on price increases only
Track when prices go up to monitor inflation or repricing:
Added texthas number that increased more than (+Δ >)0
Case-sensitive keyword matching
Match exact capitalization when it matters (e.g., brand names, acronyms):
Added textmatches regular expressionyour-keywordwithgmflag (omitting theiflag makes the match case-sensitive)
Alert on alphabetic changes only
Ignore price and date changes, focusing only on text content updates:
Added textmatches regular expression[a-zA-Z]{1,}withgimflag
This regular expression matches one or more alphabetic characters, perfect for monitoring text-only changes.
Numeric change alerts
Monitor only numerical updates (prices, stock counts, statistics):
Added textmatches regular expression[0-9]{1,}
This pattern matches one or more numeric characters, filtering out text-only changes.
Monitor multiple keywords
Alert when any of several keywords appear in new content:
Added textmatches regular expressionkeyword1|keyword2|keyword3|keyword4withgimflag
The pipe (|) acts as an OR operator in regular expressions. Alternatively, create separate conditions with the contains type and connect them with OR for easier management.
Alert only for truly new content
Prevent duplicate alerts when content flip-flops or temporarily changes:
Textdoesn't match any previous text
Use case: Job listing sites often add and remove the same positions. This condition ensures you’re only alerted about genuinely new postings, not recurring ones.
Example configuration:
In the example below, the newest text, “Book sale helper, first Sunday of the month”, already appeared on Oct 25, so no alert triggers and the newest entry’s bell is crossed out:
Ignore text reordering and focus on actual content changes
Perfect for dynamic pages that frequently rearrange content without adding or removing information:
-
Net added textis not empty- Alerts only for genuinely new content. Example: “ABC” → “BDC” triggers an alert for “D” only, ignoring the repositioning of “B” and “C”. “ABC” → “CAB” triggers no alert since only order changed. -
Net deleted textis not empty- Alerts only for removed content. Example: “ABC” → “BDC” triggers an alert for deleted “A” only, ignoring repositioned letters and new additions. -
Combine both conditions (with OR) to catch all net changes while ignoring reordering: Alerts for both “D” added and “A” deleted, but ignores “B” and “C” moving positions.
Ideal for: News feeds, product catalogs, search results, and any content that reorders frequently.
Troubleshooting Common Issues
When alerts don’t behave as expected, use this systematic approach to diagnose and fix condition problems:
-
Review Change History - Examine your monitor’s change history to see exactly what changes Distill detected. This helps you understand whether the issue is with change detection or condition evaluation.
-
Analyze Condition Evaluation - Click the bell icon in the change history to see how your conditions were evaluated. This debugger shows you step-by-step which conditions passed or failed, revealing exactly why alerts were or weren’t sent.
-
Refine Your Conditions - Based on your analysis, adjust conditions for better accuracy. Common fixes include:
- Narrowing your selection to isolate specific content
- Switching text types (e.g., from
TexttoAdded text) - Adjusting thresholds for numeric conditions
- Simplifying complex regex patterns
FAQ
Keyword is showing on the page but the alert did not trigger
Alerts are change-triggered, not presence-triggered. Even if your keyword appears on the page, Distill only sends alerts when the monitored content actually changes. If the keyword was already present and hasn’t been newly added, no alert will fire. This design ensures you’re notified about changes, not static content.
Not receiving an alert even after removing conditions
Your issue likely involves global conditions. Global conditions apply to every monitor that matches their filter, so even after removing local conditions from a specific monitor, the global conditions still filter alerts. Check them in More watchlist actions (☰) → Global Conditions in your Watchlist.
Numeric Conditions are triggering unwanted alerts
Numeric conditions work optimally with single-number selections. When your monitored area contains multiple numbers (like a product listing with prices, ratings, and review counts), the condition evaluates each number independently—potentially causing unexpected alerts. Solution: Refine your selection to isolate only the specific number you want to monitor, such as just the price or just the stock count.
How to ignore changes triggered due to change in position of text?
Use the Net added text and Net deleted text text types: Net added text is not empty OR Net deleted text is not empty. These special text types intelligently ignore content reordering and movement, alerting only when content is genuinely added or removed. Perfect for dynamic lists, search results, and feeds. See the detailed use case for examples.
How to ignore Flip-Flopping Text Changes?
Use the condition: Text doesn't match any previous text. This prevents alerts when content reverts to a previous state. Common for seasonal messages, rotating promotions, or job listings that reappear. See the complete guide for configuration details.