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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Sub-Agent in Copilot S...
Copilot Studio
Suggested Answer

Sub-Agent in Copilot Studio Interrupted by "Picked by GPT" During Database Search

(1) ShareShare
ReportReport
Posted on by 13

Hi everyone,

I'm currently building a unified agent experience in Copilot Studio, where I’ve connected several standalone agents (now acting as sub-agents) under a main agent. The routing works well—user queries are correctly directed to the appropriate sub-agent based on intent.

However, I’m facing a problem where, within the sub-agent, when it tries to perform a database search via a connector, the process gets interrupted and I see the message "Picked by GPT" instead of the expected connector response.


What I’ve Observed

  • The sub-agent was originally built as a standalone agent and worked fine on its own.
  • After connecting it to the main agent, it still routes correctly and starts processing.
  • But when it reaches the connector step (e.g., SQL or SharePoint), it gets overridden by GPT and doesn’t complete the search.
  • This behavior happens within the sub-agent, not during the handoff from the main agent.

 

What I Want to Achieve

  • I want to keep orchestration enabled in the sub-agent (so it can intelligently decide how to respond).
  • But I want to avoid infinite loops or GPT overriding the connector logic.
  • Ideally, once the sub-agent completes its task, it should return a final answer back to the main agent cleanly.

What I’ve Tried

  • Ensured the sub-agent has a clear topic flow and connector setup.
  • Verified that the connector works when tested independently.
  • Checked orchestration settings but still seeing GPT take over.

Questions

  1. How can I prevent GPT from interrupting the sub-agent’s connector actions while keeping orchestration active?
  2. Is there a way to force the sub-agent to return a final answer to the main agent without looping or fallback?
  3. Are there best practices for designing sub-agent exit flows in a unified agent setup?

Any insights, tips, or examples would be greatly appreciated!

Thanks in advance 🙏

Categories:
I have the same question (0)
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    2,172 Super User 2025 Season 2 on at
    hello :)
     
    thanks for the great explaination, probably you did it but it's not you'r detail : did you remove the "pass full context"  to sub agent ? i have infinite search loop when i keep it. did you disable it ? i found never was usefull to pass ful context, i prefere the master agent to chosose what to send to the child.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 270 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 181 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard