Docflow Create Category
docflow_create_categoryCreate a document category by defining custom fields and uploading a sample file, enabling automatic classification of similar documents.
Instructions
Create a file category with field configuration and a sample file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>",
"name": "<name>",
"fields": "<fields>",
"sample_file_path": "<sample_file_path>"
},
"name": "docflow_create_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Category name (e.g. "增值税发票", "酒店水单"). | |
| fields | Yes | Field definitions. Format: [{"name": "发票金额", "description": "价税合计"}] | |
| workspace_id | Yes | Target workspace. | |
| extract_model | No | "llm" for text-heavy docs, "vlm" for scanned/layout-complex docs. | llm |
| category_prompt | No | Optional classification hint (max 500 chars). | |
| sample_file_path | Yes | Local path to a sample file (PDF/image). Required for classification. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||