Conversational AI (artificial intelligence) · 08 / 22

Non-Functional Requirements and Capacity

Measurable quality requirements for the booking assistant: performance, availability, security, privacy, capacity model, degradation and recovery.

Why these requirements matter

Functional stories say what the assistant does. These requirements say how well, and under what conditions. Each has a number and a way to prove it, so it can be tested before release and watched in production. Figures are illustrative planning targets.

Requirements by quality

QualityRequirementTargetHow it is verified
PerformanceMedian time to first streamed tokenUnder 2 sLoad test and the turn latency query
Performance95th percentile full turn including toolsUnder 6 sLoad test and production p95 alert
AvailabilityBooking conversation service99.9% monthlySynthetic conversation every minute
AvailabilityDegraded mode when a dependency failsAlways answers or hands offChaos tests per dependency
ScalabilityPeak concurrent conversations without a latency breachThree times the busiest hourSoak and spike tests
SecurityAll model and tool traffic scanned100%Scan coverage alert; unscanned call count is zero
SecurityTool calls authorised by the verified account100%Cross-account contract tests
PrivacyRestricted data in logs and tracesNoneAutomated scan of telemetry and tables
CorrectnessPrices equal the pricing service result100%Replay of quoted totals against the service
CorrectnessCommits without confirmationZeroThe unconfirmed-commit query and release gate
ResilienceRecovery time objective, conversation service30 minutesQuarterly disaster recovery exercise
ResilienceRecovery point objective, bookings and holdsZero loss of committed bookingsReplication check; outbox replay
ObservabilityA trace for every turn, joined across gateways100% of errors and blocks, 10% of othersTelemetry coverage report
MaintainabilityTime to repoint a model alias after a passing evaluationUnder one hourRelease drill
AccessibilityChat and email meet recognised accessibility guidanceLevel AAAudit before launch
CostModel and platform cost per bookingWithin budgetCost query and monthly review

Capacity model

The model starts from monthly volume and works down to calls per second, so each tier of the platform can be sized and its limits set on the gateway.

QuantityPilot, 2 airportsNetwork, 200 airportsPeak, network
Conversations per month3,000120,000n/a
Conversations per day1004,00012,000
Busiest hour share of the day12%12%12%
Conversations in the busiest hour124801,440
Average conversation length6 minutes6 minutes6 minutes
Concurrent conversations1 to 2About 48About 144
Model calls per conversation121212
Model calls per secondUnder 1About 1.6About 4.8
Scans per secondUnder 2About 4About 12

Concurrency is the hourly volume times the average length in hours. Peak is three times the network figure, for storms, event weekends and a bad day at a hub.

Degradation ladder

When a dependency fails, the assistant gives up one capability at a time and always tells the guest what is happening. A write path never keeps working without its checks.

FailureBehaviourGuest experience
Primary model provider downGateway fails over to the second providerNo visible change, possibly slower
Both providers downStatic menu and handoffOptions for common questions and a person
Scan service downFail closed on writes; general answers from the knowledge index onlyCan ask about rules, cannot hold or book; offered a person
Knowledge index downPolicy answers declinedTold that rules cannot be checked right now
Pricing service downNo quotesTold a person will quote; ticket opened
Booking system downRequests queued with the details capturedTold the request is pending and when to expect a reply
Tool gateway downRead-only chat from the knowledge indexCan ask questions; booking paused

Sequence: provider failover and the static menu

Provider failover and degradation to the static menu When the primary provider times out the gateway fails over to the second. If both fail, the gateway returns an error and the service switches the turn to a static menu with a handoff. Service AI gateway Provider A Provider B Static menu model call route primary timeout fail over completion reply next call route primary error fall back error unavailable switch the turn to the menu options and handoff
Provider failover and degradation to the static menu

The first failure is invisible to the guest. The second is visible and honest: a short menu and a way to reach a person, never a hung chat.

Recovery objectives

ComponentRecovery timeRecovery pointApproach
Conversation service30 minutesConversation state to the last turnStateless service, state in a replicated store
AI gateway15 minutesConfiguration is in version controlTwo regions, active and standby
Tool gateway15 minutesConfiguration is in version controlTwo regions, active and standby
Bookings and holdsPer the FBO (Fixed-Base Operator) systemZero for committed bookingsOutbox replay after recovery
Knowledge index4 hoursRebuilt from the source tableRebuild job
Lakehouse8 hoursOne hourPlatform replication

How the requirements are tested

  1. Load and soak

    Replay recorded conversations at one, three and five times the busiest hour for several hours, with backends and models mocked at realistic latency.

  2. Chaos

    Turn off each dependency in turn in staging and check the degradation ladder.

  3. Failover drills

    Fail the model provider, then a region, quarterly. Measure recovery against the objectives.

  4. Telemetry audit

    Scan traces and tables for restricted data after every release.

  5. Accessibility review

    Test the chat widget and email templates with assistive technology.

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