Getting Started - Using JSON Format
If you want to write more complex filtering conditions, you can use JSON format to directly specify by level IDs (such as knowledge base, single document, etc.)
Query Metadata Control Item Description
Item Category
Key Name
Description
Usage
Structure Format Example and Description
"query_metadata": {
"knowledge_bases": [
{
"knowledge_base_id": "123e4567-e89b-12d3-a456-426614174000",
"chatbot_file_ids": [
"9f7a9f7b-2b2b-4c4c-9d9d-8e8e8e8e8e8e" // Files
],
"faq_ids": [
"a1b2c3d4-e5f6-7890-abcd-1234567890ab" // FAQ
],
"has_user_selected_all": "False" // Select all knowledge bases
},
// Can pass in multiple objects to configure referenceable files, FAQs etc under multiple databases at once
// {
// "knowledge_base_id": "Id2",
// "chatbot_file_ids": [
// "file_id1" // Files
// ],
// "faq_ids": [
// "faq_id1",
// "faq_id2" // FAQ
// ],
// },
],
"label_relations": { // Labels
"operator": "OR", // Set applicable criteria (must match all or match any)
"conditions": [
{ "label_id": "11111111-2222-3333-4444-555555555555" },
// Can use nested definitions for complex conditions
{
"operator": "AND",
"conditions": [
{ "label_id": "66666666-7777-8888-9999-000000000000" },
{ "label_id": "aaaaaaa1-bbbb-cccc-dddd-eeeeeeeeeeee" }
]
}
]
},
}How to Get IDs for Each Level?

Key Logic Description
1. label_relations Logic
2. knowledge_bases Settings
Contact Settings

Web Chat Initialization Settings
Code Example
hasUserSelectedAll Parameter Description
Parameter Value
Behavior
Applicable Scenario
Code Example
queryMetadata and contactId Priority
Last updated
Was this helpful?
