The AI Planner is a customer-facing assistant with two modes: a single-model conversation and a multi-agent team. Which model answers, what it is told, what tools it may call, and whether the answer is good enough are all LaunchDarkly configuration. The app only executes what LaunchDarkly serves.
One request, four systems, six questions. Everything in the LaunchDarkly column changes without a deploy.
Click to enlarge. Solid arrows are requests; dashed green arrows are telemetry flowing back to LaunchDarkly.
None of the answers are hard-coded. Each one is a place a customer can point at and say "that used to be a deploy."
A UI flag hides the planner, an API flag refuses before a single token is spent, and a third flag gates the expensive agent mode. The UI flag has the API flag as a prerequisite, so the chat window can never appear while the backend is off.
Feature flagsA cheap classifier model labels the request simple or complex. That label is stamped onto the LaunchDarkly context, and a targeting rule on the AI Config decides whether the cheap or the strong model answers. The prompt is rendered with the traveler's name and loyalty tier from the same context.
AI Config targeting rulesIn agent mode, the roster of specialists, the edges between them, each specialist's timeout and reporting format, and the tools each one may call are read from an agent graph in LaunchDarkly. Adding a specialist is a graph edit, not a release.
Agent graph + tool declarationsThe app calls whatever provider and model LaunchDarkly returned. When the model needs real data, it calls back into the app's tools: a live weather forecast and the destination catalog. The tool contract lives in LaunchDarkly; only the implementation is code.
Model providersBefore the customer sees the draft, an accuracy judge scores it against a rubric and a relevance judge checks it stayed in role and ignored any prompt injection. Rubric, judge model, and pass threshold are LaunchDarkly configuration. A failed draft on the cheap path is retried on the strong model.
Judge configs + threshold flagsTokens, latency, success and error, tool calls, judge scores, and thumbs up or down all land on the AI Config's Monitoring tab, attributed to the exact variation that answered. Cost per variation is a chart, and a bad prompt change can be a guarded rollout that reverts itself.
Monitoring & metricsFour things customers ask for from an AI feature, and what LaunchDarkly does for each.
Route simple questions to a cheap model and hard ones to a strong model with a targeting rule. Run specialists on the cheapest model that does the job. Watch token cost per variation, then tune it in the UI.
Kill switches at three layers. Judges grade every draft before it ships. A prompt change rolls out to a slice of traffic guarded by the judge score, and rolls itself back if quality drops.
Prompts, models, parameters, judge thresholds, the agent roster, and tool schemas all change in LaunchDarkly and reach the running app in seconds. The model banner on the planner page updates live.
Every model call, tool call, handoff, judge score, and thumbs up is a LaunchDarkly metric attributed to a config variation. Turn on the dev view on the planner page to see the whole chain for one request.
The clean split is the point of the demo. When a customer asks "so what would I still have to deploy?", this is the answer.
LaunchDarkly owns each tool's name, description, and JSON schema, so the model's view of the tool is config. The function that actually fetches a forecast is code, bound to the LaunchDarkly tool by name.
| Concern | Lives in | No-deploy change |
|---|---|---|
| Is the planner on? | Feature flags | Yes |
| Which model answers | AI Config targeting rules | Yes |
| System prompt and personalization | AI Config variations | Yes |
| Token budget and parameters | AI Config variations | Yes |
| Who is on the agent team | Agent graph | Yes |
| What a specialist may call | Tool declarations in LaunchDarkly | Yes |
| How strict the quality gate is | Judge configs and threshold flags | Yes |
| What the tools actually do | App code | Deploy |
Open the AI Planner, sign in as a persona from the nav, and turn on the dev view in the model banner. Every reply is followed by the chain that produced it: the classifier's verdict, the AI Config and variation that answered, the judge scores, and, in agent mode, each specialist's model, tool calls, and latency.
Conversation is a single model turn with classifier routing and a judge-and-retry gate. Agent fans the request out to a supervisor, up to four specialists running in parallel with real tools, and a composer who writes the single answer the customer reads. Agent mode costs roughly thirty times a conversation turn, so it sits behind its own flag.
Change the model on one specialist in LaunchDarkly, or raise the judge threshold, then send the same question again. The banner and the dev view show the change on the very next turn. Nothing was deployed.