How to stop a Copilot Studio agent from guessing a missing input
A user writes "I need a quote for Standard." and never says how many units. If your Copilot Studio agent answers with a total, it has made up the quantity. The arithmetic can be exact, and the answer is still wrong. This article assumes that an agent flow does all the math and returns one finished text, Result , while the agent only fills the flow's inputs and words the answer. That takes the…
When an agent gives a wrong answer due to guessing a missing input, there are several layers of defense to prevent this. First, it is crucial to describe the valid value for the input clearly. The agent should only accept the correct format and values, and not guess or make up any information. Second, providing a specific question for the agent to ask when a required value is missing can help guide it towards the correct answer.
However, the agent may still ask the question in its own words, so refining the input's name or description may be necessary. Third, checking the inputs in the flow with a Condition before doing any math is essential. If the input is invalid, the flow should end and respond to the agent with the correct input. Finally, adding a test row that catches a guess can help identify when an agent has made a mistake.
By following these steps, it is possible to stop a Copilot Studio agent from guessing a missing input and ensure accurate results.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to