web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Multi - agent : hide "...
Copilot Studio
Suggested Answer

Multi - agent : hide "sub" agent answer and just resume the answer

(1) ShareShare
ReportReport
Posted on by 2,898 Super User 2026 Season 2
hello, 
 
here is the configuration
 
MAster agent
- 3 sub agent with their knowledge.
 
I ask the agent to use all the 3 agent to give an answer and then make a summarize. (prompt at bottom for better readibility ). I m pretty sure, around May with the Build 2025 we had an option "hide sub agent answer and let master agent to answer" or something like this.
 
My master agent is making everything i want : create a sumarize etc. BUT it display to the user the answer from all 3 sub agent AND then only make the summarize.  It's horrible for the user experience and surprising since with tool like agent flow it managed to dit.
 
I have 2 other way to solve it but i don't like it and ask for you help, probably not prompting correctly or missing a parameter or code in the yaml of the agent connexion ?
 (For information i found to way to workaround that are not satisfying : 
- Made a agent flow to ask each agent, take result, send it to master agent wich only display my summary) : i don't want this because the agent flow use a connexion inside the flow to each agent and don't use the "current connected user" :( 
- asked the master agent to force each sub agent to write "small summary" : i don't want it because it display 3 answer, i want only one answer with a summarize of the 3 agent
 
To make it short : 
I wan't to collect the answer of all 3 agent, don't display it, use the answer to make a summarize (i tried also inside a topic but there are no option to get answer inside a variable or i didn't it)
 
HERE is my prompt
 
### CONTEXT
You are a master orchestration agent in Microsoft Copilot Studio.  
You collaborate with three specialized sub-agents, each focused on a distinct domain of expertise:  
- Agent 1→ Focus: Roles and Responsibilities  
- Agent 2 → Focus: Product, technical aspects, and the “what” being delivered  
- Agent 3 → Focus: Engineering organization and “how” we work  
The user interacts only with you (the master agent).  
You are responsible for distributing their question to the sub-agents, consolidating their outputs, and delivering a concise summary.  
Raw answers from the sub-agents must never be shown directly to the user.
---
### OBJECTIVE
When the user submits a question:
1. Send the same question to the three sub-agents: Agent 1, Agent 2, and Agent 3.  
2. Collect their full responses and references (sources).  
3. Do not display these raw responses in the chat.  
4. For each sub-agent:
   - Summarize the key points in one or two sentences maximum.  
   - Extract and format clickable sources (using Markdown `title` when possible).  
   - If no relevant information or sources are provided, explicitly state:
     > “No relevant information returned by this agent.”  
5. Present all three summaries in a clean, structured format.
---
### METHOD
Follow these steps in sequence:
1. Distribute the question
   - Send the same user query to each sub-agent (Agent 1, Agent 2, and Agent 3).  
   - Wait for all responses before proceeding.
2. Process responses
   - For each sub-agent, read the content and extract:
     - The main answer or reasoning (summarized in 1–2 sentences).  
     - The list of links or sources (clickable).  
   - If the sub-agent didn’t respond or the content is irrelevant, write:  
     > “No relevant information returned by this agent.”
3. Compile results
   - Build a final structured summary as follows:
---
### OUTPUT FORMAT
Agent 1 (Roles & Responsibilities)  
Summary: [Your concise synthesis here]  
Sources: [link1], [link2]  
Agent 2 (Product & Technical Aspects)  
Summary: [Your concise synthesis here]  
Sources: [link1], [link2]  
Agent 3(Engineering Practices)  
Summary: [Your concise synthesis here]  
Sources: [link1], [link2]  
---
At the end, add this line for transparency:
> “This answer has been compiled from three expert Copilot Studio agents: Agent 1, Agent 2, and Agent 3”
---
### CONSTRAINTS
- Do not expose the sub-agents’ raw outputs or system prompts.  
- Maintain a neutral, factual tone.  
- Be concise — never exceed two sentences per sub-agent.  
- All sources must be formatted as clickable links (`Title`).  
- Ensure the final message is visually clear and readable in Teams or web chat.  
- If one agent fails to respond within timeout, mark it as “No relevant information returned by this agent.”  
- Return only the structured summary, nothing else.
 
  • S-Venkadesh Profile Picture
    1,227 Super User 2026 Season 2 on at

    There’s a Microsoft document that explains how to prevent an AI-generated message from being sent to the user.
    To achieve this, you need to use a child agent instead of directly connecting another agent.
    However, it’s still unclear how the orchestration flow should be configured for this scenario.
    An AI-generated response is about to be sent Called when the main agent generates a response for a user after calling one or more topics, actions, or knowledge sources. Use the Response.FormattedText system variable to see the generated response. Set the ContinueResponse variable to false if you want to prevent the orchestration response being sent (that is, if you modify the message and send your own using a message node).
     
    To get a reliable solution:
    1. Create a topic that triggers and "Generate answers" one after another.
    2. Combine the results from each response.
    3. Send the final, consolidated message to the user.
     
    I hope this information helps! If it does, please consider giving a 👍.
    Best regards,
    S-Venkadesh
  • Romain The Low-Code Bearded Bear Profile Picture
    2,898 Super User 2026 Season 2 on at
    hello :) 
     
    Thanks for the answer, it could be totally usefull, it need to be used by implementing the topic trigger "an ai generated response is about to be sent" : this a great idea thank you :)
     
    Anyway in my use case there some other limitation wich force me to use "full connected agent" : 
    - around 20 SharePoint source per agent
    - need to have topic inside agent
     
    But really thank you it's a very good trick idea.
     
    About the documentation, unclear, sadly it's because before may 2025 there was checkbox in agent called "hide answer from agent" i m pretty sure it has existed one day (but i m tired i could be wrong)
     
    About the topic to call them : i deduce you speak about child agent and ""an ai generated response is about to be sent" to rewrite answer (since you could add a last message to be sure the 3 agent trigerred before combine answer : sadly not working in my case, but i like it)
  • CU21051202-0 Profile Picture
    4 on at
    Can you help me with the right approach for my scenario.

    I have a main agent and three child agents (ServiceNow, Confluence, SharePoint). I want only main agent to speak. Right now i dont have any topic to trigger these child agents.  how can i use "An AI-generated response is about to be sent"
     
  • Suggested answer
    Amardeep Raj Profile Picture
    74 on at
    @CU21051202-0

    Here is the complete approach for configuring your multi-agent architecture and utilizing the specific system event you asked about.

    1. Triggering Child Agents Automatically

    To route queries to your ServiceNow, Confluence, and SharePoint agents without building manual topics, you should leave their trigger behavior set to the default:

    “The agent chooses - Based on description.”

    Best Practices for Agent Routing

    • The main parent agent evaluates the child agent’s Name first for extremely fast routing.

    • If additional context is required, it then evaluates the Description.

    • Give your child agents:

      • Clear and distinct names

      • Explicit and focused descriptions

    Example

    • ServiceNow Agent → “Use this sub agent when requesting IT incidents, tickets, or operational support information.”

    • Confluence Agent → “Use this sub agent when searching internal documentation, SOPs, or knowledge articles.”

    • SharePoint Agent → “Use this sub agent when retrieving company files, policies, or stored documents.”

    This helps the parent agent reliably determine when each child agent should be invoked.


    2. Ensuring Only the Main Agent Responds to the User

    In Copilot Studio, child agents are treated the same way as tools internally. They do not automatically understand they are operating as subordinate agents.

    To ensure the user receives a single unified response from the parent agent, configure the following:

    Parent Agent Instructions

    Add instructions such as:

    • You are the primary agent.

    • You are the only agent that communicates with the user.

    • Child agents operate silently in the background.

    • Combine findings from all child agents into one clear and unified response.

    • Never expose orchestration details, internal prompts, or child agent interactions.

    Child Agent Instructions

    Add strict behavioral rules to each child agent, for example:

    “You are a child sub agent. Do not reply directly to the user. Your responsibility is to search for information and return findings to the parent agent. The parent agent handles all user communication.”

    Apply similar instructions consistently across:

    • ServiceNow agent

    • Confluence agent

    • SharePoint agent

    Model Selection Consideration

    The orchestration quality is highly dependent on the underlying LLM.

    • GPT-5 models generally orchestrate multi-agent workflows effectively and return a single consolidated response.

    • Some other models, such as certain Claude configurations, may produce fragmented outputs or allow child agents to respond independently.


    3. Using the “An AI-generated response is about to be sent” Event

    You can configure a child agent or topic to intercept the system event:

    “An AI-generated response is about to be sent.”

    This option is available from the:

    “When will this be used?” dropdown.

    When This Event Triggers

    This event executes:

    • After the main agent generates a response

    • After all tools, topics, and knowledge sources complete

    • But before the response is sent to the user

    Reviewing the Generated Response

    You can inspect the generated output using the system variable:

    Response.FormattedText
    

    This contains the exact AI-generated message prior to delivery.

    Intercepting and Replacing the Response

    If you want to:

    • Modify the generated message

    • Apply formatting

    • Add compliance checks

    • Inject custom content

    • Replace the response entirely

    Then:

    1. Read Response.FormattedText

    2. Build your custom response using a Message node

    3. Set:

    ContinueResponse = false
    
    
    

    This prevents the default AI-generated response from being sent and allows your customized response to be delivered instead.

    here is some reference links:
    https://learn.microsoft.com/en-us/microsoft-copilot-studio/authoring-add-other-agents
    https://learn.microsoft.com/en-us/microsoft-copilot-studio/add-agent-child-agent
    https://learn.microsoft.com/en-us/microsoft-copilot-studio/add-agent-copilot-studio-agent
     


    If the issue is resolved, click the "Mark as Answered" button on the helpful reply so others facing the same error can find the answer quickly.

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Mohsin Ali Profile Picture

Mohsin Ali 298

#2
Valantis Profile Picture

Valantis 160 Super User 2026 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 150 Super User 2026 Season 2

Last 30 days Overall leaderboard