Building and customizing solutions using Microsoft 365 Copilot APIs and tools
Hi Rutuja,
What you are seeing may be related to how the agent is orchestrating the response rather than the Generative Answers node itself generating the same answer twice.
If the agent is using generative orchestration, it can select multiple topics, tools, or knowledge sources for a single user request. Microsoft documents that generative orchestration can use multiple topics/tools/knowledge sources and then generate the final response from the information returned by them.
I would first check whether the same user query is being handled by both the topic's Generative Answers node and the agent-level generative orchestration/knowledge response.
As a troubleshooting step, try capturing the Generative Answers result in a variable instead of immediately sending it as a message. Microsoft documents that the Send a message option can be cleared so the generated answer is stored and then explicitly rendered later in the topic. This can help determine whether the duplicate is coming from the node itself or from another orchestration path.
Also check the activity/trace for the conversation to see whether two topics/knowledge sources are being invoked for the same turn.
If you can share the agent's orchestration setting and the activity/trace showing the two responses, it should be possible to identify which component is producing the second response.