Hello everyone! I need very urgent help. I need to make a “live” chat humant-human. I created a workflow to chat between the ai agent and a customer, but once the issue is scalated, i need to make a chat between a human (MS Teams) and the native embedded chat. Due MS permissions, I am using power automate instead MS directly. For now i can send and retrieve messages from teams using HTTP requests, but I cannot “inject” the message from teams into the caht unless webhooks are used, but these messages cant be used directly into the webchat. Any suggestion to do a “live chat”?
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Have you looked into the Chat node? It works with the Chat Trigger to keep a session alive so you can push messages back into the embedded chat without external webhooks, youd basically loop between fetching from Teams and responding via the Chat node until the convo ends.
Hi @Ryutaro_Arimura what i would say that if you want to handle a task like that, instead of using MS teams , consider using a classic webhook PAIR with an AI agent and text classifier in the loop, the text classifier can define the outcome by using the AI agent’s conversation message, basically if that included “NEED A HUMAN” kind of thing then it can use a different webhook pair to continue the flow with the HUMAN cancelling the AI agent node.
the chat node + chat trigger combo that @achamm mentioned is the right direction. for the teams integration though, you might be overcomplicating it — instead of trying to bridge teams messages into the chat, consider a simpler flow: teams webhook → parse message → text classifier node (check if it contains ‘escalate’ or ‘human’ keyword) → if true, webhook to a separate teams channel for human agents, else feed to chat node. keeps teams and embedded chat separate, easier state management. you could also add a simple button workflow where the classifier suggests action, and an agent clicks to escalate.