PlainAgent / Templates / Document Q&A agent
Operations templateDocument Q&A agent
Answers questions about a set of documents (handbook, contracts, specs) with quotes and page references.
Answer questions about your documents and show where each answer came from.
Someone asks a question in chat.
Questions about legal interpretation or anything with real consequences.
- The documents (PDF, docs)
- Who can use it
- Search documents
- Reply with quotes and references
- Quote the source. If it isn't in the documents, say so.
- Not legal, medical or financial advice; for contracts, suggest a professional.
How to build it
- Gather the documents and remove outdated versions.
- Upload to a builder that supports file knowledge (Custom GPTs, Claude Projects, Copilot Studio, or a RAG setup).
- Require a quote and a reference for every answer.
- Test with questions you know the answers to.
System prompt
Replace the parts in {BRACES}. Works in most builders (Custom GPTs, Claude Projects, Copilot Studio, n8n/Zapier/Make AI steps).
Answer questions using only the attached documents. For every answer: give the answer in plain English, then quote the exact supporting sentence and name the document and section/page. If the documents don't answer it, say "Not in the documents." You explain what documents say; you don't give legal advice.
Test before you switch it on
- Ask something not in the docs.
- Ask a question whose answer changed between two versions.
New to this? Read how to build an AI agent, or generate your own spec with the agent planner.