The fastest way to give your customers an AI agent is to not build the agent at all: build it once on an agent platform, then put it in your product with an embed or call it from your code through an API. With LotsAgent you add your docs, skills and tools in the console, paste two lines into your app so your signed-in customers can chat with it as themselves, and use the chat API, background runs, schedules and MCP for everything that happens in code. Your team ships the customer experience; the agent, its knowledge and its safety checks are already there.
I'm Sivaguru, founder of LotsTech. I built LotsAgent, and the built-in agent in each of our other LotsTech apps runs on it through exactly these pieces. Here is how they fit together, with the real endpoints from our API docs and embed docs.
Two ways to put an agent in front of customers
There are two surfaces, and most products use both:
- The embed (sidebar). Your customers chat with the agent inside your app. It runs in its own secure frame, so your page can't read the chat. Signed-in customers chat as themselves, and the agent acts with their own rights.
- The API. Your server talks to the agent: send a message, stream the answer, start a long run and check on it later, create scheduled tasks, add knowledge.
Pick the embed when a person is in the loop. Pick the API when your code is.
The embed: an agent inside your product in two lines
On the agent's Deploy tab, open Sidebar, add your site addresses, and paste this into your pages:
<script src="https://embed.lotsagent.com/v1/a/AGENT_ID/widget.js" async></script> <lots-agent token-url="/lotsagent-token"></lots-agent>
The token-url is a small endpoint on your own server that signs a short token for whoever is signed in. It's about ten lines of code, and the embed docs have examples for Node, Python and PHP. The sidebar calls it when it starts and every few minutes, so customers never log in twice.
You don't have to use a floating button. Any element with data-lotsagent-open opens the agent, data-lotsagent-prompt types a question in for them, and you can open it from your own code:
<button type="button" data-lotsagent-open data-lotsagent-prompt="Show my last invoice" data-lotsagent-send> Last invoice </button>
window.LotsAgent?.open({ prompt: "How do I export my data?" });
It can also sit inline on a help page or fill the screen on a page of its own. If you'd rather not touch your app at all, give the agent its own web address instead: your-handle.lotsagent.com or your own domain, like help.yourcompany.com.
Acting as the customer, safely
This is the part that's hard to build yourself, and the part I'd check first on any platform.
When the agent connects to your app's MCP server under "Let it act in your app as the person", every call carries that customer's own access. Your app's own permission checks run. A viewer can only view; an admin can do admin work. Your app gets the person's access through token exchange with your own token endpoint, or through the LotsAgent person token, a short signed token your server checks against LotsAgent's public keys.
Then the approvals: anything that sends, deletes or moves money shows the customer a Confirm card that says what will happen, with names instead of IDs. Cancel, and nothing changes. Text inside an email, a web page or a document is read as data, never as an instruction.
The API: chat from your code
Make an API key in Settings, API Keys, give it Chat access, and ask your agent something:
curl -X POST https://lotsagent.com/api/v1/agents/YOUR_AGENT_HANDLE/chat \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"message": "What does the Pro plan include?"}'
The answer comes back with a session_id. Pass it on the next request to continue the same chat. Add "stream": true to get the answer as server-sent events while it's written.
The key acts as you, the owner, so keep it on your server and never in a page or an app people can download. And because nobody can press a Confirm card over the API, a tool that would ask for Confirm doesn't run there. That's deliberate: unattended code should never send, delete or spend on its own.
Background runs for longer work
For work that takes longer than a request should wait, start a run and check on it later. The run keeps going if your connection drops.
curl -X POST https://lotsagent.com/api/v1/agent-runs \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"agent_id": "AGENT_ID", "message": "Summarise the new support questions from this week", "source": "api"}'
You get a run_id at once. Poll GET /api/v1/agent-runs/{run_id} and read final_answer when the status is completed.
Tasks and schedules
A task is saved instructions the agent runs by hand, once at a set time, or on a schedule. Give your key Manage access to create them from code:
curl -X POST https://lotsagent.com/api/v1/agents/YOUR_AGENT_HANDLE/tasks \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "Morning summary", "instructions": "Summarise the new support questions from yesterday in five lines.", "schedule_type": "cron", "cron_expression": "0 9 * * 1-5", "timezone": "Europe/London"}'
POST /api/v1/tasks/{task}/execute runs one now, and every run shows in Activity with what it did and what it cost.
Knowledge from code
If your customers each have their own docs, or your docs live in several places, add them as knowledge through the API:
curl -X POST https://lotsagent.com/api/v1/agents/YOUR_AGENT_HANDLE/knowledge/websites \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://example.com/help", "mode": "pages_under", "schedule": "daily"}'
LotsAgent reads the pages, keeps them up to date on the schedule you pick, and answers link the page they came from. POST .../knowledge/websites/{site}/sync re-syncs one now.
MCP: your agent inside other AI apps
Turn on Allow MCP connections in the agent's Deploy tab (it's off by default), then add this address to Claude, ChatGPT or Cursor:
https://lotsagent.com/api/v1/agents/YOUR_AGENT_HANDLE/mcp
The client signs in by itself, or you can send an API key. And if you want to manage LotsAgent itself from an AI app (create agents, change instructions, add knowledge, put a sidebar live), add https://api.lotsagent.com/mcp. Read, change, publish and delete are separate switches. Developers can call the same actions over REST at https://api.lotsagent.com/api/v1/lotsagent with a workspace API key; every action is listed at api.lotsagent.com/docs.
For the bigger picture on MCP, see MCP server for AI agents.
What you'd build yourself without a platform
It's worth being honest about what the platform is saving you. If you started from a model API, you'd build:
- Knowledge: a crawler, re-sync, retrieval, and answers that link the right page.
- Chat UI: a widget for your app, mobile layout, streaming, sign-in hand-off.
- Identity: acting as each customer with their own permissions.
- Approvals: a confirm step for sends, deletes and payments, and refusing them when nobody is there.
- Limits: per-person message limits, per-agent spend caps, a stop switch.
- Visibility: a log of every action call and what each run cost.
None of that is impossible. It's just months of work that isn't your product. I compare the two routes in more detail in AI agent framework vs platform.
Limits worth knowing before you build
From the docs, so you can plan:
- A chat request without streaming waits up to 110 seconds; streamed answers run up to 150 seconds. Longer work belongs in a background run.
- File attachments can't be sent over the API.
- Errors use standard HTTP codes: 401 for a bad key, 402 when the account has no credits left, 429 when you send too fast, 503 when the agent couldn't answer right now.
- On the sidebar, each person gets 50 messages a day and each agent can spend up to $20 a day by default. You can change both.
What it costs
Plans are priced by number of agents, not by your customers: Starter $19 a month for 1 agent, Pro $75 for 5, Business $200 for 20 with white-label, so no "Built with LotsAgent" link in the chat. Yearly gives 2 months free. Every plan includes monthly credits, usage beyond them is what the AI costs plus 20%, and there are no seat fees, no charge per answer and no limit on end users. See pricing.
Related reading: No-Code AI Agent Builder: What You Can Automate Without Another Fragile Zap.
FAQ
What is an AI agent API? It's an API that lets your code talk to a ready agent: send it a message, stream its answer, start a longer run, schedule tasks and add knowledge, without you building the agent loop, retrieval and safety checks yourself.
Can my customers chat with the agent as themselves? Yes. Your server signs a short token for the signed-in person, and the sidebar passes it to LotsAgent. When the agent acts in your app, it uses that person's own access, so your app's permission checks run.
Can the API send emails or delete data without a person? No. Over the API, scheduled runs and MCP nobody can press Confirm, so tools that need a Confirm don't run there. Reads still work.
Does my agent work in Claude or ChatGPT? Yes. Turn on Allow MCP connections on the agent's Deploy tab and add its MCP address to Claude, ChatGPT or Cursor.
Can I white-label the agent for my customers? Yes, on the Business plan. The trial, Starter and Pro show a small "Built with LotsAgent" link in the chat; Business shows no LotsAgent mark.
Start building
The quickest way to see if it fits your product is to wire up one agent. Start your 14-day trial on lotsagent.com, no card needed, then follow the API docs.
Updated 26 November 2026.
