🤖 Rules & Automation
FinTrack Platform's unified rules engine is what sets it apart from other finance apps. Instead of manually categorizing hundreds of transactions, create smart rules once and let automation handle the rest.
🎯 Why Rules Matter
The Manual Problem
Without rules, you'd spend hours each month:
- ❌ Categorizing the same merchants over and over
- ❌ Manually tagging recurring transactions
- ❌ Trying to remember which category each expense belongs to
- ❌ Losing track of spending patterns in the data noise
The Automated Solution
With smart rules, FinTrack:
- ✅ Automatically categorizes 80-90% of transactions
- ✅ Learns patterns from your transaction history
- ✅ Suggests rules based on recurring patterns
- ✅ Maintains consistency across all your data
🧠 How the Rules Engine Works
Core Concept
Rules use conditions and actions:
IF [condition] THEN [action]
Example:
IF description contains "STARBUCKS"
THEN categorize as "Dining Out"
Rule Components
Conditions (When to trigger)
- Description contains: Text matching in transaction description
- Merchant equals: Exact merchant name match
- Amount equals: Specific dollar amount
- Amount range: Between minimum and maximum amounts
- Account: Specific account the transaction came from
- Date range: Transactions within certain dates
- Is recurring: Transactions that repeat regularly
Actions (What to do)
- Categorize: Assign to expense/income category
- Set merchant: Standardize merchant names
- Add tags: Apply labels for filtering
- Mark as recurring: Flag subscription-like transactions
- Set notes: Add automatic descriptions
🚀 Getting Started with Rules
Your First Rule
Let's create a rule for your salary:
- Go to Unified Rules page
- Click "Create Rule"
- Set condition:
- Field: "Description"
- Operator: "Contains"
- Value: "PAYROLL" (or your company name)
- Set action:
- Action: "Categorize"
- Category: "Salary"
- Test with existing transactions
- Save the rule
Common First Rules
Here are the most valuable rules to create first:
Income Rules
IF description contains "PAYROLL" → Salary
IF description contains "FREELANCE" → Freelance Income
IF amount equals $3500.00 → Salary (if amount is always the same)
Fixed Expenses
IF description contains "RENT" AND amount equals $1200 → Housing
IF merchant equals "STATE FARM" → Insurance
IF description contains "ELECTRIC" → Utilities
Common Merchants
IF merchant contains "STARBUCKS" → Dining Out
IF merchant contains "SHELL" → Transportation
IF merchant contains "AMAZON" → Shopping
IF merchant contains "SAFEWAY" → Groceries
🔍 Pattern Detection (AI-Powered)
Automatic Rule Discovery
FinTrack's pattern detection analyzes your transaction history to suggest rules:
- Navigate to Rules → Pattern Detection
- Click "Analyze Transactions"
- Review discovered patterns
- Approve rules that look correct
- Edit or reject rules that need adjustment
What Patterns Are Found
Exact Description Patterns
Found 12 transactions: "MONTHLY PARKING PASS"
Suggested rule: Categorize as Transportation
Confidence: 95%
Merchant Patterns
Found 8 transactions at "WHOLE FOODS MARKET"
Suggested rule: Categorize as Groceries
Confidence: 90%
Amount-Based Patterns
Found 6 transactions: $1,200.00 to "PROPERTY MGMT"
Suggested rule: Rent payment → Housing
Confidence: 88%
Recurring Patterns
Found monthly pattern: $15.99 to "NETFLIX"
Suggested rule: Mark as recurring subscription
Confidence: 92%
Pattern Confidence Levels
- 🟢 90-100%: Very confident - likely safe to approve
- 🟡 70-89%: Moderately confident - review before approving
- 🔴 Under 70%: Low confidence - needs manual review
🎛️ Advanced Rule Types
Conditional Logic
Create complex rules with multiple conditions:
AND Logic
IF description contains "AMAZON"
AND amount > $50.00
THEN categorize as "Major Shopping"
OR Logic
IF merchant equals "SHELL"
OR merchant equals "EXXON"
OR merchant equals "BP"
THEN categorize as "Gas"
Amount Ranges
IF merchant contains "RESTAURANT"
AND amount between $20.00 and $100.00
THEN categorize as "Dining Out"
Subscription Detection
Automatically identify and track recurring payments:
IF amount equals $12.99
AND description contains "SPOTIFY"
AND is_recurring = true
THEN categorize as "Entertainment"
AND tag as "Subscription"
Account-Specific Rules
Different rules for different accounts:
IF account equals "Chase Credit Card"
AND merchant contains "GAS STATION"
THEN categorize as "Transportation"
IF account equals "Checking Account"
AND merchant contains "GAS STATION"
THEN categorize as "Cash Withdrawal"
📊 Rule Management
Rule Priority & Order
Rules are processed in order - first match wins:
- Most specific rules first (exact amounts, exact merchants)
- Medium specificity (partial text matches)
- Broad rules last (catch-all categories)
Organizing Your Rules
Rule Categories
Group rules by type:
- 💰 Income Rules: Salary, freelance, investments
- 🏠 Fixed Expenses: Rent, insurance, utilities
- 🍕 Variable Expenses: Food, entertainment, shopping
- 💳 Account Management: Transfers, fees, payments
Rule Naming Convention
Use clear, descriptive names:
- ✅ "Starbucks → Dining Out"
- ✅ "Rent Payment ($1200) → Housing"
- ✅ "Amazon under $25 → Household Items"
- ❌ "Rule 1"
- ❌ "Amazon rule"
Testing & Validation
Rule Testing
Before saving a rule:
- Test against recent transactions
- Check how many transactions would match
- Verify the categorization makes sense
- Look for edge cases that might cause problems
Rule Performance Monitoring
Track how well your rules work:
- Match rate: Percentage of transactions automatically categorized
- Accuracy: Percentage of automatic categorizations that are correct
- Coverage: Percentage of spending covered by rules
🔄 Workflow Automation
Import + Rules Workflow
Set up your workflow for maximum efficiency:
- Import new transactions (weekly)
- Auto-apply all rules to new transactions
- Review uncategorized transactions (should be under 20%)
- Create new rules for recurring uncategorized items
- Adjust existing rules if needed
Rule Maintenance Schedule
Weekly (5 minutes)
- Review any uncategorized transactions
- Create quick rules for new recurring merchants
- Fix any obvious mis-categorizations
Monthly (15 minutes)
- Analyze rule performance and coverage
- Merge similar rules for efficiency
- Update rules for changed spending patterns
- Clean up unused or redundant rules
Quarterly (30 minutes)
- Full rule audit - remove unused rules
- Reorganize rule order for better performance
- Update categories if spending patterns changed
- Export rule backup for safekeeping
🎯 Rule Strategy by Lifestyle
For Students
Focus on simple categories and low-maintenance rules:
Dining hall meals → Food
Textbook purchases → Education
Part-time job → Income
ATM withdrawals → Cash
For Young Professionals
Emphasize career-building and subscription tracking:
Salary → Income
Professional development → Career
Lunch near office → Work Dining
Gym membership → Health & Fitness
Streaming services → Entertainment
For Families
Complex rules for household management:
Grocery stores → Groceries
School expenses → Children/Education
Medical appointments → Healthcare
Family entertainment → Entertainment
Childcare → Childcare
For Retirees
Focus on healthcare, travel, and fixed income:
Social Security → Retirement Income
Medicare payments → Healthcare
Travel expenses → Travel & Leisure
Home maintenance → Housing
Investment distributions → Investment Income
💡 Pro Tips for Rule Success
Start Simple, Scale Up
- Begin with your most frequent transactions
- Create broad rules first (e.g., all Amazon → Shopping)
- Refine with specific rules later (Amazon under $25 → Household)
- Add complexity as you learn your patterns
Common Pitfalls to Avoid
Over-Categorization
❌ Don't create 50+ categories
✅ Start with 10-15 main categories
Too-Specific Rules
❌ Rule for every single transaction
✅ Rules that capture patterns (5+ transactions)
Conflicting Rules
❌ Multiple rules that could match the same transaction
✅ Clear hierarchy and specific conditions
Rule Efficiency Tips
- Use merchant names instead of description when possible (more reliable)
- Set amount ranges rather than exact amounts for flexibility
- Group similar merchants in single rules (OR conditions)
- Test rules before applying to large transaction sets
📈 Measuring Rule Success
Key Metrics
Track these statistics to optimize your rules:
- Auto-categorization rate: Goal 80-90%
- Time spent on manual categorization: Goal under 30 minutes/month
- Rule accuracy: Goal >95% correct categorizations
- Coverage: Goal >90% of spending captured by rules
Monthly Rule Report
FinTrack provides insights on:
- Most active rules (which rules fire most often)
- Unused rules (rules that never match)
- Rule conflicts (multiple rules matching same transactions)
- Uncategorized patterns (new rule opportunities)
🔧 Troubleshooting Rules
Rule Not Firing
- Check spelling in conditions (case-sensitive)
- Verify field mapping (description vs merchant)
- Test condition with known matching transaction
- Check rule order (earlier rule might be matching first)
Wrong Categorizations
- Review rule conditions - might be too broad
- Check for partial matches causing unexpected results
- Verify category mapping is correct
- Add exclusion conditions if needed
Performance Issues
- Simplify complex rules with many conditions
- Remove unused rules to speed processing
- Combine similar rules for efficiency
- Use indexed fields (merchant, amount) when possible
🚀 What's Next?
Once your rules are working well:
- Explore advanced dashboard features powered by your clean data
- Set up account preferences for optimal experience
- Learn about data export for external analysis
Smart rules are the key to effortless financial tracking!
Happy automating! 🤖