Create AI Assistant
1. Create an AI Assistant
Navigate to the "AI Features" section in the left sidebar, then select "AI Assistants". Click the "+ Create AI Assistant" button in the upper right corner.

2. Name Your AI Assistant
Select the "Basic Settings" tab and fill in the "AI Assistant Name" field with the name of your AI assistant. You can name it based on the assistant's primary task, such as "XX AI Customer Service," "XX Regulation Query Assistant," or "XX Project Smart Assistant."
One account can create multiple AI assistants (subject to quantity limits based on your purchased plan).

3. Select RAG to Make Your AI Assistant Smarter and More Accurate
What is RAG
You can think of RAG as a combination of "a conversational assistant + a skilled librarian who excels at finding information."
A typical AI assistant is like someone with excellent memory who's good at storytelling, but they can only share knowledge they've learned before. However, when an AI assistant is equipped with RAG technology, it's as if this assistant first goes to the library to find the latest information before answering questions, then organizes the findings into their own words and provides you with a clear response.
In the MaiAgent platform, this "library" is our knowledge base. The AI assistant will use RAG technology to retrieve relevant information from the knowledge base, making responses more accurate, timely, and aligned with needs.
The knowledge base configuration method will be explained in detail in the next section.
MaiAgent RAG includes not only the RAG technology mentioned at OpenAI's developer conference but also combines various classic NLP algorithms with proprietary retrieval techniques. Compared with OpenAI RAG using internal datasets, both can achieve 95% response accuracy.
RAG Configuration Method
Select the "RAG Settings" tab and choose a different RAG (Retrieval-Augmented Generation) from the "RAG" dropdown menu. If there are no special requirements, MaiAgent RAG is set as the default.

Compared to OpenAI RAG, MaiAgent RAG provides more additional features, can flexibly apply to different deployment needs, handles more diverse data processing formats, and provides a more powerful retrieval and generation experience.
For a detailed comparison, please see What is RAG? Comparison Table of MaiAgent RAG and OpenAI RAG
4. Select a Model to Choose a Smart Brain for Your AI Assistant!
Purpose of Language Model Selection
Much of each AI assistant's performance depends on its brain—that is, the language model (LLM) it uses. In this step, you can select different types of models based on your needs, which will affect response speed, comprehension ability, and the depth and naturalness of answers.
Choosing the right model is like enabling high-efficiency mode for your AI assistant, creating the best experience tailored to your application scenario!
Language Model Configuration Method
Select the "RAG Settings" tab. In the "LLM Model" dropdown menu, you can choose different large language models. If there are no special requirements, Claude 4.5 Sonnet is set as the default.

