Customize detection rules in database/pricing_rules table:
-- Example: Set current pricing for Pro plan INSERT INTO pricing_rules ( plan_name, current_base_price, included_usage, overage_rates, features ) VALUES ( 'pro', 149.00, '{"api_calls": 50000, "storage_gb": 100}', '{"api_calls_per_1000": 5.00, "storage_gb": 2.00}', '["advanced_analytics", "custom_domains", "api_access"]' );
Alert Thresholds
Modify severity scoring in workflow functions:
// In n8n Function node let severity = 'low'; if (leakageAmount > 500) { severity = 'high'; // Adjust this threshold } else if (leakageAmount > 100) { severity = 'medium'; // Adjust this threshold }
Notification Channels
Configure in n8n Slack node or add email notifications:
// For high severity only if (severity === 'high') { // Send Slack alert // Send email to CFO }