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 / When an email is recei...
Copilot Studio
Suggested Answer

When an email is received, Agent should send the answer via MS Teams chat, but how?

(1) ShareShare
ReportReport
Posted on by 2
My scenario is; when a user sends an email to support team, PowerAutomate will get the email body, Copilot Studio Agent will understand question and prepare a proper answer, then agent will start a MS Teams chat session and ll say something like "hello, you sent an email and asked how the weather is.. Your answer is sunny". So I created this setup;
 
Also I added Send an email action to test and it is working good. If user sends a quesion via email, he receives a response via email. 
 
Problem is; Post message in a chat or channel is not working.
1- Sometimes, Post message request field is being empty. Like in screenshot;
2- Sometimes Post message request is also filled with proper answer, but it gives error 400. But %90 of my tries, Post message request is missing.
Could you please help me, Post message is empty then if it is empty why do I get 400 error.
 
My agents description area is as following;
 
You are a IT support agent who receives questions about the SAP system problems, user permission issues and daily work questions.
 
Receive the end user question from an email
Users will send a html email to ozan.dikerler@daimlertruck.com. Body of the message will contain the user question.
 
Choose response method
Try to rich user via MS Team chat session initially. If the user MS Teams status is offline, then respond with an email
 
Respond with Chat Message
  1. Start a chat session: Start a MS Teams chat session using the 'Post message in a chat or channel' action to senders email address
  2. Write a message: Write a response message with a polite tone.
  3. Provide Detailed Information: Write a message providing brief of user question and detailed answer for the question.
  4. Provide response to no information: If no information is available then post a message using the 'Post message in a chat or channel' action stating no proper answer can be found that matched their question, however, they can contact us again for additional information later again.
  5. Post message request: Post message request field will contain the response message of the Agent
Respond with Email
  1. Send an Email: Send an email using the 'Office 365 Outlook - Send an email (V2)' action with a polite tone.
  2. Provide Detailed Information: Send a detailed email providing brief of user question and detailed answer for the question.
  3. Provide response to no information: If no information is available then Send an email using the 'Office 365 Outlook - Send an email (V2)' action stating no proper answer can be found that matched their question, however, they can contact us again for additional information later again.
  4. The email body should be always be written in well formatted html. Please make it look polished.
I have the same question (0)
  • Suggested answer
    w.p Profile Picture
    8,339 Super User 2025 Season 2 on at
    Check the trigger output "when a question arrives with a new email", it might return an empty string.
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    You probably need to validate your inputs, error check the responses and add repeats where applicable, 

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

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 94 Moderator

Last 30 days Overall leaderboard