Design a Conversation Transcript Store and Insights Pipeline
Last updated: November 29, 2026
Quick Overview
Design storage and processing for every agent conversation across all Sierra customers: durable transcripts with tool calls, near real-time dashboards (resolution rate, escalations), and batch jobs that tag topics and surface emerging issues.
Sierra
November 29, 20260
0
0 solved
Design storage and processing for every agent conversation across all Sierra customers: durable transcripts with tool calls, near real-time dashboards (resolution rate, escalations), and batch jobs that tag topics and surface emerging issues.
Sierra customers judge their agent by outcomes, so they need trustworthy analytics on resolutions, escalations and what customers are asking about. The interviewer checks the split between an operational store and an analytics path, tenant isolation, PII handling, and how late or corrected data is reconciled.
What the Interviewer Expects
- Separate the online conversation store from the analytical store
- Use an event log as the source of truth for downstream consumers
- Define the schema for turns, tool calls and outcomes
- Isolate tenants and handle PII redaction and retention
- Explain how metrics stay correct when a conversation's outcome changes later
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you let a customer delete one end user's data across every store?
- How would you detect a new spike in a topic within an hour?
- How would you backfill a new topic tag over a year of history?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Tens of millions of conversations per month, each 10 to 50 turns with tool calls. Customers view a conversation within seconds of it ending, dashboards with under five minute freshness, and weekly ins...
High-Level Design
The agent runtime writes each turn to an operational store (a document or wide-column store keyed by tenant_id, conversation_id) for the transcript viewer, and publishes the same events to **Kaf...