Building and customizing solutions using Microsoft 365 Copilot APIs and tools
Hello Sonalika •,
Latency in Copilot Studio can come from multiple stages of the request pipeline, including knowledge retrieval, generative AI processing, topic orchestration, actions/flows, external connectors, and tool execution. The number and size of knowledge sources can impact retrieval time, while generative answers, Power Automate flows, external APIs, and custom tools can add additional delay. Response times vary depending on complexity, but simple queries are typically faster than requests that require multiple retrieval and reasoning steps.
To troubleshoot, review conversation diagnostics, test the agent with and without knowledge sources, actions, or tools enabled, and compare response times to isolate the component introducing latency. Monitoring individual execution steps through analytics, run history, and diagnostic logs can help identify bottlenecks. Optimizing knowledge sources, reducing unnecessary actions, and minimizing external dependencies are common approaches to improving response performance.