Recipe + prompt
Classify damage photos
Photos are recognized by damage type and severity. Unclear images become a review task.
- 01 Intake
Photo or image stack
- 02 Recognition
Subject and quality
- 03 Class
Set damage type
- 04 Severity
Derive the level
- 05 Exception
Review unclear photos
Implement as
- Starting point
- An image stack arrives without a fixed damage class. The file is not complete yet.
- Automated result
- Each photo has a damage type and severity. Unclear photos sit as a task.
- Inputs
-
- Damage photo
- Image stack
- Damage classes
- Outputs
-
- Damage type
- Severity
- Review task
Flow
- 01Accept the photos
- 02Run IDP
- 03Set damage type
- 04Derive severity
- 05Send unclear photos to review
- Authentication
- PaperOffice session
PaperOffice session. A person reviews unclear photos. No secret keys in browser scripts.
- MCP profile
- Endpoints
-
POST /job/add/workflowPOST /documents/idp-agent-runPOST /workflow_tasks/listPOST /workflow_tasks/resolve
- Modules
-
- Capture
- OCR
- Classify
- Workflow
- Permissions
- Scope only for POST /job/add/workflow, POST /documents/idp-agent-run, POST /workflow_tasks/list, POST /workflow_tasks/resolve. No DELETE, admin, billing, or webhook rights on po_pk_.
- Errors and approval
- 401/403: check key, scope, or origin. 402: budget. 429: wait, do not loop. 202: poll until completed. Timeout: retry once, then stop. Mark partial failures.
- Security
-
- Do not share the session
- People review unclear photos
- Keep the log
Prompt for PaperOffice workflow
Read in full first:
https://api.paperoffice.ai/latest/docs/llms-full.txt
Task:
Photos are recognized by damage type and severity. Unclear images become a review task. Use documented endpoints only.
Frame:
- Base URL: https://api.paperoffice.ai/latest
- Describe a native PaperOffice workflow. A person reviews unclear damage photos.
Only these endpoints:
- POST /job/add/workflow
- POST /documents/idp-agent-run
- POST /workflow_tasks/list
- POST /workflow_tasks/resolve
Errors: 401/403 stop and check the key. 402 show budget. 429 backoff. Retry a network error once. No invented endpoints, no real tokens. - damage-image-classify-sample.jpg
- company: Example Ltd
Expected result
recipe=damage-image-classify, status=ok
Build or sell this solution with PaperOffice?
Integrator and Reseller can be combined. The next step is the partnership — application and instant decision continue in the PaperOffice app.
Start partnership