Agent Builder
AI that works by your own processes, systems and rules
Every department can have AI agents that fit its own work, query company data directly and carry out tasks. Developers don’t have to start from zero, and answer quality is checked with test sets before launch.
- Agentic architecturePlans its own retrieval steps and tool calls
- Multiple models and fallbacksSwitch models without rebuilding the knowledge base
- Platform-level protectionPII masking and content blocking run outside the model
- Evaluate, then launchTest sets score answer quality automatically
Why build agents with MaiAgent
Ready-made agents in Agent Marketplace work as soon as you turn them on. For processes unique to your company, Agent Builder connects your own data and systems so you can build agents of your own.
Common approach
With MaiAgent Agent Builder
Agent Builder core capabilities
Agentic RAG that searches like an analyst
The agent first breaks down the task and plans its retrieval steps. Then it pulls data from knowledge bases, databases and external systems, and searches again on its own if the data is not enough.
- Hybrid vector and keyword search, then reranking
- Uses conversation memory to follow context across follow-up questions
- Checks whether the data is complete, and runs another search if not
- Combines answers across knowledge bases, databases and external systems
- Every answer cites its sources, so you can trace the original text
How to choose between the two RAG modes, and what Agentic RAG adds. See the full overview below ↓
Three tool types to connect existing systems
The agent picks a tool for each task to look up data and take action, such as checking an order, calculating a quote or creating a page in a collaboration tool.
- API tools call existing REST APIs by configuration
- Function tools handle business logic in Python
- MCP connectors authorize third-party services with OAuth 2.0
Text2SQL to query databases in plain language
The agent writes and runs queries based on the table schema, so business users don’t need to write SQL. Uploaded Excel and CSV files can be queried too.
- Plans multi-step queries across several tables
- Every query is checked with a syntax tree before it runs
- Only reads are allowed. Insert, update and delete are always rejected
Hooks enforce rules outside the model
Rules sit on both the incoming and outgoing side of each message. They mask personal data, block violations and rewrite replies. The platform runs the rules, so the model cannot skip them.
- Checks user messages, retrieved content and tool results
- Pick a template, fill in the settings and apply it to an agent
- Every run is logged and can be exported
Evaluate before launch
Run automated tests on an agent with a test set, and an evaluator model scores each question. After changing instructions or models, rerun the same test set to compare versions.
- Single-turn Q&A is checked against expected answers. In multi-turn chats, the evaluator model plays the user
- Measures faithfulness, answer relevance, context recall and hallucination
- Shows the estimated cost before you start
Agentic RAG, retrieval that works like a research assistant
MaiAgent offers two RAG modes, so you can pick one for each question. Agentic RAG is built on the same precise single-pass retrieval. The agent plans the steps, queries databases, calls tools and checks the results to handle more complex tasks.
“Compare last quarter’s sales with a year ago”
Retrieval technology shared by both modes
- Hybrid search + reranking
- Chunking by content type
- Answers with sources
- Text and image retrieval
Build once
deploy to every channel
Connect the same agent to your own systems through the API, or publish it to websites and messaging apps. You maintain one set of knowledge and settings.
Call agents through the API from your existing systems and workflows.
- REST API
- WebSocket
- SSE streaming
Embed a chat window on your website or internal systems.
- Chat Widget
- JavaScript SDK
Notify your systems when an agent replies or an event happens.
- Event notifications
- Callbacks
Serve staff and customers in the messaging apps they already use.
- LINE
- Teams
Embed agent capabilities in your own product.
- In-product embedding
Choose a deployment that meets your data sovereignty needs.
- SaaS
- Cloud
- On-premises
- Hybrid cloud
MaiAgent Build core features
Connect ERP, CRM and databases to look up data and carry out tasks
Learn moreCompany documents as the source for Agent answers
Learn moreBuild enterprise AI agents that carry out tasks
Learn moreOne endpoint for many model providers
Learn moreRole levels, per-entry audit logs and usage management
Learn moreFAQ
How is Agent Builder different from Agent Marketplace?
Agent Marketplace has ready-made official agents. Staff use them as soon as they are turned on. Their instructions, tools and models are maintained by MaiAgent and cannot be changed. Agent Builder is for processes unique to your company. You set the role, knowledge scope, connected systems, model and protection rules yourself. Agents you build can also be added to Agent Marketplace for staff to use.
Does building an agent require development work?
Mostly it is configuration. Instructions, knowledge bases, tools and models are all set in the Build Center. For custom logic, use Python function tools, or integrate with existing systems through APIs and webhooks.
Can we change models? Do we have to rebuild the knowledge base?
Yes, you can change models, and no rebuild is needed. Set a primary model and fallbacks. The knowledge base keeps working when you switch, and you can compare answer quality with the same test set afterwards.
Can Text2SQL change data in our database?
No. Every generated query is checked with a syntax tree first. Only reads are allowed. Insert, update, delete and schema changes are always rejected.
Where can we use the agents we build?
Connect them to your own systems through the API, embed a website chat window, or connect LINE, WhatsApp, Messenger, Teams, Telegram, Instagram and email.
How do we know an agent answers correctly?
Build a test set and run automated tests. An evaluator model scores each question on faithfulness, answer relevance, hallucination and other metrics. After you change settings, rerun the same test set.
Can we deploy it in our own data center?
Yes. It can be deployed as SaaS, in the cloud, on premises or in a hybrid cloud. Agent Builder works in every deployment type.