Skip to main content

Overview

Aida is Yuno’s machine learning-based payment orchestration engine. It analyzes transaction patterns, provider performance, and card-level data to automatically route payments to the provider most likely to approve each transaction at the lowest cost. This guide walks you through implementing Aida from initial setup to full production optimization.

How Aida Works

Aida uses a multi-factor ML model trained on your transaction history to predict approval probability for each provider on every transaction:

Prediction Factors

FactorWeightDescription
Card BIN / IssuerHighHistorical approval rate for this BIN range with each provider
Transaction amountMediumSome providers perform better in specific amount ranges
Country / CurrencyHighDomestic vs. international routing impact
Payment methodHighMethod-specific provider strengths
Time patternsLowTemporal patterns in issuer approval behavior
Customer historyMediumReturning customer vs. first-time transaction
Provider healthHighReal-time provider performance and availability

Prerequisites

Before enabling Aida, ensure your account meets these requirements:
RequirementMinimumRecommended
Connected providers2 providers for the same payment method/country3+ providers per market
Transaction volume500 transactions/month5,000+ transactions/month
Historical data30 days of transaction history90+ days
Routing rulesAt least one active routing ruleStructured rules per market
Aida requires a minimum of two providers configured for the same payment method and country combination. With a single provider, there is no routing decision to optimize.

Training Period Setup

Aida needs a baseline period to learn your transaction patterns before it can make optimized routing decisions.

Phase 1: Baseline Collection (Days 1-30)

1

Enable data collection

Navigate to Settings > Smart Routing > Aida and enable Baseline Collection Mode.In this mode, Aida observes your transactions and builds its prediction models without changing any routing decisions. Your existing routing rules remain in full control.
2

Verify data quality

After 7 days, check Dashboard > AI > Aida > Training Status to confirm:
  • Transaction data is flowing correctly
  • Provider responses are being captured
  • BIN data is being extracted
  • Decline codes are being categorized
If training status shows gaps in data collection, verify that all providers are returning standard response codes and that your Yuno integration is passing all recommended fields.
3

Review baseline metrics

At day 30, Aida generates a baseline report showing:
MetricDescription
Overall approval rateYour current weighted average across providers
Per-provider approval rateApproval rate for each provider by market
BIN-level patternsIssuer-specific provider preferences
Decline distributionSoft vs. hard decline breakdown
Estimated improvementAida’s predicted approval rate lift

Phase 2: Shadow Mode (Days 31-45)

In shadow mode, Aida makes routing recommendations alongside your existing rules, but does not execute them. This allows you to compare Aida’s predicted routing against your actual routing decisions.
1

Enable shadow mode

In Settings > Smart Routing > Aida, switch from Baseline Collection to Shadow Mode.
2

Review shadow recommendations

Check Dashboard > AI > Aida > Shadow Analysis to see:
  • What percentage of transactions Aida would have routed differently
  • Predicted approval rate improvement
  • Estimated cost impact
  • Specific transaction examples where Aida’s choice differs
3

Validate predictions

Compare Aida’s predicted outcomes against actual results. A healthy shadow period shows:
MetricTarget
Prediction accuracy>85%
Predicted improvement>2% approval rate lift
Consistent recommendationsLow day-to-day variance in routing suggestions

Performance Baselines

Establish clear baselines before activating Aida to measure its impact accurately.

Metrics to Capture

MetricHow to MeasureWhere
Overall approval rateApproved / total attempted transactionsDashboard > Analytics > Overview
Approval rate by providerPer-provider approval percentageDashboard > Analytics > Provider Performance
Approval rate by marketPer-country approval percentageDashboard > Analytics > Country
Cost per approved transactionTotal fees / approved transactionsDashboard > Analytics > Cost
Cascade rateTransactions requiring retry / total transactionsDashboard > Analytics > Cascade
Average response timeMean provider response timeDashboard > Analytics > Performance
Export baseline metrics for at least 30 days before activating Aida. Use this data as your control group for before/after comparison.

A/B Testing: Control vs. Treatment

The safest way to activate Aida is through a controlled A/B test that gradually shifts traffic.
1

Configure traffic split

In Settings > Smart Routing > Aida, set up an A/B test:
Control group:  70% of traffic → existing routing rules
Treatment group: 30% of traffic → Aida-optimized routing
Start with a conservative split (70/30 or 80/20) to limit exposure while gathering statistically significant data.
2

Define success criteria

Set clear criteria for declaring the test a success:
MetricMinimum ImprovementStatistical Significance
Approval rate+1.0 percentage pointsp < 0.05
Cost per approved txnNo increase >5%p < 0.05
Customer experienceNo increase in checkout timep < 0.05
3

Run the test

Allow the test to run until both groups reach sufficient transaction volume:
Daily VolumeMinimum Test Duration
<1,000 txns3-4 weeks
1,000-10,000 txns1-2 weeks
>10,000 txns5-7 days
4

Analyze and expand

