Skip to main content

Overview

The Smart Filter Node allows you to filter data and create conditional logic in your workflows. It evaluates data against specified conditions and routes workflow execution based on the results.

Use Cases

  • Conditional Routing: Route workflows based on data values
  • Data Validation: Filter out invalid or incomplete records
  • Priority Assignment: Categorize by urgency or importance
  • Lead Qualification: Filter high-quality leads
  • Error Handling: Identify and handle failed operations
  • Status-Based Actions: Take different actions based on status
  • Threshold Checks: Trigger actions when values exceed limits
  • Multi-Criteria Filtering: Apply complex filtering logic

Inputs

Field (Required)

Select a field to apply the filter on. Configuration:
  • Can be a single field from dropdown
  • Can link multiple fields from previous blocks
  • Supports nested object properties
Examples:
  • Call_Status
  • Call_Duration
  • Customer_Details.name
  • Order_Amount

Condition (Required)

Define the filtering condition to apply. Available Conditions: Equality:
  • = (equals)
  • != (not equals)
Comparison:
  • > (greater than)
  • < (less than)
  • >= (greater than or equal to)
  • <= (less than or equal to)
Text:
  • contains (includes substring)
  • not contains (doesn’t include substring)
  • starts with (begins with text)
  • ends with (ends with text)
Existence:
  • is empty (null or empty)
  • is not empty (has value)

Value (Required)

Enter the value to filter by. Format:
  • Text: "connected", "John Doe"
  • Numbers: 100, 5.5
  • Boolean: true, false
Examples:
  • For status check: connected
  • For duration: 60
  • For amount: 1000

Add More

Apply multiple conditions simultaneously. Operators:
  • AND: All conditions must be true
  • OR: At least one condition must be true
Example:

Outputs

Filtered Results

Returns only the data that matches the specified filter conditions. Behavior:
  • If conditions match: Data passes through
  • If conditions don’t match: Data is filtered out
  • Multiple matches: All matching records returned

Configuration Examples

Example 1: Filter Successful Calls

Result: Only passes through calls that successfully connected

Example 2: Filter Long Calls

Result: Only passes through calls longer than 2 minutes

Example 3: Filter High-Value Orders

Result: Only passes through orders of ₹5,000 or more

Example 4: Filter by Customer Name

Result: Only passes through customers with “John” in their name

Example 5: Multiple Conditions (AND)

Result: Only passes through calls that connected AND lasted more than 60 seconds

Example 6: Multiple Conditions (OR)

Result: Passes through calls that either didn’t connect OR were very short

Workflow Integration

Common Patterns

Pattern 1: Success/Failure Routing
Pattern 2: Priority-Based Routing
Pattern 3: Lead Qualification
Pattern 4: Multi-Stage Filtering
Pattern 5: Error Handling

Advanced Filtering

Nested Field Access

Access nested object properties using dot notation:

Array Filtering

Filter based on array properties:

Numeric Ranges

Combine conditions for range filtering:
Result: Orders between ₹1,000 and ₹5,000

Text Pattern Matching

Use text conditions for pattern matching:
Result: Only company email addresses

Best Practices

Condition Design

  • Be Specific: Use precise conditions to avoid false matches
  • Test Thoroughly: Verify filters with sample data
  • Document Logic: Comment complex filter combinations
  • Handle Edge Cases: Account for null/empty values

Performance

  • Filter Early: Apply filters as early as possible in workflow
  • Minimize Conditions: Use only necessary conditions
  • Optimize Order: Put most selective filters first
  • Batch Processing: Filter large datasets efficiently

Data Quality

  • Validate Input: Ensure data format matches expectations
  • Handle Missing Data: Account for empty or null fields
  • Type Consistency: Match data types (text, number, boolean)
  • Case Sensitivity: Consider case when filtering text

Workflow Design

  • Clear Paths: Define clear true/false paths
  • Error Handling: Handle cases where no data passes filter
  • Logging: Log filtered data for debugging
  • Monitoring: Track filter effectiveness

Use Case Examples

Customer Service Priority Routing

E-commerce Order Processing

Lead Qualification Pipeline

Troubleshooting

No Data Passing Through

Possible Causes:
  • Conditions too restrictive
  • Data format mismatch
  • Field name incorrect
  • Value comparison error
Solutions:
  • Review and relax conditions
  • Verify data types match
  • Check field names (case-sensitive)
  • Test with known data

Unexpected Results

Possible Causes:
  • Logical operator error (AND vs OR)
  • Case sensitivity issues
  • Numeric vs string comparison
  • Nested field access error
Solutions:
  • Review AND/OR logic
  • Use exact case matching
  • Ensure correct data types
  • Verify nested field paths

Performance Issues

Possible Causes:
  • Too many conditions
  • Large dataset filtering
  • Complex nested conditions
Solutions:
  • Simplify filter logic
  • Filter in stages
  • Optimize condition order

Next Steps

AI Query Agent Node

Intelligent decision-making

Webhook Node

Route filtered data to external systems

Send Email Node

Send emails based on filter results

Schedule Callback Node

Schedule callbacks for filtered data
Use Smart Filter nodes in sequence to create multi-stage filtering pipelines for complex routing logic.
Smart Filter evaluates conditions in real-time. Ensure your data is properly formatted and field names match exactly (case-sensitive).