A review task is one execution of applying a rule repository to extraction tasks. After creating a review task, the system will automatically execute the review and generate review results.Documentation Index
Fetch the complete documentation index at: https://docs-docflow.textin.com/llms.txt
Use this file to discover all available pages before exploring further.
Create Review Task
Submit a review task to review specified extraction tasks:workspace_id(required): Workspace IDname(required): Task name, max length 100repo_id(required): Review rule repository IDextract_task_ids(optional): Array of extraction task IDs, list of extraction task IDs that need to be reviewedbatch_number(optional): Batch number. The system will retrieve all tasks under this batch and merge them withextract_task_ids(with deduplication)
Parameter Description
Rule Repository ID (repo_id)
The rule repository ID is the identifier of the review rule repository you created. The system will use all rules in this repository to review extraction tasks. Getting Rule Repository ID:- Returned when creating a rule repository via the Create Rule Repository interface
- Obtained by viewing the rule repository list in the interface
Extraction Task ID (extract_task_ids)
Extraction task ID is the identifier of a task that has completed document extraction. Only tasks that have completed extraction can be used as review objects. Important Notes:- If a parent task ID is provided (e.g., a parent task generated by file split or multi-image crop), the system will automatically retrieve all child tasks of that parent task as input
- If both
batch_numberandextract_task_idsare provided, the system will merge all tasks from the batch withextract_task_ids(with automatic deduplication)
- From the
task_idreturned by the file upload interface - From the file query interface (
/api/app-api/sip/platform/v2/file/fetch) to get file information, wheretask_idis the extraction task ID
Batch Number (batch_number)
Batch number is used to specify tasks for review in batches. Whenbatch_number is provided, the system will retrieve all tasks under that batch for review.
Use Cases:
- Batch review of all files uploaded in the same batch
- Combined with
extract_task_idsfor more flexible task selection
Python
Review Task Execution Flow
After creating a review task, the system will execute the review according to the following flow:-
Rule Matching: The system matches rules in the rule repository with extraction task categories
- Check if the rule’s
category_idscontain the extraction task’s categories - Check if the extraction task contains fields referenced by the rule
- Check if the rule’s
- Field Association: For matched rules, the system retrieves field values referenced by the rule from extraction results
- AI Review: Based on rule prompts and field values, AI makes review judgments
- Result Generation: Generate review results, including review status, reasoning, position anchors, and other information
Complete Example
Complete review task creation flow:Python
Delete Review Task
If you need to delete a review task:workspace_id(required): Workspace IDtask_ids(required): Array of review task IDs
Notes
- Extraction Task Status: Only tasks that have completed extraction (
recognition_status == 1) can be used as review objects - Parent Task Handling: If a parent task ID is provided (e.g., a parent task generated by file split or multi-image crop), the system will automatically retrieve all child tasks of that parent task as input for review
- Batch Number and Task ID Combination: If both
batch_numberandextract_task_idsare provided, the system will merge all tasks from the batch withextract_task_ids(with automatic deduplication) - Rule Matching: The system will match rules based on the rule’s
category_idsand the extraction task’s categories. Only matched rules will execute review - Field Association: Ensure that fields referenced by rules exist in extraction results, otherwise it may affect review accuracy
- Asynchronous Execution: Review tasks are executed asynchronously. After creating a task, you need to query review status and results via the Get Review Results interface
Related Pages
- Review Concepts - Learn about core concepts of the review feature
- Rule Repository Management - Learn how to manage review rule repositories
- Get Review Results - Learn how to get and use review results

