Skip to main content

Notifications

Copilot Studio - Calling Actions from Copilot S...
Answered

http requests for my own backend

(0) ShareShare
ReportReport
Posted on by 23

Hello

 

What I am trying to do is this, within MS Teams (Teams is enabled in copilot)

 

The greeting "topic" exists and user gets a reply text.

From that point onwards, what I would like to do is to send all messages from the user to my backend which will act like a webhook and send responses back to the user

This way, I can implement my own models and not necessarily just be limited to chatGPT.

 

I tried creating a trigger but my backend URL never got any http request

itsvnkrj_0-1701937876175.png

 

 

So... what's the best way to do this? I searched this board and msteams learning, etc., but couldn't find a solution.

And, whatever messages I get on my backend, I will also need any unique ID (I guess it is the conversation ID or something), so that I can maintain the context on my backend

 

Thanks a ton, in advance for any help/guidance on the above

 

 

 

 

Categories:
  • Expiscornovus Profile Picture
    Expiscornovus 31,144 on at
    Re: http requests for my own backend

    Hi @itsvnkrj,

     

    Great to hear you got it working. Like mentioned in my previous reply, I haven't used this step before.

     

    I am pretty new to this feature as well. So don't apologise, we are learning together. 😁

  • Verified answer
    itsvnkrj Profile Picture
    itsvnkrj 23 on at
    Re: http requests for my own backend

    Duhhhhh

     

    I figured it out. Sorry for having asked this. Very new to Copilot. 

     

    I simply added a new TAB and added the variable back in as a message 🙂 

     

     

    itsvnkrj_0-1701958599835.png

     

  • itsvnkrj Profile Picture
    itsvnkrj 23 on at
    Re: http requests for my own backend

    Thanks @Expiscornovus 

     

    I figured out the part on receiving the messages on my backend (it is the "Fallback" part, where none of the existing topics match the user's message)

     

    And here, when I set the http request, I do get the data in my backend. I also see that i can set the response from the http response as a variable. avResponse in this case, which is also set as a global variable for all topics.

     

    Now, how do I just echo/print or show this response to the user? Simple question, right?

     

    I can't figure it out from neither from the documents nor from any of the other searches in this forum

     

    See below for the working example.

     

    itsvnkrj_0-1701957780083.png

     

    I did have a look at the power automate cloud flow: i can't figure out how to send a 1:1 chat message to a user 😞 . I see examples of sending messages in a teams chat, etc. though. But the power automate flow seems like a very long winded approach for a simple task!

  • Expiscornovus Profile Picture
    Expiscornovus 31,144 on at
    Re: http requests for my own backend

    Hi @itsvnkrj,

     

    Haven't tried this action before, so not entirely sure how you could troubleshoot this one.

     

    However, as a workaround I do know you can also send an HTTP request from a Power Automate cloud flow. You can use the Call an action step in your topic for this.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard

Featured topics