# Smart FAQ Generator

This feature enables admins to create and manage a list of **frequently asked questions (FAQs)** derived from the application’s knowledge base. The FAQs appear in the  [**Question Library**](https://gdplabs.gitbook.io/glchat/application-ui/how-to-guide/chat-input-and-responses/question-library) of the associated application.

To improve performance, the system uses **caching**, ensuring that when users ask similar questions, responses are delivered instantly from stored data.

* **Phase 1:** FAQs are entered manually by admins.
* **Phase 2 :** FAQs will be automatically generated from the knowledge base using the configuration of the corresponding application assigned.

This feature improves the discoverability of common queries, speeds up response time, and provides users with reliable starting points for their conversations.

***

### View Smart FAQ Generator

<figure><img src="https://1470748636-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDY50EL4OmcrPvtoecg4h%2Fuploads%2FtkwEbmSYltGlZQeAhuI7%2Fimage.png?alt=media&#x26;token=10d128d7-308a-4411-8fe5-7a2627fbf447" alt=""><figcaption></figcaption></figure>

In **Phase 1**, admins can manually add FAQ entries. Each question will trigger an AI-generated answer from the selected LLM. The generated response is cached, allowing similar user queries to be answered faster.

Admins can also configure the **cache time-to-live (TTL)** based on system requirements, determining how long cached answers remain active for reuse. Additionally, admins can **limit the number of displayed questions** by setting a value in the **Maximum Number of Questions** field.

***

### Add New FAQs

<figure><img src="https://1470748636-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDY50EL4OmcrPvtoecg4h%2Fuploads%2FqWQypsEh0bjWRaB1E5ku%2Fimage.png?alt=media&#x26;token=9c39a576-fe8d-4309-827f-b96d966bd647" alt=""><figcaption></figcaption></figure>

Fill in the form in the provided fields. Once completed, click **Next** to continue or **Cancel** to discard changes.

1. **Question**\
   Enter the question that will be displayed to users.
2. **Source Documents**\
   Select one or more documents from the available knowledge base to use as reference materials. If no document is selected, the system will automatically use all documents in the knowledge base.
3. **LLM Model**\
   Select the LLM model that will be used to generate the answer.
4. **Answer**\
   You can enter the answer manually, or click **Generate Answer** to have the LLM create it automatically.
5. **Category**\
   Assign a category to help organize and group related questions more easily.

***

### Activate/Deactive FAQs

<figure><img src="https://1470748636-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDY50EL4OmcrPvtoecg4h%2Fuploads%2FE2HU3PxV3wutgnwX0yYj%2Fimage.png?alt=media&#x26;token=9172a85c-d32b-46dd-b85a-567212856e90" alt=""><figcaption></figcaption></figure>

By default, newly generated FAQs go through **moderation** before appearing in the Question Library. Admins can choose to **activate** or **deactivate** each question as needed.

* When **activated**, the FAQ will appear in the [Question Library](https://gdplabs.gitbook.io/glchat/application-ui/how-to-guide/chat-input-and-responses/question-library).
* When **deactivated**, it will be hidden but can be reactivated anytime from the same menu.

Below is the display of Auto Generated FAQs in the application home page

<figure><img src="https://1470748636-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDY50EL4OmcrPvtoecg4h%2Fuploads%2FT1yQnS1yLktsmUVxSgs7%2Fimage.png?alt=media&#x26;token=273f4158-1a6c-405b-a987-1fa561731607" alt=""><figcaption></figcaption></figure>

***

### Export Logs

You can export all available FAQ questions by clicking **Export Logs**.

<figure><img src="https://1470748636-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDY50EL4OmcrPvtoecg4h%2Fuploads%2FgclcVIbsrRmwsysF6O5d%2FScreenshot%202025-10-08%20at%2014.22.14.png?alt=media&#x26;token=a481c7c2-16da-4250-82e0-85ec9c39ba6e" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If no date filter is applied, the system automatically exports all questions. When a date range is selected, only questions within that range will be included in the export.
{% endhint %}
