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.

Use your own company data and systemsNo building from scratchCheck quality before launchRules that are always enforced

Common approach

Use your own company data and systemsGeneral AI assistants can’t read internal data or query your systems.
No building from scratchEvery agent needs its own retrieval, tool calling and conversation memory code.
Check quality before launchSomeone tries a few questions by hand, then it goes live.
Rules that are always enforcedPII rules and banned topics live in the prompt, and the model may not follow them.

With MaiAgent Agent Builder

Use your own company data and systemsConnect your company data and systems. The company sets the instructions, tools and rules.
No building from scratchThe platform provides all of this. You build agents by configuration.
Check quality before launchTest sets score answers automatically. Rerun and compare after every change.
Rules that are always enforcedHooks mask personal data and block violations outside the model. The model cannot skip them.

Agent Builder core capabilities

01

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 ↓

02

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
03

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
04

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
05

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.

User question

“Compare last quarter’s sales with a year ago”

UnderstandMulti-step reasoning
Plan stepsSelf-planned
Search KB
Text2SQL query
Call API / MCP
Many tools
Self-checkRe-search if needed
Verified · Combined report
Q3 sales report.pdfsales table

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.

API

Call agents through the API from your existing systems and workflows.

  • REST API
  • WebSocket
  • SSE streaming
Website chat window

Embed a chat window on your website or internal systems.

  • Chat Widget
  • JavaScript SDK
Webhook

Notify your systems when an agent replies or an event happens.

  • Event notifications
  • Callbacks
Messaging apps

Serve staff and customers in the messaging apps they already use.

  • LINE
  • Teams
  • WhatsApp
  • Email
AgentKit

Embed agent capabilities in your own product.

  • In-product embedding
Deployment

Choose a deployment that meets your data sovereignty needs.

  • SaaS
  • Cloud
  • On-premises
  • Hybrid cloud

FAQ

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.

Start with one agent
connect company systems and get tasks done

Contact us
LINE