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 / Topics interacting wit...
Copilot Studio
Unanswered

Topics interacting with long running HTTP services

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello! I'm a newcomer to Copilot Studio and have a question about something I'm not able to do. I have created a topic, and added an HTTP request action to interact with an external API. This API might be relatively long running. First question is: can I show to the user a nice message saying that their request is being managed? Second question: I expect this might cause a timeout; is there a way to "kind of" subscribe to a postback? I hope the need is clear, and happy to hear about different approaches if this is not well thought for Copilot Studio.

Thanks in advance, 

p.

Categories:
I have the same question (0)
  • Verified answer
    remidyon Profile Picture
    on at

    Hi @paolt 

    It is always tricky to call an API from copilot studio if that API can run for a long time. Best practice is to keep the HTTP call as fast as possible. You can tell the user that the action might take a while before returning a value but if that last more than a few minutes your users are not going to wait.

    Depending what your API is doing and your use case you could call your API from a power automate flow asynchronously (ie: you call the power automate flow which will return a value directly to your copilot and then call the API - this way the process is running in the back).

    Of course that depends on your use case: can you share what this API is doing?

     

  • cchannon Profile Picture
    4,702 Moderator on at

    Does your API return a 202 that will then let you move on and check in periodically on progress? If so, I would call the API, upon getting a 202 I would send a message to the user saying "working it" or something like that, then invoke a Power Automate flow that can run asynchronously in the background, polling the API until the response is ready. The Power Automate flow can send back a response at any time to your Copilot, at which point it can provide a response to the user. But in the meantime your user isn't stuck wondering whether things are working or not, and you aren't risking a timeout in the app.

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 265 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard