Designing Prompt and Response Agents
This lesson explains how to design agents that answer from knowledge without acting.
Learning outcomes
After completing this lesson, you will be able to:
- Describe the characteristics of prompt and response agents.
- Identify their design elements.
- Compare the three agent types.
Characteristics
A prompt and response agent, sometimes called a retrieval or knowledge agent, receives a question, retrieves relevant content from its knowledge sources and generates an answer, usually with citations. It does not change data in other systems. This makes it the lowest-risk type of agent: a wrong answer can mislead, but it cannot directly create a wrong order or send a wrong email. Typical examples are an HR policy agent, a product information agent for customers and an IT how-to agent.
Because it does not act, a prompt and response agent is also the quickest to build and to approve. Many organizations start their agent programme with this type, both for its value and because it reveals the state of their knowledge content.
Design elements
The quality of a prompt and response agent depends almost entirely on its knowledge and instructions. The design should cover the following elements.
- Knowledge scope: the approved sources, reviewed for accuracy, relevance, timeliness, cleanliness and availability.
- Grounding rules: whether the agent may answer from general knowledge or the web, usually not for authoritative business content.
- Citations: answers should show their sources so that users can verify them.
- Behaviour when no answer exists: the agent should say so and direct the user to a person or channel, rather than guess.
- Audience and permissions: whether all users may see all content, or whether sources must respect each user's permissions.
- Platform: a declarative agent for employees with Microsoft 365 Copilot licences, or a Copilot Studio agent for other audiences and channels.
Limits of the type
A prompt and response agent becomes insufficient when users need something done, not only explained. If the most frequent follow-up to an answer is now please submit the request for me, the agent should gain tools and become a task agent. The architect should also watch for questions that require personal data, such as how many leave days do I have left?, which need a tool that reads the user's record rather than a document.
The following table compares the three agent types on the dimensions that drive design effort, which shows why the type should be chosen deliberately.
| Dimension | Prompt and response | Task | Autonomous |
|---|---|---|---|
| Started by | A user question | A user request | An event or schedule |
| Acts on systems | No | Yes, when asked | Yes, on its own |
| Main risk | Wrong information | Wrong action on request | Wrong action without supervision |
| Key controls | Knowledge quality, citations | Tool permissions, confirmation | Guardrails, approvals, monitoring |
Designing a policy agent
A hospital group wants nurses to ask questions about clinical procedure documents on tablets shared on wards. Nurses do not have Microsoft 365 Copilot licences. Procedures differ between hospitals, and answers must never be generated from general knowledge. What should you recommend?
The need is a prompt and response agent. Without Copilot licences, a Copilot Studio agent published to Teams or a web channel is more suitable than a declarative agent. The knowledge sources are the approved procedure libraries, with the hospital stored as metadata so that the instructions can ask for the user's hospital and filter answers to it. Allow ungrounded responses and web search are turned off, citations are shown, and the agent tells nurses to consult the procedure owner when no document answers the question.
Employees ask a policy agent how many leave days they have left. Can documents answer this?
Show answer
No. The answer is personal data in the HR system, so the agent needs a tool that reads the user's record.
Exam Tips
Remember for the exam
- Prompt and response agents answer from knowledge and do not act on systems.
- Their quality depends on knowledge scope, grounding rules and citations.
- Add tools and move to a task agent when users need things done.
- Personal questions, such as leave balances, need tools rather than documents.