Recipe + prompt
Compliance scans on your own schedule
Your own cron job or n8n starts the scan through the API. It checks the archive and creates tasks on hits.
- 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
- Rules change, but nobody re-checks the existing archive at fixed intervals.
- Automated result
- On every run of your cron job, the agent checks the archive and creates tasks on hits.
- Inputs
-
- Document
- Context
- Outputs
-
- Status
- Fields
Flow
- 01Accept intake
- 02Recognize
- 03Review
- 04Task or export
- 05Set status
- Authentication
- Server-side secret key (po_sk_)
Server-side secret key po_sk_ only in the server environment. Idempotency, backoff, no endless retry.
- MCP profile
- Endpoints
-
GET /analytics/calendar-due-datesGET /documents/document-searchPOST /webhooks/subscribeGET /job/get/{job_id}
- Modules
-
- Search
- Webhook
- Workflow
- Permissions
- Scope only for POST /webhooks/subscribe, GET /job/get/{job_id}, GET /analytics/calendar-due-dates. 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
-
- secret only in ENV
- verify HMAC
- retry with backoff
- approval for critical actions
Prompt for Autonomous agent
Read this first, in full:
https://api.paperoffice.ai/latest/docs/llms-full.txt Task:
Your own cron job or n8n starts this agent at fixed times. It checks the archive and creates tasks on hits. PaperOffice has no time trigger of its own. Use documented endpoints only. Frame:
- Base URL: https://api.paperoffice.ai/latest
- Build a server-side agent. Credentials only from the environment. Work idempotently. Only these endpoints:
- POST /webhooks/subscribe
- GET /job/get/{job_id}
- GET /analytics/calendar-due-dates 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. - scheduled-compliance-scan-sample.pdf
- company: Example Ltd
Expected result
recipe=scheduled-compliance-scan, status=ok
Build or sell this solution with PaperOffice?
Integrator and reseller can be combined. You apply in the PaperOffice app with the Plus plan or higher. A person on the partner team reviews it and decides; this can take several business days.
Start partnership