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

Flow is sending timeout error when calling Copilot studio

(1) ShareShare
ReportReport
Posted on by 19
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
    1,514 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.


       
  • SM-22111655-0 Profile Picture
    19 on at
     
    I tried as you mentioned above but got the below error:

     
     
     
    Let me know how to fix this error or any alternative way.
  • Suggested answer
    Valantis Profile Picture
    1,514 on at
     
    Lets try this:

    1. Keep "Respond to the agent" at the top (right after the trigger) 

    2. Click on the "Respond to the agent" Remove ALL references to Compose, Execute Agent, or any steps that come after

    3. Change the response text to something like: "testing message"

    This fixes both errors - no timeout because you respond instantly, no InvalidTemplate because you're not referencing future steps.

    Step 2: Deliver the Results

    After "Respond to the agent", keep your Execute Agent and Compose steps, then add one of these:


    • Send an email (V2): Email the Compose output to the user or Post message in Teams: Send the result to the user's Teams chat

    •  
     
     
    i hope this helps. if that doesnt work please write me. what you trying to achieve i will create it then and share with you the steps. have a nice day.
  • Valantis Profile Picture
    1,514 on at
     

    Just wanted to check in and see if everything is working now. If you still need any help, feel free to let me know.

    Also, if the issue is resolved, it would be great if you could mark the answer as solved so others with the same question can find it easily.

     

    Thanks and have a great day!

  • SM-22111655-0 Profile Picture
    19 on at
    Hi @Valantis
     
    Appologise but issue is not resolved.
     
    I tried all whatever you suggested but unfortunately getting error as Response should be at the end and that is also not working and timeout error is still there.
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 297

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
Arild Aarnes Profile Picture

Arild Aarnes 51 Super User 2026 Season 1

Last 30 days Overall leaderboard