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 / Flow is sending timeou...
Copilot Studio
Suggested Answer

Flow is sending timeout error when calling Copilot studio

(1) ShareShare
ReportReport
Posted on by 8
Hello,
I have created a flow which is as below but as you all can see getting error message in "Respond to the agent" trigger. Error message is "Action 'Respond_to_the_agent' failed: The execution of template action 'Respond_to_the_agent' is failed: the client application timed out waiting for a response from service. This means that workflow took longer to respond than the alloted timeout value. The connection maintained between the client application and service will be closed and client application will get an HTTP status code 504 Gateway Timeout. "
 
 
I tried calling "Asynchronous response" by going into setting of Respond to agent trigger but it was throwing an error. Concurrency control also doesn't help and the flow  execution is so slow that user has to wait approx 2 min to get the response or will get timeout error.
 
Connected agent does send the response but there is np way to store that response in a variable and use it. Same goes with child agent.
 
Can I one tell me how to fix these problems?
 

I have the same question (1)
  • Suggested answer
    Valantis Profile Picture
    698 on at

    Your "Execute Agent and wait" action is taking around 110 seconds, which is exceeding the 100-second timeout before you respond to the agent. 

    1. try this:

    2. Delete the Delay action – it's wasting 10 seconds for no reason

    3. Move "Execute Agent and wait" AFTER the "Respond to the agent" action – this way you respond immediately, and the child agent runs in the background

    4. Make sure "Asynchronous response" is turned OFF in the Respond to the agent settings (check the Networking tab)

    This gets the calling agent a response in under 2 seconds instead of waiting 2 minutes. The child agent keeps running in the background, and you can still capture its output in a variable if needed.

     

    Give this a try and let me know how it goes.


       

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
Valantis Profile Picture

Valantis 430

#2
chiaraalina Profile Picture

chiaraalina 130

#3
S-Venkadesh Profile Picture

S-Venkadesh 68 Moderator

Last 30 days Overall leaderboard