> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/en/build/knowledge-base/faq.md).

# Create FAQs

Use FAQs to provide predefined responses when users ask sensitive questions or when you need answers to be 100% accurate. This is suitable for common customer questions with fixed answers.

## How to Upload FAQs <a href="#how-to-upload-faq" id="how-to-upload-faq"></a>

### Select a Knowledge Base <a href="#select-knowledge-base" id="select-knowledge-base"></a>

In the left sidebar, go to “<mark style="color:blue;">AI Features</mark>” → “<mark style="color:blue;">Knowledge Base</mark>”, and click the knowledge base where you want to create FAQs (if you have not created one yet, see [How to Create a Knowledge Base: Basic Settings](/maiagent-user-guide/en/build/knowledge-base/km-basic-settings.md) first).

### Add Questions and Answers <a href="#add-qa-content" id="add-qa-content"></a>

1. Open the knowledge base page, select the “<mark style="color:blue;">FAQ</mark>” tab, and click the blue “<mark style="color:blue;">+Create FAQ</mark>” button in the upper right to start adding questions and answers.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-49a1dbecff324fc73ae24dc5d1129881ff999386%2F%E6%88%AA%E5%9C%96%202025-04-25%20%E4%B8%8A%E5%8D%8811.01.57.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Create an FAQ

The FAQ editor supports multiple answer formats:

* Basic text formatting (bold, underline, italics, etc.)
* Equations
* Source code (HTML, XML)
* Embedded links (videos, websites)
  * Videos provide reference links for users (the Agent cannot read video content yet)

<div><figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-b4615a80311723cd5f59386748f5c77c6343c5b8%2Fimage%20(161).png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-aaf188abfa96d664489bfe41ceef988b4813ac9b%2Fimage%20(144).png?alt=media" alt=""><figcaption><p>Example answer formats</p></figcaption></figure></div>

These formats let you clearly highlight key points in your answers and ensure the information is complete.

For example, for e-commerce payment methods, you can add the following question to explain online payment options:

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-08cd11dea147bebfc6f110f3753681db466ce006%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-28%20113655.png?alt=media" alt=""><figcaption></figcaption></figure>

After creating the answer, click Preview to check its content:

<div><figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-20c330d653c8723fa69be5633277e702d5b9ffa3%2Fimage%20(149).png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-1ea572e00438069f51438eb98d0bc6d14d25b063%2Fimage%20(148).png?alt=media" alt=""><figcaption></figcaption></figure></div>

After adding the content, click “<mark style="color:blue;">Confirm</mark>” to finish creating the FAQ. The Agent can then refer to the answer you provided when responding:

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-25391c06171945cc1c914bc863aecd3c04b29d3f%2Fimage%20(145).png?alt=media" alt=""><figcaption></figcaption></figure>

When a customer asks about online payment methods, the LLM responds based on the FAQ content:

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-1e7527fa3c7ef9bb3fa09a3c8e8005a0a24f25d4%2Fimage%20(146).png?alt=media" alt=""><figcaption></figcaption></figure>

This limits the scope of the Agent's answers and helps prevent incorrect responses or content that does not comply with company policies.

{% hint style="info" %}
Users do not need to phrase their questions exactly as they appear in the FAQ: like knowledge base documents, FAQs use semantic search, so different wording may retrieve the same FAQ. In the payment example above, both “Can I pay by credit card?” and “What payment methods are available?” may retrieve this FAQ. Before going live, enter several common phrasings in [Search Testing](/maiagent-user-guide/en/build/knowledge-base/test-search-result.md) to confirm they all retrieve it.
{% endhint %}

## Bulk Import FAQs with Excel <a href="#bulk-import-faq-excel" id="bulk-import-faq-excel"></a>

If you have many questions and answers, you can import them all at once with Excel. Each row creates one FAQ, which appears in the list and can be edited individually, just like an FAQ created manually.

{% stepper %}
{% step %}

### Download the Template <a href="#faq-excel-download-template" id="faq-excel-download-template"></a>

On the knowledge base's “<mark style="color:blue;">FAQ</mark>” tab, click “<mark style="color:blue;">Bulk Import FAQs</mark>” in the upper right, then click “<mark style="color:blue;">Download FAQ Template</mark>” on the “<mark style="color:blue;">Upload</mark>” tab. The first row of the downloaded Excel file is an example, followed by the existing FAQs in this knowledge base.
{% endstep %}

{% step %}

### Fill In Questions and Answers <a href="#faq-excel-fill" id="faq-excel-fill"></a>

Enter questions in the `question` column and answers in the `answer` column. Do not change the column names. Before uploading, delete the example row and any existing FAQs you do not want to import again.
{% endstep %}

{% step %}

### Upload and Import <a href="#faq-excel-upload" id="faq-excel-upload"></a>

