Conversational AI (artificial intelligence) · 03 / 22

Architecture Decisions for the Booking Platform

The overall decisions behind the conversational booking platform, recorded as ADRs (Architecture Decision Records): context, decision, consequences and alternatives.

How the decisions are recorded

Each decision is an architecture decision record (ADR): a short, dated document with its status, the context that forced the choice, the decision, the consequences and the alternatives rejected. These records cover the whole platform. The vendor pages that follow show how each choice is implemented. For the format and lifecycle of an ADR, see the general ADR page.

Decision log

ADRDecisionStatusDate
ADR-001The booking flow is a deterministic state machine; the model interprets and phrasesAccepted2026-09-02
ADR-002All model traffic goes through one enterprise AI gatewayAccepted2026-09-04
ADR-003Prisma AIRS scans every prompt, reply and tool call; writes fail closedAccepted2026-09-09
ADR-004Databricks is the data and AI platform, governed by Unity CatalogAccepted2026-09-11
ADR-005Hold first, then confirm: no commit without an explicit confirmationAccepted2026-09-15
ADR-006Tail numbers, names and contact details are classified and minimisedAccepted2026-09-18
ADR-007Keep the agent core portable: two reference builds behind one tool contractAccepted2026-09-23
ADR-008A release gate: no deploy unless the evaluation set passesAccepted2026-09-30
ADR-009Add a voice channelProposed2026-11-05

Status values: Proposed, Accepted, Superseded. Dates are the day the status last changed.

The records

ADR-001 Accepted

The booking flow is a deterministic state machine; the model interprets and phrases

Context
A booking moves money and reserves scarce hangar space. Models are probabilistic, so letting one decide what is allowed or what gets committed would make results impossible to reproduce or audit.
Decision
A state machine owns the flow: gather, quote, hold, confirm, commit. The model extracts slots, chooses the next question and writes replies. It can propose a tool call, but code validates the arguments, checks policy and executes. Only the commit step changes a booking, and only after confirmation.
Consequences
  • Prices, fees and availability always come from the pricing and booking services.
  • Every state transition is testable without a model.
  • Adding a service means adding a state and a tool, not rewriting a prompt.
Alternatives considered
  • One autonomous agent controlling the whole flow (rejected: unbounded behaviour and hard to audit)
  • A fixed form wizard with no language understanding (rejected: no better than the portal)
ADR-002 Accepted

All model traffic goes through one enterprise AI gateway

Context
Teams would otherwise hold provider keys, pick models by name and log differently. Cost, security scanning and provider changes would be solved many times, badly.
Decision
Applications call the gateway with a project key and a model alias such as booking-fast or booking-reasoner. The gateway routes, retries, falls back, enforces budgets and rate limits, attaches metadata, applies guardrails and logs every call. Provider keys exist only in the gateway.
Consequences
  • One place to change a model or provider, validated by the evaluation set.
  • Budgets and guardrails apply by default.
  • The gateway is a critical dependency and needs its own availability target.
Alternatives considered
  • Direct provider SDKs (Software Development Kits) in each service (rejected: key sprawl, no shared controls)
  • A shared client library only (rejected: controls can be bypassed)
ADR-003 Accepted

Prisma AIRS scans every prompt, reply and tool call; writes fail closed

Context
A public-facing assistant that can take actions is an attack surface: prompt injection, data leakage and tool abuse are realistic threats, including through emailed trip sheets and retrieved documents.
Decision
Runtime scanning sits on the gateway path and at the tool boundary. Inputs, retrieved context, replies and tool arguments are scanned against a named security profile. A block returns a safe reply and a security event. If the scanning service is unavailable, anything that could write a booking or reveal customer data is refused and the guest is offered a human.
Consequences
  • Detection is consistent across every application.
  • Added latency must stay inside the turn budget.
  • A scanning outage degrades the assistant to answering general questions at most.
Alternatives considered
  • Prompt-only defences (rejected: not enforceable)
  • Scan replies only (rejected: misses injection through inputs and tools)
ADR-004 Accepted

Databricks is the data and AI platform, governed by Unity Catalog

