Recept + Prompt
Contract Deadlines Agent
Contracts are regularly checked for deadlines, obligations, and extensions. Tasks are created in good time.
- 01 Inventory
Contracts in the workspace
- 02 Extraction
Deadlines and parties
- 03 Calendar
Query due dates
- 04 Decision
Create task only if necessary
- 05 Notification
Inform in good time
Omzetten als
- Uitgangssituatie
- Renewal deadlines are discovered too late because no one regularly reviews the inventory.
- Geautomatiseerd resultaat
- Daily run creates only new, idempotent tasks before the deadline.
- Invoer
-
- Contract PDF
- Schedule
- Due date window
- Uitvoer
-
- Due dates
- Task
- Log
Proces
- 01Trigger schedule or webhook
- 02GET /analytics/calendar-due-dates read
- 03If necessary, legal extract via workflow-job
- 04Derive idempotent tasks
- 05Send critical alerts only after approval
- Authenticatie
- Server-side Secret Key (po_sk_)
po_sk_ only from the server environment. Never in the browser, prompt, or repository. Rotate and restrict access.
- MCP-profiel
- Eindpunten
-
GET /analytics/calendar-due-datesPOST /job/add/workflowPOST /webhooks/subscribeGET /job/get/{job_id}
- Modules
-
- OCR
- Classify
- Webhook
- Workflow
- Rechten
- Calendar, workflow jobs, subscribe to webhooks. No billing admin actions in the agent.
- Fouten en vrijgave
- 202 polling. Retry with backoff, capped attempts. Idempotency via document ID + deadline. Respect 429. HITL before external notification.
- Beveiliging
-
- po_sk_ only environment
- Idempotency requirement
- HITL before notification
- Verify webhooks HMAC
Prompt voor Autonome agent
Lees eerst volledig:
https://api.paperoffice.ai/latest/docs/llms-full.txt
Taak:
Implementeer een autonome agent (Cron of gebeurtenis) die contracttermijnen controleert. Geen chat als besturingsoppervlak.
Kader:
- Base URL: https://api.paperoffice.ai/latest
- Autorisatie: Bearer uit omgeving PO_API_SECRET (po_sk_…). Nooit in de frontend.
- Terugkerend, idempotent, retry met backoff, logging.
Alleen deze endpoints:
- GET /analytics/calendar-due-dates
- POST /job/add/workflow (Extract legal document; bestand of pofid)
- GET /job/get/{job_id}
- POST /webhooks/subscribe (HMAC-SHA256, alleen server-side)
Regels:
- Dezelfde termijn niet twee keer als taak aanmaken.
- Externe hints pas na menselijke goedkeuring.
- 401/403 afbreken. 402 budget. 429 backoff. 202 pollen. Geen eindeloze retries. Geen verzonnen endpoints. Geen echte keys in bestanden. - rental-contract-berlin-2024.pdf
- termination period: 3 months to the quarter
- next deadline: 2026-09-30
Verwacht resultaat
due=2026-09-30, obligation=termination_window, task_created=true, notify=pending_hitl
Deze oplossing bouwen of verkopen met PaperOffice?
Integrator en reseller kunnen worden gecombineerd. De volgende stap is de partnerschap — sollicitatie en directe beslissing volgen in de PaperOffice-app.
Partnerschap starten