5. Create Role Instructions Based on Application Scenarios
To make your AI assistant more aligned with different application needs, you can set "role instructions" to make the AI's response style and content more contextually appropriate.
Hallucination-Free Generative AI Response Mechanism
MaiAgent's "hallucination-free generative AI response mechanism" ensures that AI maintains high accuracy when answering questions. When facing uncertain questions or topics beyond its knowledge scope, it will honestly express its limitations rather than generate fabricated answers, providing users with a more reliable and trustworthy AI interaction experience. The importance of this for various industries and public sector applications is explained below:
Financial Industry Applications:
When handling investment advice and risk assessment, AI must provide analysis based on solid data, avoiding false information that could lead to incorrect investment decisions. When information is insufficient or uncertain, the system will clearly indicate this to ensure the reliability of investment decisions.
Medical Industry:
When assisting with medical diagnosis and medication consultation, AI systems must strictly adhere to established medical knowledge and cannot generate advice that might mislead patients. For novel or unverified medical information, the system will clearly state that further professional consultation is needed.
Manufacturing Industry:
In applications such as production process optimization and quality control, AI must provide recommendations based on actual production data and validated methods, avoiding production losses due to inaccurate predictions.
Education Industry:
When assisting with teaching and answering student questions, AI needs to provide accurate knowledge rather than incorrect information that could mislead learning. For complex or ambiguous concepts, the system will acknowledge its understanding limitations.
Legal Industry:
When providing legal information and advice, AI must base responses on existing laws and precedents rather than providing speculative advice that could carry legal risks. The system will clearly indicate matters that require further confirmation by professional lawyers.
Customer Service Consultation:
When handling customer inquiries, AI must provide accurate product information and service descriptions. For questions that cannot be determined, it will immediately refer to relevant professionals to avoid misleading customers.
Government Policy Consultation:
When providing citizens with policy information and service guidance, AI must respond based on the latest and correct regulations and administrative procedures, avoiding outdated or incorrect information. When encountering complex issues requiring professional judgment, the system will clearly suggest that citizens seek assistance from relevant departments.
Public Service Decision-Making:
When assisting the government in evaluating public construction, social welfare, and other decisions, AI must analyze based on real data and research, clearly explaining uncertain predictions to ensure policy-making reliability.
Emergency Response Management:
When handling natural disasters, public health, and other emergencies, AI systems must provide accurate information and guidance, and cannot generate false information that might mislead the public, affecting disaster prevention and response effectiveness.
Select Appropriate Response Mode to Create Instructions
Select the "Response Mode" tab. From free conversation to highly structured responses, it meets various business needs. Each mode has its own characteristics and applicable scope, allowing you to flexibly choose based on actual usage scenarios.

Applicable Scenarios
Freely answers based on questions. AI will generate the most appropriate response based on context and knowledge base content. Suitable for most Q&A scenarios.
Operation Process
Select the "Response Mode Settings" tab, choose "General (Default)" as the response mode, and fill in the role instructions you've defined for the AI assistant in the "Role Instructions" field. For output format, you can choose to output plain text or JSON format.

Application Scenario: Website Customer Service Assistant
If you want to create a website customer service assistant for "MaiAgent - AI Assistant Development Platform," you can enter the AI's response settings in the "Role Instructions" field, clearly defining its response style and scope of responsibilities.

When you select "Response Mode: Template," the probability of hallucinated responses from your AI assistant will be reduced to zero, because the AI assistant will strictly respond to questions based on the knowledge base and FAQ content you've created, responding based on classification principles rather than having the LLM generate content. Using a template system to generate answers guarantees 100% hallucination-free responses.
Applicable Scenarios
Situations requiring unified answer formats, such as standard consultation processes, reports, etc.
Case Operation
Suppose you want to create a "Tainan City Government 1999" customer service AI assistant to respond to citizens' municipal questions in real-time.
1. Select the "Response Mode Settings" tab and choose "Template" as the response mode

2. Fill in the Response Template (use template system to generate answers)
If you haven't created a knowledge base and FAQ yet, the default instruction content for the response template is as follows.
It is recommended that you first add a knowledge base or FAQ to use the response template, and the format must be tabular files such as Excel, CSV, JSON, JSONL, etc.

In this scenario, I have an AI assistant "Tainan City Government 1999" and added "Tainan 1999 FAQ" to the knowledge base.
The fields in the FAQ include questions, answers, department, category, and publication time.
It is recommended that you upload Excel, CSV, JSON, JSONL and other tabular format files. The fields must have titles and corresponding content.

Now we return to editing the response template and click "Initialize Response Template" in the upper right corner. You will see the system generate a response example based on the document you just uploaded to the knowledge base.

Now you can edit and format the response text portion.
The parts with [] {} are system instructions, so you only need to handle the text portions.
📍 Loop: Fill in the corresponding document filename (specify which document to use for response generation)
I modified the following parts:

When we return to the AI assistant Q&A interface and ask related questions, the AI assistant's response will completely follow the template format and FAQ document content we just edited.

3. Fill in the Unable to Respond Template
If the AI assistant determines there is no relevant information, it will respond according to the "Unable to Respond Template."
Finally, click the "Save" button.

