> ## Documentation Index
> Fetch the complete documentation index at: https://telr-docs.cashfree.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dynamic Routing

> Learn what dynamic routing means in payments and how Flowwise supports it

Dynamic Routing helps intelligently direct payments to the most efficient acquiring bank or payment gateway in real-time. Leveraging machine learning rules, we identify the best-performing gateway based on multiple live parameters to ensuring we get the highest possible success rates. This helps improve payment success rates and reduces transaction failures, and minimizes costs.

Unlike traditional single-gateway reliance, you can now apply intelligent rules to distribute transactions across multiple gateways based on individual performance.

## Dynamic Routing Options on Flowwise

### Smart Routing

With Smart Routing, Flowwise automatically directs payments to the best gateway based on success rates over recent timeframes (e.g., last 15 or 30 minutes). Simply define your selected gateways in a rule set, and Flowwise handles the rest.

<i>Example: To optimize UPI transactions between PayU and Telr, define Smart Routing to dynamically choose the highest-performing gateway.</i>

<img height="200" src="https://mintcdn.com/telr/QYIPyEjaMmXL4dfT/static/images/flowwise/smart-routing.png?fit=max&auto=format&n=QYIPyEjaMmXL4dfT&q=85&s=88d53c6da70997c251b43d9eca369c28" data-path="static/images/flowwise/smart-routing.png" />

### Smart Routing with Weights

This option allows you to set weighted preferences for each gateway in addition to success rates, optimizing the balance of traffic based on your needs.

<i>Example: For Credit Card transactions, if you want 60% routed through Telr and 40% through PayU while prioritizing success, select this routing option.</i>

<img height="200" src="https://mintcdn.com/telr/QYIPyEjaMmXL4dfT/static/images/flowwise/smart-routing-weights.png?fit=max&auto=format&n=QYIPyEjaMmXL4dfT&q=85&s=9e9ae3cd5b0ba157da3a0ce90cad37ce" data-path="static/images/flowwise/smart-routing-weights.png" />

### Threshold Routing

Ideal for scenarios with a preferred primary gateway, this routing applies a minimum success rate threshold. If success drops below the threshold, Flowwise switches to Smart Routing for optimal fallback.

<i>Example: Example: If Telr is preferred with a threshold of 70%, transactions will route to PayU as backup if Telr’s success rate dips below this level.</i>

<img height="200" src="https://mintcdn.com/telr/QYIPyEjaMmXL4dfT/static/images/flowwise/threshold.png?fit=max&auto=format&n=QYIPyEjaMmXL4dfT&q=85&s=7489989f859d43829d0d4a8a8627adbc" data-path="static/images/flowwise/threshold.png" />

### Volume-Based Routing

This routing enables you to define transaction distribution manually, without Dynamic Routing adjustments.

<i>Example: Example: To equally distribute NetBanking transactions between Telr, PayU, and PayTm, set weights at 33.33% each.</i>

<img height="200" src="https://mintcdn.com/telr/QYIPyEjaMmXL4dfT/static/images/flowwise/volume-routing.png?fit=max&auto=format&n=QYIPyEjaMmXL4dfT&q=85&s=46665404c8871041548d832275b09ddc" data-path="static/images/flowwise/volume-routing.png" />
