Hi all,
I have a Power Virtual Agent chatbot in Teams, and got a request to enable the chatbot to send an email on behalf of the user to IT department (when the chatbot cannot answer the user's question), and the email body need to include the chatbot conversation scrips.
1) I am able to send email using my email, but not able to send that email (Send from, on behalf) the user's email (when other user use the bot, the email still send from my email address). I know there is variable available "UserDisplayName", but I don't have the user's email in the variable. Instead of asking the users to input their email address, is there a way we can get the user's email from somewhere in Teams or other database? (the user already login Teams)
2) how can I get the conversation scrips to be passed as a variable as the email body? I know we can see the conversation scrips from Analytics->Sessions, but it is manually download. how can we get the topics and scrips as variables that we can use in the session when we need to send email?
Thanks a lot for your helps and suggestions.