Documents Folder
The documents folder in the SAAI directory is where all server-related information is stored. This folder can contain multiple files in various formats with relevant information about your server.
Supported File Types
ServerAssistantAI supports multiple document formats, including:
Text files (.txt)
Markdown files (.md)
PDF files (.pdf)
Microsoft Office formats:
Word documents (.docx)
PowerPoint presentations (.pptx)
Excel spreadsheets (.xlsx)
Using Multiple Documents and Sub-Folders
Multiple documents can be used simultaneously, combining different file types as needed. This allows for more organized and structured information management. ServerAssistantAI also supports sub-folders within the documents/
directory, enabling categorization and grouping of files for better clarity and easier maintenance.
For example, the documents/
directory could have:
A main server rules document in Markdown
A FAQ in a text file
A detailed server guide in PDF format
Event schedules in an Excel spreadsheet
Sub-folders for different topics, such as:
rules/
for server rules and regulationsguides/
for various guides and tutorialsevents/
for event-related documents
Content and Structure
The content of these documents is used by ServerAssistantAI to generate context-aware responses to player questions. The AI assistant searches through all files and sub-folders in the documents/
directory to find information relevant to the player's inquiry, based on the embedding results (chunks) specified in the config.yml
file for both Minecraft and Discord, regardless of document size.
There is no specific format you need to follow when creating your documents. You can structure the information in a way that makes sense for your server and is easy for players to understand. However, we have found that the Markdown (.md) format works particularly well for helping the AI better understand the structure and context of the information, leading to more accurate and relevant responses.
The example.txt File
The example.txt
file is included in the documents/
directory as a default option. You can use this file alone or in combination with other document types. If you choose to use only the example.txt
file, simply replace its content with your server's information.

Keeping Information Up-to-Date
To ensure the AI provides accurate and helpful responses, it is essential to keep all documents in the documents/
directory up-to-date with the latest server information and format them in a clear and organized manner.
ServerAssistantAI Document Creator
The ServerAssistantAI Document Creator is a web-based tool that simplifies the creation of documents for your server by crawling and converting content from multiple websites. It currently uses FireCrawl's API but will soon not require it.

Features:
Crawl multiple websites simultaneously
Convert content to .txt and .md files
Customize crawling with includes, excludes, and limits
Export options: main content only, include HTML, raw HTML, separate pages
To use the document creator:
Obtain your FireCrawl API key at https://www.firecrawl.dev/app/api-keys
Enter your server website URLs and configure options
Select the needed options and click "Create Document"
Wait a few seconds for crawling to complete
Download the generated files and add them to your
documents/
directory
Remember to reload ServerAssistantAI after making changes to any files in the documents/
directory or its sub-folders for the changes to take effect.
Last updated
Was this helpful?