Study FAQ
How do I add a flow that responds in real time to a standard-harness Copilot Studio agent?
Also asked as 2
- What trigger and response settings let a standard-harness Copilot Studio flow reply in real time?
- How should a synchronous Copilot Studio agent flow return the business result?
Answer
Use an agent flow with When an agent calls the flow and Respond to the agent, published in a solution in the agent's environment. In the response action's networking settings, turn off asynchronous response so the flow responds in real time. Microsoft documents a 100-second action response limit for standard-harness agent calls. Allow enough headroom to handle normal variance and return only the information the agent needs.
Define a small contract, such as a request ID and an allowed operation, then validate those arguments inside the flow. Return a structured result such as Rejected, Accepted, or Completed. Use Completed only after the authoritative business work succeeds. If supported actions continue after the response, give the caller an operation identifier and a way to check status. Separately documented asynchronous callbacks depend on environment infrastructure and channel support. Validate any AI-generated values before using them in an update.
Test in the intended environment with permitted connections and suitable capacity. Invoke the published flow as a tool and check structured outputs for an allowed request, a rejected request, and work that cannot finish within the response window.
Microsoft references
Full explanation
AB-400: Reliable Cloud Flows and Copilot Studio Workflows
Study guide · AB-400
Read the full explanation