Announcements
Hi everyone,
I’m building an automation using Copilot Studio and Power Automate, and I’m running into an issue with handling validation responses back to the agent.
A user uploads a PDF to a Copilot Studio agent
This triggers a Power Automate flow
The flow:
Extracts the report date using AI Builder
Checks a SharePoint list to see if a report for that date already exists
If the report date already exists in SharePoint, the flow should stop immediately and the agent should respond with: "This report has already been processed."
Multiple “Respond to agent” actions I tried placing a Respond to agent action inside the “Duplicate Found” branch, but I get schema errors because there is already a Respond action at the end of the main (success) path.
Using Terminate action When I use a Terminate action, the agent often returns a generic system error instead of my custom message.
What is the recommended pattern for sending a validation or short-circuit response from Power Automate back to a Copilot Studio agent?
Should I use a variable (e.g., StatusMessage) and return it in a single Respond action at the end?
StatusMessage
How can I ensure the agent displays a custom message (like "duplicate report") instead of a system error when the flow stops early?
Any guidance, best practices, or sample patterns would be greatly appreciated!
Thanks in advance!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 277
11manish 206
sannavajjala87 156 Super User 2026 Season 1