INTEGRITY Cloudflare Docs

Dynamic routing

Introduction

Dynamic routing enables you to create request routing flows through a visual interface or a JSON-based configuration. Instead of hard-coding a single model, with Dynamic Routing you compose a small flow that evaluates conditions, enforces quotas, and chooses models with fallbacks. You can iterate without touching application code—publish a new route version and you’re done. With dynamic routing, you can easily implement advanced use cases such as:

while making it accessible to both developers and non-technical team members.

Dynamic Routing Overview

Core Concepts

Getting Started

  1. Create a route.
    • Go to (Select your gateway) > Dynamic Routes > Add Route, and name it (for example, support).
    • Open Editor.
  2. Define conditionals, limits and other settings.
  3. Configure model nodes.
    • Example:
      • Node A: Provider OpenAI, Model o4-mini-high
      • Node B: Provider OpenAI, Model gpt-4.1
  4. Save a version.
    • Click Save to save the state. You can always roll back to earlier versions from Versions.
    • Deploy the version to make it live.
  5. Call the route from your code.