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 / Workflow, "When an age...
Copilot Studio
Answered

Workflow, "When an agent calls the flow", gives error

(1) ShareShare
ReportReport
Posted on by 7
When I create a new workflow in Copilot Studio, and I want to use the "When an agent calls the flow" trigger. I get the following error that says that I need to use a connection for this action before publishing. This also happens in new workflows I create but only for this specific trigger. 
Schermafbeelding ...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,905 Super User 2026 Season 1 on at
     
    This appears to be a connection-reference issue with the Copilot Studio agent-flow trigger.
    The “When an agent calls the flow” trigger should be valid for agent flows, provided the flow also has “Respond to the agent,” is a solution flow, and is in the same environment as the agent.
     
    I would first open the flow directly in Power Automate and check the trigger/connection status. If no missing connection is shown, try creating the flow from inside Copilot Studio using New agent flow, or use Save as in Power Automate and add the copied flow back to the agent.
     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    SpongYe Power Platform Enthusiast [LinkedIn] | [Youtube| [My blog]

     

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my blog [@SpongYe] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • AS-02061149-0 Profile Picture
    7 on at
    Hi @SpongYe, 
    thank you for your response 
    I published the flow without errors in Power Automate 
    The error persisted inside Copilot Studio, but when opening Copilot Studio the next day the error inside the flow disappeared.
    I assume restarting Copilot Studio was the key here
    Have a nice day !

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 249

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 180 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 153

Last 30 days Overall leaderboard