Recipe + prompt
Split and classify mixed PDFs
A mixed stack is split into document types, page ranges, and workspaces.
- 01 Stack
Mixed PDF or scan
- 02 Split
Set page ranges
- 03 Type
Detect document class
- 04 File
Assign workspace
- 05 Exception
Review unclear stacks
Implement as
- Starting point
- A scan or mixed PDF contains several cases without clear separator pages.
- Automated result
- Each unit has a type, page range, and workspace. Unclear stacks become a task.
- Inputs
-
- Mixed PDF
- Scan stack
- Workspace list
- Outputs
-
- Document type
- Page range
- Workspace
Flow
- 01Accept the stack
- 02Set page ranges
- 03Detect type
- 04Assign workspace
- 05Raise an exception
- Authentication
- PaperOffice session
PaperOffice session. A person reviews exceptions. 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 handle exceptions
- Keep the log
Prompt for PaperOffice workflow
Read in full first:
https://api.paperoffice.ai/latest/docs/llms-full.txt
Task:
A mixed stack is split into document types, page ranges, and workspaces. Use documented endpoints only.
Frame:
- Base URL: https://api.paperoffice.ai/latest
- Describe a native PaperOffice workflow. A person reviews unclear stacks.
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. - document-split-classify-sample.pdf
- company: Example Ltd
Expected result
recipe=document-split-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