AI SDK
Conversational AI Agents in 2026: Architecture, Verticals, and BYO LLM
If you’re a CTO or VP of Engineering at an insurance carrier, a bank, a healthcare system, or a large retailer, you’ve probably tried several AI agent demos and know they usually look the same. But what’s more important is the architecture underneath – the LLM they use, the retrieval layer, how memory is structured, security and compliance, and whether the model runs on your infrastructure or the vendor’s.
This article covers what a conversational AI agent actually is at the architecture level, how the technology is being applied in four verticals with real KPIs, what’s genuinely new in 2026, and when to build vs buy vs self-host your own model.
In this guide
- What a conversational AI agent actually is
- The 6-primitive architecture
- Insurance chatbot: the highest-ROI vertical
- Banking chatbot and conversational AI for banking
- Retail AI chatbot and e-commerce
- Healthcare and HIPAA-compliant LLM
- 6 emerging 2026 trends
- BYO LLM: when self-hosting actually makes sense
- Mistakes that kill production deployments
- Ethora AI Bots SDK
What a Conversational AI Agent Actually Is – and Isn’t
The term gets applied to three very different things, and the distinctions matter when you’re scoping a build.
The oldest version is the rule-based chatbot – decision trees, keyword matching, FAQ lookup. They break the moment a user asks anything outside the predefined flowchart.
The next version is what most 2023-2024 teams deployed: an LLM chatbot – a language model answering questions, with no retrieval, no tools, and essentially no memory between turns. It sounds good in a demo because the base model has strong language ability. In production, it hallucinates about your specific products and policies, contradicts itself after a few turns, and can’t actually do anything – no order lookup, no appointment booking, no policy check.
A real conversational AI agent is the third thing: a multi-turn system that combines an LLM with retrieval over your actual data (RAG), tool calls to your actual APIs, structured memory across turns, and guardrails that enforce the constraints your vertical requires. The distinction matters because a customer asking “what does my deductible cover if I file a claim next month” needs your actual policy document retrieved and your actual policy management system queried – not a plausible-sounding answer generated from training data that may or may not reflect your current policy terms.
The 6-Primitive Architecture Behind a Production Agent
The combination of these six primitives is what separates a production AI agent from a chatbot wrapper around an API call.
1. The LLM
The reasoning engine. Cloud options – OpenAI GPT-4o, Anthropic Claude Sonnet 4, Google Gemini – offer the best quality floor and the fastest iteration. Self-hosted options – Llama 3.3 70B, Qwen 2.5 72B, Mistral Large – remove the cloud dependency and satisfy the compliance constraints that make a HIPAA BAA or a data residency requirement non-negotiable. The choice here drives most of the downstream compliance and cost structure, so it’s worth making deliberately rather than defaulting to whatever the SDK demo used.
2. Orchestration layer
Loop controls the thinking, routing, and retries of the agent. LangGraph excels at handling complex stateful reasoning; LlamaIndex shines at retrieval-heavy workloads; the OpenAI Assistants v2 is the fastest route for OpenAI-powered teams; a custom-made finite-state machine provides maximum control for regulated processes, where the agent being “off-script” just won’t do. The result of a typical development process would be somewhere in between, with a framework used for the general case and a custom solution for the regulated case.
3. Memory
Three layers, each serving a different purpose. Short-term memory is the last N turns in the context window – the model needs this to understand that “what about my other plan” refers to something mentioned four messages ago. Medium-term is per-session summaries that compress long conversations without losing the thread. Long-term is a vector store holding a profile of the user’s history, preferences, and past interactions. The absence of any of these layers is why so many 2023-era chatbots felt frustratingly stateless – they’d forgotten your name by message five.
4. Retrieval (RAG)
The layer that grounds the agent’s answers in your actual documents – your policy PDFs, your product catalog, your help center, your FAQ. Without RAG, the model answers are from training data, which may be months old and not contain your specific terms.
Using it, the response is based on retrieving actual content chunks. Implementation is more important than the diagrammatic architecture: chunking approach, embedding model performance, vector database selection, and re-ranking make a difference in retrieving the right content chunk for a particular query. A RAG pipeline built without attention to these details will retrieve plausible but wrong content.
5. Tools and function calling
The ability to do things rather than just answer things. Native in OpenAI’s API and Anthropic’s tool use feature; available in open-source models via structured output. Tool calls let the agent look up a live order status, check a policy database, book an appointment in a scheduling system, or call any backend API you can expose. Without this, the agent can tell a customer what a return policy says – it can’t initiate the return. The gap between those two outcomes is most of the ROI difference between a chatbot and an agent.
6. Guardrails and moderation
Input filtering catches jailbreak attempts and prompt injection before they reach the model. Output filtering catches hallucinations, policy violations, and content that creates liability – a HIPAA-compliant LLM deployment needs PHI redaction on outputs; an insurance agent needs disclaimers on anything that could be construed as coverage advice; a banking chatbot needs a hard stop before giving regulated investment advice. Llama Guard 3 is a strong open-source option for content filtering; OpenAI’s Omni-Moderation API handles the cloud side. AI content moderation at this layer is not optional in regulated verticals.
Insurance Chatbot: The Vertical With the Highest ROI in 2026
An insurance chatbot works well for a structural reason: the questions are high-volume, highly repetitive, and the answers are grounded in documents you already have. A policyholder asking about deductibles, coverage limits, or claim status is asking a question with a right answer sitting in a policy PDF that the agent can retrieve. That’s a much cleaner problem than open-ended support, and the ROI reflects it.
The ROI math on an insurance chatbot handling first-notice-of-loss (FNOL) is relatively concrete. A human adjuster spends 5-15 minutes on a standard FNOL intake – collecting incident details, confirming coverage, and opening the claim file. An AI agent can complete this structured workflow in under 2 minutes, at any hour, without the hold times that generate the most CSAT complaints in insurance. At a mid-size carrier handling 50,000 claims per year, that’s meaningful adjuster capacity freed for the cases that actually require judgment. Conversational AI for insurance deflects 40-70% of tier-1 inquiries and cuts average handle time 25-40% on claim intake – directional benchmarks consistent across 2025-2026 insurance industry reports from consultants including McKinsey and Accenture.
When conversational AI for insurance is useful: quotes comparison, coverage explanations, initial notification of loss processing, claim status inquiries, provider network, renewals. When it is not: decision-making on claims, medical necessity, subrogation.
The compliance layer for a chatbot for insurance is quite nuanced. State-by-state insurance regulation means an agent saying “your claim will be approved” in one state may be creating an inadvertent coverage commitment that differs from what’s legally operative. The NAIC model regulations are the reference for US carriers. For health insurance sub-lines, HIPAA applies to any data touching protected health information. The EU AI Act classifies insurance underwriting as high-risk for some flows, which triggers transparency and documentation requirements that are worth reviewing before deploying in EU markets.
Banking Chatbot and Conversational AI for Banking
Banking is where the tier-1 vs tier-2 distinction between AI and humans is clearest. Balancing checks, transaction checks, dispute handling, statement production, KYC pre-check – these activities require adherence to rules and procedures and have definitive correct responses – perfect for a banking chatbot to perform. It will free up time for human agents. For example, Klarna’s OpenAI-based chatbot engaged in 2.3 million chats in its first month of deployment in February 2024 – equal to the output of 700 agents – and reduced response time from 11 minutes to less than 2 minutes.
But while AI perfectly handles tier-1 inquiries, more complex tasks, especially those like regulated investment advice, mortgage pre-approval decisions, fraud adjudication, and complex loan restructuring, require a licensed human in the decision chain, and no guardrail implementation is a substitute for that.
Compliance for a banking chatbot is layered. SOC 2 is the baseline for any cloud-hosted deployment. GDPR and CCPA govern data handling for EU and California customers. PCI-DSS applies the moment card data is in scope. For anything touching investment products, FINRA and SEC content rules apply in the US – and the Federal Reserve’s SR 11-7 guidance on model risk management means your AI chatbot for financial services needs documentation of validation, monitoring, and governance that most teams don’t build into the initial deployment. Build the audit trail from the start, not after the compliance team asks for it.
Reference architecture for a banking chatbot: LLM plus RAG over product documentation, tool calls into the core banking system for account data, a strict guardrail that intercepts any output approaching regulated advice and redirects to disclosure language, a logged audit trail on every conversation, and a human handover flow to a licensed representative for anything the guardrail flags.
Retail AI Chatbot and AI Chatbot for E-Commerce
The retail case is less about compliance and more about conversion. A retail AI chatbot at the product page or cart stage is solving a different problem from an insurance or banking deployment – the last-mile friction that prevents a purchase from completing. The questions that kill conversion (“does this come in wide sizes,” “will this fit my 2019 model,” “what’s the actual return window”) are answerable, product-specific, and grounded in catalog data. That’s a good RAG problem.
An AI chatbot for e-commerce lifts on-site conversion 10–35% at high-intent moments (product page, checkout), reduces return rates 5-15% via pre-purchase fit and compatibility help, and recovers 15-25% of cart-abandonment intent when triggered at exit or on 30-second idle.
A retail AI chatbot with a shallow product catalog index and no actual inventory lookup performs at the low end. One with a well-built RAG layer over the full catalog, real-time inventory tool calls, and proactive trigger logic for high-dwell product pages performs at the high end.
Where a retail AI chatbot doesn’t belong: high-complexity custom orders, disputes involving fraud (human judgment required), and VIP concierge relationships where the personal touch is the product.
As for compliance, follow the EU AI Act transparency obligation for consumer-facing AI, GDPR requirements, and – for payment-adjacent flows – PSD2 considerations.
Reference architecture: LLM and RAG on the product catalog and return policy, API call to inventory and order management, rich message rendering within a product card in the chat bubble, and human handoff flow to a customer service representative for high value/high churn customers identified by a sentiment classifier.
Healthcare and HIPAA-Compliant LLM Chatbots
Healthcare is where the compliance constraints most directly determine the architecture, rather than the other way around. A HIPAA-compliant LLM isn’t a marketing label – it has a specific technical and legal meaning. Protected health information (PHI) cannot be processed by a model whose provider hasn’t signed a Business Associate Agreement (BAA) with you.
To ensure HIPAA-compliant LLM deployment, you need to either use a cloud provider that signs a BAA or self-host the model on your own infrastructure so PHI never leaves your environment.
For HIPAA-compliant deployment of an LLM, either use a cloud provider signing the BAA or run the model yourself so that PHI does not leave your environment.
A healthcare AI chatbot will be perfect for appointment booking, non-clinical FAQs, symptom triage to the appropriate level of care (with hard human escalation rules and strict scope), follow-up after the visit, and reminders about medications. But it mustn’t be used for diagnosis, treatment recommendations, or anything related to controlled substances.
Reference architecture for HIPAA-compliant LLM deployment: self-hosted Llama 3.3 70B or Claude under the BAA, RAG based on the clinic’s policies and FAQ, tool calls to the EHR through HL7 FHIR APIs, PHI redaction guardrails on any output, and hard human escalation rule on any message containing symptoms, medications, or clinical entities.
6 Emerging 2026 Trends Every Builder Should Know
Don’t miss these trends; they may help you build more advanced chatbots or get the maximum benefits from them.
Agentic workflows
The agent doesn’t just answer – it plans, decomposes the task into steps, calls tools in sequence, checks its own work, and iterates. LangGraph’s stateful graph model, OpenAI Assistants v2, and Anthropic’s Claude with extended thinking are the current anchors. The shift from “answer this question” to “complete this task” is where most of the interesting insurance chatbot and banking chatbot development is happening right now.
MCP — Model Context Protocol
MCP is Anthropic’s open protocol for exposing tools, data sources, and APIs to any MCP-compatible LLM. What used to require a custom integration for each model (different tool-calling formats for OpenAI vs Anthropic vs Llama) now has a standardization layer. Ethora ships an MCP Server that exposes its chat SDK to any MCP client. If you’re building tooling for AI agents in 2026, supporting MCP is increasingly a prerequisite for interoperability.
Voice-first
ChatGPT’s Voice mode, OpenAI’s Realtime API, and ElevenLabs have made low-latency voice AI practical. Insurance and healthcare benefit most – a 65-year-old policyholder filing a claim or describing symptoms is more comfortable on a voice call than typing in a chat widget. Voice also removes the typing barrier for mobile-first use cases where the keyboard is friction. The 2026 builds that will matter most are the ones combining voice input with the RAG and tool architecture described above.
Multi-agent systems
One specialist agent per task – a claims intake agent, a policy comparison agent, a billing agent – coordinated by an orchestrator that routes based on intent. The pattern improves answer quality because each specialist is scoped to a narrower domain with a tighter retrieval index. Still early in production deployment, but the architectural direction is clear.
Streaming responses
Token-by-token rendering via SSE is table stakes now. A user who sends a complex query and sees nothing for 15 seconds assumes the agent is broken or slow – even if the final answer is excellent. Streaming makes latency feel faster than it is, and the UX difference between streaming and batch response at equivalent quality is significant and measurable in session abandonment rates.
On-device and edge LLMs
Apple Intelligence, Gemini Nano on Pixel, and Llama 3.2 1B/3B are bringing small but capable models to device-local inference. For consumer AI agent apps, this eliminates the cloud round-trip for common queries, reduces cost, and improves privacy – the conversation doesn’t leave the device. Not yet capable of handling complex multi-step reasoning, but strong enough for intent classification, short FAQ answers, and pre-processing before routing to a larger cloud model.
BYO LLM: When Self-Hosting Actually Makes Sense
The teams in regulated industries can’t just take any LLM and use it. To comply with regulations, they need to choose the right deployment option.
When a cloud LLM is the right call
You want the best available model quality, you have low compliance friction (or a provider who signs the required BAA), your conversation volume is low-to-moderate, and you want to ship fast. This is most teams at the start of a project. OpenAI Enterprise and Anthropic both sign HIPAA BAAs now, which makes HIPAA-compliant LLMs via the cloud possible – just get the BAA in place before PHI touches the model.
When to self-host an LLM
The triggers for moving to a self-hosted AI chatbot with a local model are usually one of three:
- API spend crosses a threshold where self-hosting is cheaper (roughly $50K/month of API cost, where the infra cost of running Llama 3.3 70B on 4× A100s at ~$4K/month becomes attractive)
- Compliance requirements that a BAA can’t satisfy (air-gap, sovereign cloud, on-prem mandates from enterprise customers)
- Data residency constraint that makes any third-party API processing untenable
Llama 3.3 70B and Qwen 2.5 72B are the practical choices for enterprise LLM self-hosting in 2026 00 both perform competitively with GPT-4o-class models on most instruction-following and tool-use tasks. Running them requires 2-8 A100-class GPUs, depending on whether you’re using quantization and what your concurrency requirements look like. Local LLM tools like Ollama (for development), vLLM (for production throughput), and TGI (Hugging Face’s inference server) all make the on-premises LLM path more accessible than it was even a year ago.
The hybrid pattern
Route cheap high-volume queries – intent classification, FAQ lookups, routine order status – to a local model. Route hard cases – complex policy interpretation, edge-case reasoning, anything where model quality noticeably matters – to a cloud model. The split reduces API spend significantly without degrading quality in the cases where quality matters most. Ollama handles the local model routing cleanly; vLLM scales it for production throughput.
Cost napkin math
GPT-4o-mini via OpenAI runs ~$0.15 per million input tokens and ~$0.60 per million output tokens. A self-hosted Llama 3.3 70B on 4× A100 80GB runs roughly $4,000–5,000/month in cloud GPU cost (AWS or GCP p4d/A100 instances).
The breakeven point – where self-hosting becomes cheaper than API calls – is around 20-30 million tokens per month, depending on the cloud provider and your mix of input vs output tokens. Above that threshold, running an LLM locally (or on your own cloud infrastructure) is the cheaper path. Below it, the API is cheaper unless you have a non-cost reason to self-host.
One more consideration: model selection flexibility. The LLM landscape moved from GPT-4 to Claude Sonnet to GPT-4o to Claude Opus 4.7 in under 24 months. If your architecture locks the model into the stack – if swapping GPT-4o for Claude requires rewriting integration code — you’re going to pay that migration cost repeatedly. BYO LLM architectures that treat the model endpoint as a config value rather than a dependency avoid this.
Mistakes That Kill Production Deployments
Deployment mistakes can lead to outages, security risks, and rollbacks. Let’s consider the most common ones so you can avoid them and build reliable systems.
Skipping RAG entirely. An LLM chatbot without retrieval answers from its training data, which doesn’t know your policy terms, your product catalog, or your current fee schedule. It will hallucinate specific numbers and policy details with high confidence. This is worse than no chatbot, it’s a chatbot that gives wrong answers authoritatively.
No guardrails on input or output. Jailbreak attempts are constant in any publicly accessible agent. Prompt injection via document content is a real attack vector in RAG systems. Output guardrails for regulated content – PHI redaction, financial disclaimer enforcement, coverage scope limits – aren’t optional in the verticals described in this article. Deploying without them is not a temporary gap; it’s a liability.
No human handover path. The Klarna case study makes this point better than any general warning: an agent that handles 67% of conversations well but has no exit path for the 33% that need human judgment creates compounding frustration for the most complex and most valuable customer interactions. Define the escalation triggers before launch, not after the first escalation complaint.
Rolling your own orchestration framework. LangGraph or OpenAI Assistants exist – the wheel has been invented. Custom orchestration code that does what a maintained framework does is maintenance debt without a corresponding benefit. Use a framework and save the custom code for the parts that are actually specific to your product.
Vendor-locked LLM endpoint baked into the integration. The model landscape moved significantly four times in 24 months. If swapping the underlying model requires code changes rather than a config change, you will pay a migration cost every time the landscape moves. This is the strongest structural argument for BYO LLM architectures even when you’re starting on a cloud model.
No streaming. A 15-second silent wait after a user submits a complex query reads as “broken” to most users, even if the final answer is excellent. SSE token streaming is straightforward to implement, and the UX difference is significant. Batch response is unacceptable in a production-facing agent in 2026.
Missing audit trail from day one. Insurance, banking, and healthcare all have regulatory obligations that require logged, replayable conversation records. GDPR’s right-of-access and right-to-erasure requirements apply to chat logs. The EU AI Act creates documentation requirements for high-risk AI systems. Building audit logging after the system is in production is significantly harder than building it into the architecture from the start.
Ethora AI Bots SDK: The 6 Primitives as a Plug-In Stack
No need to build everything yourself – only to configure the 6 primitives to your requirements. Ethora’s AI Bots SDK ships the full pipeline: LLM connection (any OpenAI-compatible endpoint, so cloud or self-hosted interchangeably), orchestration layer, conversation memory, RAG Crawler pointed at your documentation, tool-calling hooks for your backend APIs, and output guardrails. The BYO LLM architecture means the model endpoint is a config value – swap GPT-4o for Claude or Llama Guard 3 for a self-hosted Qwen deployment without changing the integration code.
The self-hosted option puts the full stack on your infrastructure. Cloud, on-prem, AWS Marketplace, private cloud – the deployment model doesn’t change the API surface. That’s the practical difference between “we support self-hosting” and “self-hosting is a config option.” No need to worry about meeting regulatory requirements – you control the data.
The MCP Server exposes Ethora’s tools and data to any MCP-compatible LLM client, which matters as the MCP ecosystem expands. The Chat SDK underneath handles the real-time transport layer, so the conversational AI agent sits on top of a production-grade messaging infrastructure rather than an HTTP polling loop. The AI content moderation hooks handle the guardrail layer for regulated output filtering.
If you’re interested in learning more about how Ethora can help you, contact us. We’ll gladly answer all of your questions.
More Articles
Chat SDK
Sep 11, 2026
Is Google Chat HIPAA Compliant? Here Is How
Is Google Chat HIPAA compliant? Only if you have a signed BAA with Google Workspace and configure it correctly. Consumer Google Chat is not.
Chat SDK
Sep 10, 2026
React Native Chat App: DMs, Typing Indicators, and Presence with Expo and TypeScript
Ship DM, typing indicators, presence, and leave-channel in a React Native chat app with Expo SDK 52, TypeScript, and a modern Chat SDK.
Try Out Ethora in Action
Experience Ethora's messaging with a dedicated demo from our CEO or start building your App right now!