Use a framework when the agent itself is your product and you have engineers to run it. Use a platform when the agent is a feature of your product or your business and you want it in front of people this month. A framework gives you the code for the agent's loop; a platform gives you a working agent plus everything around it: your knowledge, your tools, sign-in, approvals, logs, spending limits and the places people actually use it.
I'm Sivaguru, founder of LotsTech. I built LotsAgent, which is a platform, so take my side of this with that in mind. But I also run the built-in agent in all of our other apps, so I've had to answer this question for real more than once. Here's how I think about it, layer by layer, without the marketing.
The short answer in one table
| You are... | Pick | Why |
|---|---|---|
| Building an agent product where the agent loop is your edge | Framework | You need full control of state, control flow and hosting |
| A platform team with time to run infrastructure | Framework (or both) | You can own every layer and keep owning it |
| A founder adding an assistant or in-app agent to your product | Platform | The layers around the loop are not what makes you different |
| An AI consultant or agency building agents for clients | Platform | You need one setup per client, hand-over and predictable billing |
| Still proving the use case | Platform first | Ship, learn what the job needs, then decide what to own |
The rest of this post explains where that table comes from.
What frameworks give you in 2026
Frameworks have grown up. Some claims you'll read in older posts said frameworks stop at "prompt plus tool calls." That's no longer true. Here's what the main ones say about themselves on their own pages, checked 26 November 2026:
- LangGraph calls itself "a low-level orchestration framework and runtime for long-running, stateful agents," and lists durable execution, streaming, human-in-the-loop and persistence as its focus (LangGraph overview).
- CrewAI documents agents, crews and flows, plus memory, checkpointing and MCP integration (CrewAI docs).
- OpenAI Agents SDK documents handoffs between agents, human-in-the-loop, sessions, guardrails, tracing and MCP (OpenAI Agents SDK).
- Claude Agent SDK documents sessions, handling approvals, MCP tools, subagents, permissions, hooks and a guide to hosting it yourself (Agent SDK overview).
So a good framework now gives you real runtime pieces: state that survives a crash, pauses for a human, tool calling, multi-agent handoffs, tracing. If your hard problem is "how should this agent think and move through a complicated graph of steps," a framework is the right tool and there's no shame in that.
What a framework does not give you is a product your users can open. That's the part people underestimate.
What you still build around a framework
When I list what actually stood between "the agent works in a notebook" and "customers use it every day," it's almost never the loop. It's these six layers.
1. Knowledge: what the agent knows about your business
The agent has to answer from your docs, not from what the model guesses. That means importing your help center or website, keeping it fresh when pages change, accepting files (PDFs, Markdown, CSV), linking the source page in each answer, and saying "I don't know" when the docs don't cover something. Then you want to see what people asked that the docs couldn't answer, so you can write the missing page.
None of that is hard alone. Together it's a small product: a crawler, a sync schedule, chunking, retrieval, citations, and a report of gaps.
2. Tools: how the agent acts
Frameworks let you define tools. You still connect them. Each app means sign-in (OAuth) and token refresh, rate limits, error handling, and keeping up when its API changes. Your own API needs a safe way in: which operations the agent may call, a key stored encrypted, timeouts and size caps so one slow endpoint doesn't hang a conversation.
MCP (the Model Context Protocol) helps a lot here: it's a standard way for an agent to reach a tool server, so you write fewer one-off integrations (modelcontextprotocol.io). It doesn't remove the work of deciding who is allowed to do what with those tools. I wrote more about that in MCP servers for AI agents.
3. Identity: who the agent is acting for
This is the layer most framework demos skip. If the agent works inside your app, it has to act as the person who is signed in, with exactly that person's rights. A viewer asking it to delete a project should get "you can't do that," the same answer your app gives them. That means your server vouches for the person, the agent carries that identity into every tool call, and your app's own permission checks stay in charge. One shared service account with admin rights is how agents end up doing things nobody was allowed to do.
4. Control: what waits for a human
Some actions are fine to run straight away: reading, searching, drafting. Anything that sends, deletes or moves money should wait for the person to look and confirm, showing names, not internal IDs. Text inside emails, web pages and documents must be treated as data, never as instructions, or the first clever email will steer your agent. And you need a kill switch that stops the agent at once.
Frameworks give you the primitive ("pause here for input"). You still design the policy, build the confirmation screen and decide what happens when nobody is there to confirm, like a scheduled run at 3 a.m. More on this in AI agent security, identity and audit trails.
5. Where people use it
A loop in a server process isn't something a customer can click. You need at least one of:
- a chat panel inside your product, isolated so your page can't read the conversation,
- its own web address (help.yourcompany.com style) with sign-in,
- an API and schedules so it runs inside your workflows without a chat window.
Each surface brings its own work: theming, anonymous versus signed-in visitors, message limits for the public, streaming, continuing a conversation in a new tab.
6. Operations: running it every day
Hosting, logs of every action call, a record of runs and what each cost, daily spending caps per agent, message limits per person, how long chats are kept and who may read them, team roles, and (if you're an agency) one workspace per client that you can hand over. This is the layer that wakes you up at night, and the one nobody demos.
Why agents fail in production (and why it's rarely the model)
The old "reliable AI stack" post on this blog made one point I still agree with: agents fail differently from normal software. A crashed service is loud. An agent that misread a number, used stale context or skipped a tool call because a token expired is quiet. The job log says "completed." The answer looks plausible. Someone acts on it.
So the practices that matter look like this:
- Log every action call, not just "run started" and "run finished." When something goes wrong you want the exact tool, time and outcome.
- Check outputs, not just uptime. Read a sample of real conversations and runs every week, especially early. Uptime monitoring won't catch a wrong answer.
- Make failures explicit. A tool error should become something the agent can say ("I couldn't update the CRM") rather than something it papers over.
- Never repeat a send blindly. If a run fails halfway, retrying from the top can email the same customer twice. Steps that send things need to wait for a person or be safe to repeat.
- Start narrow. One job, the minimum tools, a clear review boundary, then widen.
Build AI agents that don't break: 8 production failure modes goes deeper on each of these, and the 30-minute audit before you let an agent run unattended turns them into a checklist.
How to tell a real platform from marketing
Every vendor now says "agentic AI platform." In my experience they fall into four buckets:
- A chat assistant with a tool icon. One conversation at a time, little or no action in your systems.
- A workflow tool with a model in one step. Still "if this, then that"; the model fills in a field. Great for fixed paths, not for judgment. (I compare these properly in Agentic workflows explained.)
- A framework with a landing page. Powerful, but you're buying a kit. Everything in the six layers above is still yours.
- A platform. Knowledge, tools, identity, approvals, surfaces and operations are there when you arrive.
Demos won't tell you which bucket you're looking at. Four tests in a trial will:
- The identity test. Sign in as a low-rights user and ask the agent to do something only an admin may do. It should refuse, the way your app would.
- The approval test. Ask it to send an email or delete a record. It should stop and show you exactly what it's about to do, with a way to cancel. Try it twice. If either run goes through without your click, the approval is decoration.
- The failure test. Break a tool on purpose (revoke a connection, point an action at a slow endpoint). The agent should tell you it couldn't do the step. It should not claim success, and it should not repeat something it already sent.
- The log test. Open the activity log afterwards. You should be able to answer "what did the agent do, with which tool, and when" without asking the vendor.
Red flags: approvals that are off by default for sends and deletes, one shared admin account for every user, a log that only says "task completed," and no way to cap what the agent can spend in a day.
When a framework is the right call
- The agent loop is your product. You're selling the reasoning, the orchestration or a novel agent architecture.
- Your architecture is truly unusual. Custom memory stores, your own runtime, tools no platform can reach.
- You have a platform team. People whose job is to own hosting, security, logs and upgrades for years, not weeks.
- You need control at every layer for a reason a platform's settings can't satisfy.
If that's you, pick a framework from the list above, read its persistence and human-in-the-loop docs first, and budget real time for layers 1 to 6. If you're torn between Anthropic's SDK and a hosted agent specifically, I wrote a fair comparison: Claude Agent SDK vs LotsAgent.
When a platform wins
- The agent is part of your product, not the product itself. Your edge is the job it does, the docs it knows and the way it fits your app.
- You want it live this month. You'd rather spend engineering time on the workflow than on retries, crawlers and confirmation screens.
- You build for clients. You need a separate setup per client, roles for your team, and a clean hand-over when the client takes it.
- You're still proving the use case. Ship it, watch real conversations, and learn what the job actually needs. If you outgrow the platform later, you'll build on a framework with real requirements instead of guesses.
The hybrid: rent the plumbing, own the parts that matter
For most technical teams the sensible path is both. Let a platform run the commodity layers and keep the parts that make your agent yours:
- Your knowledge: the docs, policies and examples it answers from.
- Your skills: written instructions for how to do a job your way, like how to handle a refund request or write the weekly report. (See AI agent tools vs skills.)
- Your API: the actions only your product can perform, exposed to the agent on your terms.
- Your surfaces: where it shows up and who it acts for.
If you want to offer agents to your own customers through an API, AI agent API: give customers agents without building agent infrastructure walks through that version of the decision.
Where LotsAgent fits
LotsAgent is the platform side of this table. You add your docs, your skills and the apps it should use, and it turns them into an agent that answers, takes action and checks with you before anything important. Mapped to the six layers:
- Knowledge: import a website or docs by address (one page or a whole sitemap), re-sync daily, weekly or by hand, upload text, Markdown, CSV or PDF files, or paste text. Answers come from your knowledge first and link the page. Knowledge gaps lists the topics people asked about that your docs didn't cover, most asked first.
- Tools: connect apps like Notion, Slack or Google Drive, connect your own app through MCP, or add your own API as actions by importing an OpenAPI 3 document or adding one HTTP request. Each action says whether it reads, changes, sends or deletes.
- Identity: inside your product it acts as the signed-in person with their own rights. Your server signs a short token (about ten lines of code), and your app's permission checks still decide.
- Control: anything that sends, deletes or moves money shows a Confirm card with names, not IDs. Text in emails, pages and documents is read as data, never as instructions. Every action call is listed in Activity, and Stop now turns the agent's sidebar off at once. Scheduled, API and MCP runs have nobody to press Confirm, so those actions don't run there.
- Where people use it: a sidebar in your product (a two-line snippet), its own web address (your-handle.lotsagent.com or your own domain), and your workflows through tasks and schedules, the chat API and the agent's own MCP address. One agent can do all three.
- Operations: a daily spend cap per agent, a daily message limit per person, a monthly account limit, team roles (owner, admin, member, viewer), a workspace per client and hand-over to the client.
We run on it ourselves: the built-in agent in each of our other apps, like the LotsCRM Agent at agent.lotscrm.com, is an ordinary LotsAgent agent.
Pricing is per agent, with no seat fees and no charge per answer: Starter is $19 a month for 1 agent, Pro $75 for 5 agents, Business $200 for 20 agents, and yearly billing gives you 2 months free. Usage beyond what your plan includes costs what the AI costs plus 20%. Details are on the pricing page, and if you're estimating total cost, what an AI agent actually costs to run has the breakdown.
If the platform column describes you, start the 14-day trial on lotsagent.com. No card needed, and you can put one agent in front of real people before it ends.
Related reading: AI Agent Builder: What Build Actually Means in 2026 (Agent Builder, SDKs, IDEs, Frameworks) and AI Agent Platform for Business: What to Look For.
FAQ
What's the difference between an AI agent framework and a platform? A framework is code you use to build an agent's loop: state, steps, tool calls, pauses for a human. A platform gives you a working agent plus the layers around it: knowledge from your docs, connected tools, acting as the signed-in person, approvals, places people use it, logs and spending limits.
Do frameworks support durable execution and human-in-the-loop now? Several do. LangGraph lists durable execution, persistence and human-in-the-loop as core features, and the OpenAI Agents SDK and Claude Agent SDK document human-in-the-loop and approvals (checked 26 November 2026). What they leave to you is hosting, sign-in, the user-facing surfaces and the day-to-day operations.
When should I use a framework instead of a platform? When the agent loop itself is your product, when your architecture is unusual enough that no platform fits, or when you have a team whose job is to run agent infrastructure for the long term.
Can I use a framework and a platform together? Yes. A common split is to let a platform run knowledge, tools, approvals and deployment while you own your docs, your skills and your API. The agent calls your API as actions, so the parts that make it yours stay yours.
Does MCP make the framework vs platform choice irrelevant? No. MCP standardizes how an agent reaches a tool, which cuts integration work either way. It doesn't decide who the agent acts for, what waits for approval, where people use the agent or how much it may spend.
Updated 26 November 2026.
