KatInterview

Design a Multi-Tenant AI Receptionist for Voice and Chat

System DesignModel answer
MediumModel answerSystem Designaimulti-tenantreal-time

Last updated

Design a platform where businesses deploy an AI receptionist over phone and chat, using approved knowledge, permitted actions, and live human handoff.

Background

A SaaS company wants to offer small and mid-sized businesses a branded AI receptionist. Callers can reach it by dialing a business's phone number, or by opening a chat widget on that business's website, mobile app, or messaging channel. The receptionist answers questions using content the business has approved, carries out permitted tasks on the customer's behalf, and transfers the conversation to a live agent whenever the situation calls for it.

Each business is an independent tenant with its own configuration, knowledge, and staff queue. No tenant should be able to see or affect another's data.

Scope: Define it first

No traffic numbers or latency budgets are provided. Before jumping into components, establish your assumptions:

  • Roughly how many concurrent conversations are you targeting?
  • What latency is acceptable for a voice turn-around vs. a chat reply?
  • Are all businesses guaranteed to have a staffed agent queue, and what happens at 2 a.m.?

Interviewers expect you to state these assumptions explicitly before designing to them.

Clarifying questions worth raising

  • Which operations can the receptionist perform autonomously, and which need explicit customer confirmation or a human to approve?
  • How does a business owner submit, review, and publish updates to their knowledge base, hours, and escalation rules?
  • Must a customer's history be visible across channels — e.g., does a follow-up chat show what was discussed on yesterday's call?
  • How should the system behave if no agent is available when a handoff is requested?

Part 1 — Channels and conversation state

Walk through how voice calls and chat messages enter the platform, how sessions are created and maintained, and how responses flow back to the customer.

Your answer should address:

  • Channel-specific adapters that normalize different protocols into a shared session model, without losing timing-sensitive behavior unique to voice (silence, interruptions, barge-in).
  • How an incoming contact is matched to the correct tenant and, when available, to an authenticated or identified customer record.
  • Real-time transcription and speech synthesis for voice, partial/streaming message handling for chat, and how both are stored in a unified conversation history.

Part 2 — Knowledge, configuration, and actions

Explain how the receptionist is constrained to approved information and authorized operations.

Your answer should address:

  • How business-specific content (FAQs, policies, hours, product catalog) is versioned and served, so a configuration rollback doesn't expose stale or conflicting answers.
  • How the AI retrieves and grounds its responses in tenant-approved content, detects uncertainty, and declines or escalates when a request falls outside its approved scope.
  • How permitted actions (booking an appointment, looking up an order, sending a confirmation) are defined as typed contracts, authorized per tenant, confirmed with the customer when appropriate, executed idempotently, and logged for audit.

Part 3 — Handing off to a human agent

Describe the full escalation path: from the moment a handoff is triggered to the moment a live agent takes over response authority.

Your answer should address:

  • How the platform queues the conversation for an available agent and delivers the full transcript and context at the moment of acceptance.
  • How voice bridging or chat re-routing works once an agent accepts, so the customer experiences a seamless transition.
  • The ownership handover as an atomic operation: the bot must stop generating replies the instant an agent takes control, with no window where both reply simultaneously.
  • What happens when no agent is available — after-hours behavior, callback scheduling, or async messaging.

Hints

Hint 1

Start by scoping: pick a concrete concurrency target (e.g., 10,000 simultaneous conversations) and a per-turn latency budget (e.g., <800 ms for voice, <2 s for chat), then let those numbers drive your component choices rather than listing components first.

Hint 2

Treat 'answering a question' and 'executing an action' as fundamentally different control paths. Questions go through a retrieval-and-grounding pipeline; actions go through an authorization check, a typed contract, customer confirmation, and an idempotent executor. Mixing the two is a common design mistake.

Hint 3

The human handoff is not a redirect — it's an ownership transfer. Model it as an atomic state change on the session (bot_active → agent_active) and make sure every reply-generation path checks that flag before sending, so the bot cannot race an agent on the same turn.