Drag the file into the upload area or click to upload (supports `.xlsx` and `.xls`), then click “<mark style="color:blue;">Upload and Update</mark>”. The import runs in the background, so you can close the window. When it finishes, a notification tells you how many FAQs were imported.
{% endstep %}

{% step %}

### View Import Results <a href="#faq-excel-history" id="faq-excel-history"></a>

Go to the “<mark style="color:blue;">Import History</mark>” tab to view each import's status, progress, number of FAQs created, and errors. Rows with blank questions or answers are not imported and are listed in the errors as “Row N”.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}

* Importing only **adds** FAQs; it does not update or compare existing questions and answers. Uploading the downloaded file without changes creates duplicates of the existing FAQs.
* The example row is not skipped automatically. If you forget to delete it, it is imported as an FAQ. Delete it after importing.
* Only one import can run at a time in the same knowledge base. While an import is running, “<mark style="color:blue;">Upload and Update</mark>” cannot be clicked.
  {% endhint %}

## Other Use Cases <a href="#other-use-cases" id="other-use-cases"></a>

### Product Usage Questions and Answers <a href="#product-operation-qa" id="product-operation-qa"></a>

For example, for **using the MaiAgent platform**, suppose you need to help new users get started with the MaiAgent system. You can add the following question and answer to the FAQ section:

**Question:** What should I do if I don't know how to use MaiAgent?

{% hint style="info" %}
If the answer is long, click Preview to check the full content
{% endhint %}

<div><figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-da584d4c0f0186f33bf1d91c1deb22e6af87d89e%2Fimage%20(147).png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-d7c3c8f4afb6da16d4dd0e9b1a73c2a6b82b14f0%2Fimage%20(150).png?alt=media" alt=""><figcaption><p>Answer preview</p></figcaption></figure></div>

Based on the answer you provide, the Agent explains MaiAgent's available resources and getting-started steps, and shares the links in your answer for users to refer to:

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-0f8ed42d44f41f1eed8ed96eca41f69d878d3e67%2Fimage%20(151)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

***

### Introducing Concepts <a href="#knowledge-introduction" id="knowledge-introduction"></a>

For example, for an **introduction to LLM technology**, suppose you run a technology education platform and need to explain large language models (LLMs) to the general public. You can add the following question and answer to the FAQ section:

**Question:** How do LLMs work?

{% hint style="info" %}
You can enter video links in the answer
{% endhint %}

<div><figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-8c3ec8de860a3c41e9d54549a2d2524ebaa2e34c%2Fimage%20(153).png?alt=media" alt=""><figcaption><p>Click Insert/Edit Media</p></figcaption></figure> <figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-860ef22a1a3b9e0de2da94fac5f0a1ea0b825b45%2Fimage%20(154).png?alt=media" alt=""><figcaption><p>Example of entering a link</p></figcaption></figure></div>

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-c53a1ddf17ba9a071cf2bcb39b475b10adccc1a3%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-28%20122508.png?alt=media" alt=""><figcaption><p>Media insertion preview</p></figcaption></figure>

The Agent responds based on the answer you configured and provides the video reference link for users to visit:

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-e1d7523edbdd84e0531ae13ae8e6e558d7a1b2de%2Fimage%20(155).png?alt=media" alt=""><figcaption></figcaption></figure>

***

## FAQ Maintenance Tips <a href="#faq-maintenance-tips" id="faq-maintenance-tips"></a>

**Keeping Content Up to Date**

* **Update event information**: Remove or update relevant content as soon as promotions or limited-time offers end
* **Keep policies in sync**: When company policies change (such as return conditions or terms of service), update the FAQ content accordingly
* **Maintain product information**: Promptly reflect new products, specification changes, discontinued products, and other updates in the relevant questions and answers

**Data-Driven Optimization**

* **Improve answer quality**: Optimize answers to frequently asked questions with more detailed and useful information
* **Gap analysis**: Use customer feedback and customer service records to identify common questions that the FAQ does not cover

**Quality Control**

* **Check content accuracy**: Regularly verify links, contact information, and technical data in the FAQ
* **Maintain a consistent tone**: Ensure all FAQ content matches the brand's tone and communication style
* **Synchronize language versions**: If multiple languages are needed, keep all language versions updated in sync

{% hint style="info" %}
Check FAQ hit counts to identify the question categories users ask about most often, and update them regularly.

For an explanation of hit counts, see: [Search Testing](/maiagent-user-guide/en/build/knowledge-base/test-search-result.md)
{% endhint %}

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-169fdace8672126bd716e283852b2476d9328279%2Fimage%20(157).png?alt=media" alt=""><figcaption></figcaption></figure>

These maintenance practices help the Agent consistently provide accurate, timely responses that meet users' needs, improving the overall customer service experience.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/maiagent-user-guide/en/build/knowledge-base/faq.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
