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.
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 | |||