When implementing an AI dialogue system, detailed control over the available scope of "Knowledge Base / AI Assistant / Chat Platform" is usually needed due to different user permissions and usage requirements.
In MaiAgent, you can use Query Metadata attached to different conversation/identity levels to determine "what content this person/conversation can reference".
What is Query Metadata?
Query Metadata is a set of dynamic conditions that limit the query scope, specifying what "Knowledge Base, FAQ, documents matching tag conditions" and other data content users can query under a certain chat platform.
It doesn't replace roles or contacts, but rather makes these identities "work conditionally", implementing conversation-level least privilege control.
Roles/Contacts/Conversations are containers, Query Metadata is the actual condition settings that control visible scope
Before service construction, Agent confirms all available knowledge bases through Query Metadata at different levels, with permission levels referenced in the following order:
AI Assistant > Chat Platform > User (Message/Contact/Role) > query_metadata > Query Permissions
You can specify permissions at each level using either graphical interface or JSON format
Get all document content and FAQs from Employee and General knowledge bases
Summary: The Value of query_metadata for Enterprises
🎯 Multi-dimensional Identity Cross-Control (Role + Region + Product Line)
🎯 Real-time Query Control: No need to copy assistants, just change conditions to adapt to different scenarios
🎯 Flexible Large Knowledge Base Management: Tags and knowledge bases can be split and authorized according to scenarios
It is recommended to incorporate query_metadata into the core product architecture, allowing enterprises to achieve maximum authorization flexibility with minimum settings,ensuring knowledge security while improving conversation experience and operational efficiency.