Recipe + prompt
Document approval
Exceptions become tasks. The decision stays auditable.
- 01 Intake
Document arrives
- 02 Recognition
OCR and layout
- 03 Classification
Type and fields
- 04 Review
Rule or person
- 05 Result
Status and export
Implement as
- Starting point
- Exceptions become tasks. The decision stays auditable.
- Automated result
- Exceptions become tasks. The decision stays auditable.
- Inputs
-
- Document
- Context
- Outputs
-
- Status
- Fields
Flow
- 01Accept intake
- 02Recognize
- 03Review
- 04Task or export
- 05Set status
- Authentication
- PaperOffice session
PaperOffice session. People review exceptions. No secret keys in browser scripts.
- MCP profile
- Endpoints
-
POST /job/add/workflowPOST /workflow_tasks/listPOST /workflow_tasks/claimPOST /workflow_tasks/completePOST /workflow_tasks/resolve
- Modules
-
- Workflow
- Classify
- Permissions
- Scope only for POST /job/add/workflow, 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 audit log
Prompt for PaperOffice workflow
Read this first, in full:
https://api.paperoffice.ai/latest/docs/llms-full.txt
Task:
Exceptions become tasks. The decision stays auditable. Use documented endpoints only.
Frame:
- Base URL: https://api.paperoffice.ai/latest
- Describe a native PaperOffice workflow. A person reviews exceptions.
Only these endpoints:
- POST /job/add/workflow
- POST /workflow_tasks/list
- POST /workflow_tasks/resolve
Errors: stop on 401/403 and check the key. Show budget on 402. Back off on 429. Retry a network error once. Do not invent endpoints. Do not use real tokens. - document-approval-sample.pdf
- company: Example Ltd
Expected result
recipe=document-approval, 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