When a company says "we want to implement artificial intelligence", it is almost always picturing the top layer: an assistant that answers by text or by voice. What stays out of view is that the assistant is the tip of a seven-layer stack, and that 80% of the cost, the risk and the implementation time lives in the six layers underneath.
At SUMāTO we have spent 9 years integrating technology across Latin America, and the pattern repeats: AI projects do not fail at the model — they fail at the infrastructure, the data or the integration. So here we run the full architecture exercise: if we had to build an enterprise AI assistant with voice from scratch today, which layers would we need, how does each one work under the hood, and which official services from which vendors would we use?
This is the map. Each layer includes its technical definition, its internal components, the metrics it is measured by, and references to the vendors' official documentation.
Layer 7 — Presentation TTS, voice and text channels
Layer 6 — Interaction STT/ASR, endpointing, VAD
Layer 5 — Orchestration Agents, RAG, function calling, guardrails
Layer 4 — Model LLM: inference, context, fine-tuning
Layer 3 — Data Ingestion, chunking, embeddings, vector DB
Layer 2 — Platform Kubernetes, APIs, LLMOps, observability
Layer 1 — Infrastructure GPU, network, storage
─────────────────────────────────────────────────────
Cross-cutting Security, governance, compliance
Each layer solves a different problem, is contracted with different vendors, is measured with different metrics and fails in different ways. Let's take them one at a time.
Definition. This is the compute, network and storage foundation the rest of the stack runs on. What sets it apart from traditional IT infrastructure comes down to two words: accelerated compute. An LLM at inference time executes billions of matrix multiplications for every token it generates; that workload is massively parallel and conventional CPUs cannot serve it at usable latency. Hence the reference hardware: data center GPUs (NVIDIA H100/H200/B200 and the Blackwell family) or cloud-proprietary accelerators (AWS Trainium/Inferentia, Google TPU).
The technical concepts that define this layer:
Official services we would use:
| Need | Service | Official documentation |
|---|---|---|
| Hyperscale cloud with GPU | AWS EC2 (P5/P6 instances), AWS Inferentia | aws.amazon.com/ec2/instance-types |
| Hyperscale cloud with GPU | Microsoft Azure (ND/NC series) | azure.microsoft.com/products/virtual-machines |
| Regional cloud / data residency | Huawei Cloud (Ascend) | huaweicloud.com |
| Acceleration platform | NVIDIA (CUDA, TensorRT-LLM, NIM) | developer.nvidia.com |
The consulting call: almost no company in LATAM should buy its own GPUs to get started. The right model is to consume inference as a service (layer 4) and reserve dedicated infrastructure only when volume justifies it — typically above several million interactions per month, or when regulation requires that data never leave a defined perimeter.
Definition. This is the engineering layer that turns raw infrastructure into an operable, auditable environment: containers, APIs, deployment pipelines and the discipline of LLMOps — MLOps extended to language models, where the artifact you version is no longer just the model but also the prompts, the RAG configurations and the evaluation sets.
Internal components:
Official services we would use: Amazon SageMaker AI or Azure Machine Learning for the full lifecycle; Datadog or Grafana for platform observability.
The consulting call: this layer is invisible to the business and therefore chronically underestimated. Without LLMOps, there is no way to answer with data the question the executive committee will ask in month three: "is the assistant answering well, and better than last month?"
Definition. This is the layer that turns company knowledge (documents, policies, catalogs, system histories) into a format the model can query. The central mechanism is the embedding: a function that transforms text into a vector of hundreds or thousands of dimensions (typically 384 to 3,072) whose position in space captures meaning. Two texts that say the same thing with different words land close together; search stops being keyword-based and becomes semantic search.
The full pipeline, step by step:
Metrics for this layer: recall@k (is the right fragment among the k retrieved?), retrieval precision, and index freshness.
The consulting call: this is where the assistant's real quality is decided. A state-of-the-art LLM with badly chunked data answers worse than an average model with a well-tuned retrieval pipeline. It is the highest-return investment per dollar in the entire stack, and it is why an orderly data analytics foundation is the real prerequisite for any AI project.
Definition. The LLM (Large Language Model) is a language model built on the Transformer architecture, pretrained on trillions of text tokens for a deceptively simple task — predicting the next token — from which capabilities in comprehension, reasoning and generation emerge. Three concepts define its behavior in production:
The three mechanisms for adapting a model to the business, in increasing order of cost:
Official services we would use:
| Modality | Service | Official documentation |
|---|---|---|
| Direct lab API | Anthropic Claude | docs.claude.com |
| Direct lab API | OpenAI GPT | developers.openai.com/api/docs |
| Direct lab API | Google Gemini | ai.google.dev |
| Managed multi-model platform | Amazon Bedrock — models from multiple providers, swappable without rewriting code | docs.aws.amazon.com/bedrock |
| Managed multi-model platform | Microsoft Foundry — broad model catalog with Azure governance | learn.microsoft.com/azure/foundry |
| Self-hosted open models | Meta Llama, Mistral, via Hugging Face | llama.com · docs.mistral.ai · huggingface.co |
The core trade-off: managed API = top quality and zero operations, paying per token and accepting that data transits through the provider (with the contractual and technical controls that demands). Self-hosted open model = full control and data residency, in exchange for operating layers 1 and 2 end to end. Multi-model platforms (Bedrock, Foundry) are the pragmatic middle ground: one contract, several models, centralized governance.
The consulting call: the right question is not "which is the best model?" but "which is the best model for this use case, at this cost per interaction, with these data requirements?". That is why the correct design is model-agnostic: an abstraction layer that lets you switch providers without rewriting the system. LLM pricing and capabilities change every quarter; the architecture should not.
Definition. An LLM only generates text. The orchestration layer turns it into an agent: a system that reasons in steps, queries sources, executes actions in external systems and holds the thread of a conversation from start to finish. This is the layer where AI stops answering and starts operating.
Internal components:
Official frameworks and services: LangChain / LangGraph as the open-source orchestration framework; Amazon Bedrock Agents and the agent services in Microsoft Foundry as the managed option; Model Context Protocol (MCP), the open standard driven by Anthropic for connecting agents to tools and data sources interoperably.
An important architecture decision surfaces here: there are packaged cognitive agent (AI Agent) platforms that solve this layer — and much of layers 3 and 4 — as a product, with the full autonomous cycle: automate, decide, improve. As agnostic integrators, at SUMāTO we assess with each client when it makes sense to build custom orchestration on open frameworks and when it is better to deploy a platform that already ships that cycle ready to connect to the operation.
Definition. When the channel is voice, a critical step comes before the LLM: STT (Speech-to-Text), also called ASR (Automatic Speech Recognition) — the technology that converts the audio signal into text. Modern systems are end-to-end neural models trained on hundreds of thousands of hours of audio, and their quality is measured in WER (Word Error Rate): the percentage of words inserted, deleted or substituted relative to the correct transcript.
Internal components of a production STT:
Official services we would use:
| Service | Strength | Official documentation |
|---|---|---|
| Amazon Transcribe | Native integration with the AWS stack, streaming and batch | aws.amazon.com/transcribe |
| Azure AI Speech | Complete voice suite (STT+TTS), customizable models | azure.microsoft.com/products/ai-services/ai-speech |
| Deepgram (Nova-3, Flux) | Leading latency and accuracy for real-time voice agents | developers.deepgram.com |
| OpenAI (Whisper and transcription models) | Excellent in Spanish; Whisper also available as self-hostable open source | developers.openai.com/api/docs · github.com/openai/whisper |
| Google Cloud Speech-to-Text | Broad coverage of languages and regional variants | cloud.google.com/speech-to-text |
| ElevenLabs Scribe | Low-latency real-time STT, 90+ languages | elevenlabs.io/docs |
The consulting call: STT is where voice projects in LATAM fail quietly. A 15% WER on the client's accent and domain means one word in seven reaches the LLM corrupted — and no model, however good, reasons well over corrupted input. The SUMāTO rule: STT is chosen with your own benchmark on real audio from the client's operation (real calls, real accent, real noise), never with the WER on the vendor's website, which was measured under laboratory conditions.
Definition. This is the layer the user ultimately perceives. In text, it is delivery through the channel (web, WhatsApp, application). In voice, it is TTS (Text-to-Speech): the neural synthesis that turns the LLM's answer into speech with natural prosody, pauses and intonation. Today's models generate the waveform directly with generative neural architectures, and the gap versus the "robot voice" of a decade ago is categorical.
Internal components and metrics:
Official services we would use:
| Service | Strength | Official documentation |
|---|---|---|
| ElevenLabs | Leading expressive quality and voice cloning; low-latency models for real time | elevenlabs.io/docs |
| Amazon Polly | Cost efficiency and scale, neural voices in Spanish | aws.amazon.com/polly |
| Azure AI Speech | Customizable neural voices (Custom Neural Voice) | azure.microsoft.com/products/ai-services/ai-speech |
| Google Cloud Text-to-Speech | Broad multilingual catalog | cloud.google.com/text-to-speech |
| OpenAI TTS | Synthesis with prompt-level control, integrated into the OpenAI ecosystem | developers.openai.com/api/docs/guides/text-to-speech |
And this is where the stack closes: the channel layer — telephony above all — is what an omnichannel AI contact center platform solves: routing, telephony, WhatsApp and handoff to a human agent when the conversation calls for it. The complete architecture — a cognitive agent as the brain and a channel platform as the contact system — is the concrete example of how these seven layers materialize on top of the client's real operation.
Everything so far describes the cascading architecture: STT → LLM → TTS, three models chained together. It is the dominant architecture in production because each link is chosen, measured and replaced independently — the agnostic design we recommend.
But a second architecture is emerging: native speech-to-speech models, which take audio in and generate audio out directly, with no intermediate text. OpenAI's Realtime API is the commercial reference: natively multimodal models that listen, reason and speak in a single session over WebRTC or WebSocket, with built-in turn detection and function calling mid-conversation. The promise: lower end-to-end latency and preservation of signals that text discards — tone, emotion, hesitation.
Our consulting read:
| Criterion | Cascade (STT→LLM→TTS) | Native speech-to-speech |
|---|---|---|
| Per-component control | Full: each piece is chosen and audited | Low: a single provider, a more closed box |
| Audit and compliance | Complete text transcript as evidence | Traceability still being built |
| Latency | Good with streaming done right (~800 ms) | Potentially better |
| RAG and proprietary knowledge | Mature | Maturing |
| Lock-in | Low by design | High |
For regulated operations — banking, healthcare, insurance, government — the cascade remains the recommendation, on auditability and control. Native speech-to-speech is worth a pilot in premium-experience cases where latency is everything. It is exactly the kind of architecture decision we assess case by case.
None of the seven layers above goes to production without this one. Definition: the set of technical and organizational controls that guarantee the assistant handles personal data in line with applicable regulation (in Mexico, the LFPDPPP; across the region, equivalent frameworks; for clients with European operations, the AI Act as the reference for risk classification), that conversations are encrypted and audited, and that every automated decision is traceable.
Minimum components:
| Layer | Question it answers | Key metric | Reference services |
|---|---|---|---|
| 1. Infrastructure | Where does it run? | Latency, GPU cost/hour | AWS, Azure, Huawei Cloud, NVIDIA |
| 2. Platform | How is it operated and measured? | Uptime, throughput, evals | Kubernetes, SageMaker, vLLM, LangSmith |
| 3. Data | What does it know about my company? | Recall@k, freshness | Pinecone, OpenSearch, Titan/Cohere Embed |
| 4. Model (LLM) | How does it reason and generate? | Quality, cost/token | Claude, GPT, Gemini, Bedrock, Foundry, Llama |
| 5. Orchestration | How does it act? | Resolution rate | LangGraph, Bedrock Agents, MCP |
| 6. Interaction (STT) | How does it understand me? | WER, streaming latency | Transcribe, Deepgram, Whisper, Azure Speech |
| 7. Presentation (TTS) | How does it answer? | TTFB, MOS | ElevenLabs, Polly, Azure Speech, Google TTS |
| Cross-cutting | Is it secure and compliant? | Findings, traceability | KMS, Purview, Fortinet, NIST AI RMF |
Every piece of this stack exists as a service, is publicly documented by its vendor, and can be bought with a credit card. What you cannot buy with a credit card is the judgment to choose them, connect them and govern them.
And here it is worth being blunt: there is currently an oversupply of "AI experts" working on a technology where every one of us is still learning — labs, vendors, integrators and clients alike. Models change every quarter, best practices are being written in real time, and a good share of the architectures being proposed today come out of trial and error. That is not a market defect: it is the nature of a technology mid-way up its maturity curve. The defect is dressing up an experiment as certainty.
The good news is that, from a consulting standpoint, the procedure for adopting technology in a corporate environment has not changed in any essential way in recent years — and it is precisely what protects the company when the technology does change every quarter:
1. Understand the business before the technology. The process starts at the problem, not at the model: which process hurts, what that pain costs, what measurable outcome would fix it. A use case without a quantified baseline is not a use case; it is a demo waiting for a budget.
2. Rigorous vendor analysis. Verifiable success stories — with clients you can actually call — vendor financial health, a public roadmap, official documentation (which is why this article cites it layer by layer) and a support model. A vendor that cannot show references comparable to your industry and your scale is still experimenting; that can be a valid partner for a pilot, not for the core of the operation.
3. Demos and proofs of concept with controlled scope. Seeing the technology work on a scenario of your own, with exit criteria defined before you start: what accuracy, what latency, what cost per interaction turn the pilot into a project — and what results kill it. A pilot without cancellation criteria is not a pilot; it is a purchase in disguise.
4. Quality validation before implementation. Benchmarking with real operational data (WER on the real accent, recall on the real documents), security testing, regulatory compliance validation and experience evaluation with real users. In AI this stage carries more weight than ever, because the models are probabilistic: it is not enough that it works in the demo; you have to measure how often and under what conditions it stops working.
5. Gradual implementation with governance from day one. Phased rollout, with a human in the loop, operational metrics and a committee that reviews system behavior — not at the end of the project, but throughout its life.
And two rules that admit no exception, because mistakes on these points are not fixed by a new model release:
That is the job of an agnostic integrator: applying a proven methodology to a technology that is still maturing, without a conflict of interest pushing any one component. At SUMāTO we do not manufacture any of these pieces, and precisely for that reason we can pick the best one for each layer and each client — the right cloud, the right model, the STT that actually understands your operation's accent, and the platform — whether custom-built on open frameworks or packaged — that turns the stack into operational results. Our method — Consulting → Design → Processes → Governance — is exactly the sequence above, systematized.
Want to adopt AI with method instead of hype? The starting point is our 360° Diagnostic: in 90 days we understand your business, map your current architecture against this stack, evaluate vendors with objective criteria and deliver an implementation roadmap prioritized by value and feasibility — with your company's data protected at every step.
How many layers does an enterprise AI assistant really have?
Seven functional layers plus a cross-cutting security and governance layer: infrastructure, platform, data, model (LLM), orchestration, interaction (STT) and presentation (TTS). The assistant the user perceives is only the last one; 80% of the cost, the risk and the implementation time lives in the layers below.
What is the difference between RAG and fine-tuning?
RAG has the model consult company knowledge before answering, without retraining anything, and it reduces hallucinations because it anchors generation in citable sources. Fine-tuning partially retrains the model with your own data and is justified only for highly repetitive tasks, strict output formats or very specialized vocabulary — and only after exhausting prompt engineering and RAG.
Cascading architecture (STT→LLM→TTS) or native speech-to-speech?
For regulated operations — banking, healthcare, insurance, government — the cascade remains the recommendation: each component is chosen, audited and replaced independently, and the text transcript serves as evidence. Native speech-to-speech offers lower latency and is worth a pilot in premium experiences, but it implies more lock-in and traceability that is still being built.
How do you choose an STT engine for Spanish in Latin America?
With your own benchmark on real audio from the operation: real calls, real accent, real noise and 8 kHz telephony audio. Never with the vendor-published WER, measured in the lab. A 15% WER means one word in seven reaches the LLM corrupted, and no model reasons well over corrupted input.