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
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
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. 😁
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 🙂
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.
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!
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.