Context
Transcripts, bookings, feedback, the knowledge index and evaluation sets are all data with access rules. Splitting them across tools would split the governance.
Decision
Keep conversation, tool and booking data in Delta tables under Unity Catalog, with row filters and column masks on personal data. Build the knowledge index with Vector Search from governed tables. Use MLflow for tracing and evaluation, and Lakeflow jobs for ingestion and nightly evaluation.
Consequences
  • One lineage and access model for data and AI assets.
  • Analysts and evaluators use the same tables the product writes.
  • Vector Search quotas and sync latency become design inputs.
Alternatives considered
  • A separate search service plus a data warehouse (rejected: two access models)
ADR-005 Accepted

Hold first, then confirm: no commit without an explicit confirmation

Context
A misunderstood message must never create a charge or consume a hangar bay. Guests also change their minds mid-conversation.
Decision
Resources are held for a fixed window, with the quote and cancellation terms shown. Commit requires an explicit confirmation from the verified account, carries an idempotency key and is a separate tool from the hold. Holds expire on their own.
Consequences
  • Mistakes cost a lapsed hold, not a booking.
  • One extra turn for every booking.
  • Idempotency keys make retries safe.
Alternatives considered
  • Commit on the first clear request (rejected: too risky for money and scarce inventory)
ADR-006 Accepted

Tail numbers, names and contact details are classified and minimised

Context
In business aviation, who is flying where can be sensitive. Aircraft owners may use programs that hide their movements, and transcripts would otherwise copy that data everywhere.
Decision
Classify tail number, passenger names, phone and email as sensitive. Send the model only what a turn needs, redact in traces and analytics, mask by role in the lakehouse and keep transcripts for a fixed retention period. Never reveal another customer's bookings or an aircraft's movements.
Consequences
  • Lower exposure in logs, evaluations and vendor tools.
  • Evaluation data needs a masked copy.
  • Some debugging needs an approved, audited unmask step.
Alternatives considered
  • Log everything and restrict access later (rejected: the data would already be copied)
ADR-007 Accepted

Keep the agent core portable: two reference builds behind one tool contract

Context
Platform choices differ between teams and may change. The tool contracts and policies are what must stay stable.
Decision
Define the tools, policies and evaluation set once. Build a Microsoft Foundry version and a LangGraph version with LangSmith against the same contracts and run the same evaluation set on both. The Foundry build suits teams standardised on Azure; the LangGraph build suits teams that want code-level control of the graph.
Consequences
  • Switching or comparing frameworks is a measured change.
  • Two builds cost more to maintain, so one is the primary and the other a reference.
  • Contracts must be strict enough to be portable.
Alternatives considered
  • Commit to one framework with no abstraction (rejected: lock-in on the least stable layer)
ADR-008 Accepted

A release gate: no deploy unless the evaluation set passes

Context
Prompt, model and policy changes can quietly make the assistant worse or less safe.
Decision
Every change runs offline evaluation on a versioned set of conversations, including adversarial ones. Task success, policy violations, groundedness and cost must meet thresholds. Production traces are sampled into new test cases, and online evaluators alert on drift.
Consequences
  • Regressions are caught before guests see them.
  • The evaluation set needs steady care.
  • Judge models used for scoring must themselves be spot-checked.
Alternatives considered
  • Manual spot checks before release (rejected: does not scale and misses regressions)
ADR-009 Proposed

Add a voice channel

Context
Many pilots prefer to talk, and arrivals are often handled by radio and phone.
Decision
Proposed: reuse the same conversation service behind a speech layer, with confirmation by a spoken code rather than free speech. Not accepted yet: the latency budget, noise robustness and call recording rules must be tested in a pilot.
Consequences
  • Same controls apply to a new channel.
  • Spoken identity verification is weaker and needs a stronger confirmation step.
  • Pending a pilot at two airports.
Alternatives considered
  • Text channels only (deferred: leaves the most natural channel unserved)

The principles behind them

Models propose, code disposes

Anything that spends money, reserves inventory or reveals data is decided and executed by tested code.

Controls live in the platform

Gateway, scanning, governance and evaluation apply to every team by default.

Ground or decline

A policy answer cites a source. With no source, the assistant says so and offers a person.

Measure before shipping

Quality, safety and cost are tested on every change, not argued about.

Build this for your business

This example is a booking assistant for a ground-handling network, but the same pattern, a governed gateway, runtime security, grounded knowledge, deterministic commits and measured quality, fits any customer-facing assistant that takes actions. We can scope a pilot on your own systems.

Book a discovery call