Review results in Dashboard > AI > Aida > A/B Test Results:
  • If treatment outperforms: increase to 50/50, then 30/70, then 0/100
  • If results are neutral: extend test duration or review model training data
  • If treatment underperforms: pause Aida, review configuration, retrain
Ramp up gradually over 2-3 weeks, monitoring at each stage.

Interpreting the Aida Analytics Dashboard

Access Aida analytics at Dashboard > AI > Aida > Performance.

Key Panels

PanelShowsAction If Anomalous
Approval Rate TrendDaily approval rate, control vs. AidaIf Aida underperforms for >3 days, review provider health
Provider DistributionHow Aida distributes traffic across providersVerify distribution matches your provider capacity
BIN OptimizationTop BIN ranges where Aida improved routingUse insights to inform manual rule creation as backup
Decline AnalysisSoft vs. hard decline trends under AidaConfirm cascade behavior aligns with expectations
Cost ImpactPer-transaction cost comparisonEnsure cost optimization strategy is applied correctly
Model ConfidenceAida’s prediction confidence per segmentLow-confidence segments may need more data or manual rules

Provider Performance Analytics

Aida generates provider-specific insights that help you evaluate your provider portfolio:
ReportDescriptionFrequency
Provider scorecardsApproval rate, cost, speed, and reliability per providerWeekly
Provider comparisonSide-by-side performance across comparable segmentsWeekly
Provider recommendationsSuggestions for adding or removing providersMonthly
Anomaly detectionAlerts when a provider’s performance deviates from baselineReal-time

Custom Rules vs. Aida

Aida and custom routing rules can coexist. Understand the precedence:
ScenarioBehavior
Custom rule matches, Aida enabledCustom rule takes precedence; Aida does not override explicit rules
No custom rule matches, Aida enabledAida makes the routing decision
Custom rule with Aida optimizationCustom rule selects eligible providers; Aida chooses among them
The recommended approach is to use custom rules for business constraints (e.g., “PIX must route to Provider X”) and let Aida optimize within unconstrained segments (e.g., “for Brazil card payments, Aida chooses the best provider”).

Example: Hybrid Configuration

Rule 1: Brazil PIX → PagSeguro (manual, no Aida)
Rule 2: Brazil Cards → [PagSeguro, dLocal, Adyen] with Aida optimization
Rule 3: Mexico Cards → [Conekta, dLocal] with Aida optimization
Rule 4: Catch-all → Adyen (manual, no Aida)

When to Enable/Disable Aida Features

FeatureEnable WhenDisable When
Smart Routing2+ providers per segment, 30+ days historySingle provider, <500 txns/month
BIN OptimizationCard volume >1,000 txns/month per BIN rangeLow card volume, mostly APMs
Cost OptimizationProvider costs vary >10% for same segmentAll providers have identical pricing
Decline RetryCascade is configured, soft decline rate >5%Hard decline dominant, low retry success
Fraud ScoringFraud rate >0.5% or chargeback rate >0.3%Very low fraud rate, strong external fraud tool
Disable Aida routing during provider migrations or major integration changes. Aida’s models are trained on historical data and may make suboptimal decisions when provider behavior changes significantly.

Monitoring and Alerting

Set up these alerts to monitor Aida’s performance:
AlertConditionAction
Approval rate dropAida segment approval rate drops >3% from baselineReview Aida routing decisions, check provider health
Cost increasePer-transaction cost increases >10%Verify cost optimization strategy, check provider pricing changes
Model confidence dropAida confidence score <70% for a segmentCheck for data quality issues, consider extending training
Provider concentration>90% of traffic routed to single providerReview whether provider health data is accurate
Cascade rate spikeCascade rate increases >50% from baselineCheck primary provider health, review decline codes
Configure alerts in Dashboard > AI > Aida > Alerts.

FAQ

How long does Aida take to show results? Most merchants see measurable improvement within 2-4 weeks of activating Aida in live mode, following the 30-day baseline collection and 15-day shadow period. Does Aida work with a single provider? No. Aida requires at least two providers for the same payment method and country to make routing decisions. With a single provider, use Aida’s fraud scoring and decline analysis features instead. Can I override Aida’s routing decisions? Yes. Custom routing rules always take precedence over Aida. You can also exclude specific segments from Aida optimization. What happens if a provider goes down? Aida detects provider outages through real-time health monitoring and automatically redistributes traffic to healthy providers. Recovery is gradual to avoid overloading providers. Does Aida handle 3DS decisions? Aida can recommend whether to apply 3DS based on transaction risk and issuer preferences, but the final 3DS decision is governed by your security rules and regulatory requirements. How does Aida handle new payment methods? When you add a new payment method, Aida enters a learning period for that method. During this period, default routing rules apply until sufficient data is collected. Can I use Aida in sandbox? Aida’s shadow mode and baseline collection work in sandbox, but routing optimization requires production transaction volume for meaningful predictions. What data does Aida use? Aida uses transaction-level data including BIN, amount, currency, country, payment method, provider responses, and timestamps. It does not access or store raw card numbers, CVVs, or customer personal data.