Applicable Scenarios
Combines general answers with templates, using template format for some content and free answers for the rest. Suitable for situations requiring partially structured answers.
Operation Suggestions
At this point, the role instruction content may conflict with "Response Mode: Template," so when selecting "Response Mode: Hybrid," it is recommended to revise the role instruction content to focus on general directional principles.
For example, the role instruction's tasks, interaction principles, communication attitude, etc.

Applicable Scenarios
Suitable for specific work task scenarios, such as knowledge management, data summarization, project planning
Operation Process
Please go to the "Response Mode Settings" tab and select "Workflow" as the response mode. This mode is suitable for task-oriented application scenarios such as:
Knowledge Management: Assist in compiling, retrieving, or maintaining internal knowledge data
Information Summarization: Quickly organize document highlights or meeting minutes
Project Writing: Assist in brainstorming, drafting proposals, etc.
Based on actual business needs, select the corresponding workflow module to maximize the effectiveness of the AI assistant in specific tasks.

Application Scenario: Copywriting Assistant
Suppose you are a marketing staff member at a food company and are writing promotional copy for a newly launched healthy snack.
First, you can select "Writing Assistant" in "Workflow"

Then, you can go to the AI assistant Q&A interface and submit your writing needs. The AI assistant will guide you step by step to fill in key information needed for writing copy, such as:
Copy theme
Writing style
Target audience
Word count
AI will generate copy options that fit the context and communication needs based on your settings, helping you brainstorm quickly and improve writing efficiency.


Applicable Scenarios
In daily enterprise operations, employees often need to organize data, conduct data analysis, and create reports and analytical reports based on routine business needs or tasks assigned by supervisors. Common query questions include:
"Which product had the highest sales last month?"
"Please list all customers with sales exceeding 100,000"
"What is the revenue trend over the past three months?"
If these types of questions are handled by non-technical personnel, they often need to rely on data teams to help write SQL query statements, which is time-consuming and has limited efficiency.
Now, through MaiAgent's Agent mode, the system can use the Text to SQL tool to automatically convert natural language questions into corresponding SQL syntax and query the database in real-time, quickly providing analysis results.
For an introduction to the Text to SQL function, please refer to: Text to SQL Function
This function is particularly suitable for scenarios requiring real-time queries and data insights, such as report analysis, operational metric tracking, and data queries. It allows non-technical users to easily access data, achieving a more intuitive and efficient data-driven decision-making process.
Text to SQL Operation Process
Go to the "Response Mode Settings" tab and select "Agent" as the response mode

Upload database content or select database URL
MaiAgent supports:
MySQL
PostgreSQL
Oracle DB
Microsoft SQL Server (MSSQL)
The maiagent option applies Excel files you have uploaded in the MaiAgent knowledge base
Application Scenario: E-commerce Product Sales Data Query
Suppose you are a marketing staff member at an e-commerce platform and want to quickly query data such as product sales
First, in the "Response Mode Settings" tab, select "Agent" as the response mode

Next, you can choose to upload an Excel file to the knowledge base, and the system will automatically convert it to a queryable database format
For a detailed introduction to using MaiAgent knowledge base for Text to SQL, please refer to: Using MaiAgent Knowledge Base for Text to SQL

You can also directly ask the company's technical staff to provide a MySQL or PostgreSQL connection string.
Here, assuming a PostgreSQL connection string has been obtained, please select PostgreSQL from the database URL dropdown menu, paste the connection string, and click Save.

After setup is complete, you can go to the AI assistant Q&A interface and enter a question, such as
"What are the top three items with the highest sales on the official website, excluding shipping fees?"

6. Pre-assign Assistant Permissions
Select the "Permission Settings" tab, where you can set which members the assistant should be pre-assigned to for access. The default is to select all and add to all roles, which can be modified based on usage scenarios.

7. Complete Your AI Assistant Creation
After entering the above steps, click the blue "Confirm" button in the lower right corner of the dialog box to complete the setup 🎉.
Last updated
Was this helpful?
