Recipe + prompt
Company archive assistant
Authorized people ask questions about the archive and receive answers with traceable document sources.
- 01 Question
The user asks
- 02 Workspace
Authorized holdings
- 03 Search
Full-text and hybrid
- 04 Sources
POFID and title
- 05 Answer
A citable statement
Implement as
- Starting point
- Teams need answers from the archive without operating the DMS themselves.
- Automated result
- An answer with document title, POFID, and a short citation.
- Inputs
-
- Question
- Workspace
- Outputs
-
- Answer
- Source
- POFID
Flow
- 01Connect the DMS MCP profile
- 02List workspaces and pick the right one
- 03Run document-search
- 04Cite only hits with a source
- 05Do not speculate without a document
- Authentication
- MCP user token
User token through the documented MCP connection. Never put tokens in prompts, artifacts, or frontend files. po_pk_ is not for MCP.
- MCP profile
https://mcp.paperoffice.ai/dms- Endpoints
-
GET /documents/document-searchGET /documents/workspaces-list
- Modules
-
- MCP
- Search
- Permissions
- Read and search in the selected workspace. No admin, billing, or webhook tools.
- Errors and approval
- 401/403: check connection and permission. 429: pause. State empty hits honestly. Never invent sources.
- Security
-
- Token only in the MCP connection
- No po_pk_ for MCP
- Only the user’s workspace
- Do not invent sources
Prompt for AI assistant
Read this first, in full:
https://api.paperoffice.ai/latest/docs/llms-full.txt
Task:
You are a company-archive assistant. Answer questions only from PaperOffice documents. Every statement needs a source (title + POFID).
Connection:
- MCP DMS: https://mcp.paperoffice.ai/dms
- Claude: https://mcp.paperoffice.ai/claude
- ChatGPT: https://mcp.paperoffice.ai/openai
- Cursor: https://mcp.paperoffice.ai/cursor
- OAuth 2.1 or a User token (po_ut_ / po_gt_). No po_sk_ or po_pk_ for MCP. Do not write the token into the prompt.
Only these capabilities:
- GET /documents/workspaces-list
- GET /documents/document-search
Rules:
1. Use the user’s workspace; invent nothing.
2. If there are no hits, say so clearly.
3. No destructive actions.
4. Do not loop on 401/403, 402, or 429. - Frage: Wo steht die Aufbewahrungsfrist für Eingangsrechnungen?
- Workspace: Unternehmensrichtlinien
Expected result
Antwort mit Quelle „Aufbewahrung-2024.pdf“, POFID, kein Treffer ohne Beleg
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