Building and customizing solutions using Microsoft 365 Copilot APIs and tools
Use this checklist to diagnose the failure.
- Verify the flow meets the required tool criteria.
- It must have the When an agent calls the flow trigger.
- It must have a Respond to the agent action.
- It must be published.
- If using a workflow, the Respond to the agent action must be configured for a real-time response. In Respond to the agent > Networking, set Asynchronous response to Off.
- Confirm the flow is actually eligible to appear as a tool.
- Copilot Studio only lists published workflows/flows that include the required trigger and response action.
- If a flow appears in the picker but fails on Add and configure, re-open the flow in the designer and validate those two nodes are still present and correctly configured.
- Check the flow in the designer with flow validation.
- Most flow-related issues can be found in the flow checker on the flow designer tab.
- Open each test flow and review any validation errors or warnings there first.
- Review response timing.
- The flow must respond to the agent within the 100-second action limit.
- If the flow performs long-running queries or returns too much data, simplify the logic and reduce the returned payload.
- Recreate one minimal test flow.
- From Flows > New flow > Agent flow.
- Use the starter template that already includes When an agent calls the flow and Respond to the agent.
- Add no extra actions.
- Publish it.
- Try adding that minimal flow to the agent.
- If the minimal flow works, the issue is in the original flow configuration rather than the agent.
- After adding, configure the tool metadata.
- In the tool configuration pane, set a clear Name and Description.
- Review Inputs and Completion settings, then Save.
- Test from the agent side.
- In Test your agent or Preview, trigger the workflow and verify the tool call.
- If the tool is added but not invoked, refine the tool name, description, or agent instructions.
- In the new experience, use the activity trace to see which tool was invoked, the arguments passed, and the returned result.
A practical isolation path for this exact scenario is:
- First test a brand-new minimal Agent flow created from the starter template.
- If that also fails at Add and configure, the issue is likely not the flow logic itself.
- If it succeeds, compare the failing flows for missing Respond to the agent configuration, unpublished changes, async response settings, or excessive runtime.
The provided documentation does not include a specific cause for the generic "Something went wrong. Please try again. An unexpected server error occurred." message, but the supported diagnostic path is to validate the flow in the designer, confirm the required trigger/response pattern, ensure publication, and test with a minimal published agent flow.