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

# Context Router

> Not every turn in a voice call needs full LLM inference. SLNG allocates reasoning where it's needed and resolves repeatable turns through shorter paths.

## Adaptive execution

In a traditional voice pipeline, every turn takes the same path: audio in, STT, LLM, TTS, audio out. The same pipeline and the same cost, whether the caller asked a complex question or said "yes."

The context router constructs the path for each turn based on the full context of the conversation: what was said, what has been said before, how the call is progressing, and what the turn actually requires. The decision is not just which model to call, but whether to call a model at all, which stages to invoke, and how to assemble the response.

Same API call from your side. The path is constructed for you.

Within a single call, the path can change turn by turn. The first turn might need full reasoning to understand intent. The next few might resolve through shorter paths as the conversation enters a familiar pattern. Then a turn introduces new complexity and the path expands again.

The decision factors are compound (language, intent, similarity to prior turns, availability of cached responses, model load, regional constraints) and they are evaluated together.

## How it improves over time

The layer learns from every call:

* **Path intelligence sharpens with volume.** Early on, more turns take the full path as a safe default. Over time, a growing proportion route through faster, shorter paths.
* **Your call patterns shape your optimization.** A healthcare scheduling agent develops different path intelligence than a financial-services collections agent.
* **Improvement is continuous.** You do not retrain anything. The layer observes outcomes and the next call benefits.

## What this means

| Without tiered decisioning                        | With tiered decisioning                                   |
| ------------------------------------------------- | --------------------------------------------------------- |
| Every turn hits the LLM                           | Only turns that need reasoning hit the LLM                |
| Latency is constant regardless of turn complexity | Simple turns resolve faster through a shorter path        |
| Cost scales linearly with call volume             | Cost per call decreases as the layer learns your patterns |

## Configuration

You can check the [Integration guide](/context-router/)
