By Sagar Shankaran, Founder of CallSphere
How chatbot architectures evolved from intent-classifier-plus-rules to fully agentic LLM pipelines, with 2026 production patterns.
Key takeaways
Chatbots in 2018 were intent classifiers with hand-coded responses. By 2022 they were retrieval-augmented LLMs. In 2026 they are agentic pipelines: an LLM orchestrator with tools, memory, and a reflective loop. The architecture is unrecognizable from the early days; the user-facing concept ("type a message, get a useful reply") is unchanged.
This piece walks through the modern chatbot architecture and the patterns that make it work.
flowchart LR
User[User msg] --> Pre[Preprocessor:<br/>PII redact, language detect]
Pre --> Mem[Load memory:<br/>history + long-term]
Mem --> Ag[Agent loop]
Ag --> Tool[Tool calls]
Tool --> Ag
Ag --> Post[Postprocessor:<br/>safety, formatting]
Post --> Reply[Reply]
Ag --> MemW[Update memory]
Five primary components: preprocessor, memory loader, agent loop, tool layer, postprocessor. Each one is independently testable and replaceable.
The preprocessor handles boundaries:
It is a thin layer but matters for compliance and cost. Skip preprocessing and you ship PII to providers or process abusive content unnecessarily.
Hear it before you finish reading
Talk to a live CallSphere AI voice agent in your browser — 60 seconds, no signup.
The agent loads memory from two sources:
Both are bounded; both are filtered. Loading "all history" is rarely the right move. The 2026 patterns:
The agentic core. Plan-execute-reflect, with tools available. The orchestrator decides:
This is where most of the LLM cost lives.
Tools are the bot's hands. In 2026 chatbot stacks:
Tool surfaces are negotiated; tools have schemas; tool calls are logged.
Still reading? Stop comparing — try CallSphere live.
CallSphere ships complete AI voice agents per industry — 14 tools for healthcare, 10 agents for real estate, 4 specialists for salons. See how it actually handles a call before you book a demo.
The postprocessor handles:
Some postprocessing is inline; some is async (logging, analytics).
After each turn, memory is updated:
The update is often async to keep the user-facing turn fast.
flowchart TB
Edge[Edge / load balancer] --> WS[WebSocket / SSE handler]
WS --> Orch[Orchestrator: LangGraph / OpenAI Agents SDK]
Orch --> LLM[LLM provider via gateway]
Orch --> RAG[RAG: pgvector + reranker]
Orch --> Tools[Tool servers via MCP]
Orch --> MemDB[Memory: Postgres + vector]
Orch --> Trace[OTel tracing]
Components are pluggable. Switching from Claude to GPT-5 is a config change. Adding a new tool is one MCP server. Adding RAG sources is one indexer.
For a new chatbot in 2026:
Most teams over-architect early. The minimal viable chatbot architecture is much simpler than what teams reach for first.

Written by
Sagar Shankaran· Founder, CallSphere
LinkedInSagar Shankaran is the founder of CallSphere, where he builds production AI voice and chat agents deployed across healthcare, hospitality, real estate, and home services. He writes about agentic AI, LLM engineering, and shipping voice agents that handle real calls in production.
See how AI voice agents work for your industry. Live demo available -- no signup required.
A founder's guide to page chat: web page chat box options, best live chat for small business, and how CallSphere ships an embed in 5 minutes.
A founder's guide to building a chatbot for answering questions on your website: RAG, voice, and how CallSphere ships one in 3-5 days.
Good messaging apps in 2026 ranked by a founder running 6 AI voice agents. Signal, iMessage, WhatsApp, Telegram, and where AI fits.
Group chat apps in 2026 ranked by a founder running a 14-tool AI platform. Slack, Discord, Teams, Telegram, and where AI voice chat fits.
Create a chat bot in 2026 means LLM-backed agents, not decision trees. Here is the working guide: platforms, build steps, and what actually matters.
Best chat software in 2026: a founder running 6 AI agents ranks website chat tools, live chat, and AI chat platforms. Real prices, real picks.
© 2026 CallSphere Inc. All rights reserved.
Made within San Francisco
Watch how CallSphere handles real customer calls, schedules appointments, and processes payments — live.