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
- 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/chatgpt
- 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. - Question: Where is the retention period for incoming invoices stated?
- Workspace: Unternehmensrichtlinien
Expected result
Answer with source 'Aufbewahrung-2024.pdf', POFID, no hit without proof
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