cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tim_w
Frequent Visitor

BUG! Sending copy/pasted text to PVA chatbot in Teams causes unexpected formatting issues

This bug still exists even though a previous topic has it incorrectly marked 'solved'.

 

++ I am using Power Virtual Agents (web), published to Teams.

 

PVA chatbots are designed to receive plain text user input. The expected behavior is for PVA to strip away any 'behind the scenes' formatting and only pass plain text.

 

Expecting the customer to manually strip hidden formatting by copy/pasting into a notepad is not an acceptable workaround. This is terrible UX and could not be realistically communicated to the average end user.

 

This is a bug and needs to be addressed by Microsoft.

 

Example:

I highlight and copy the text 'REQ693205' from a Teams message I sent earlier:

tim_w_0-1612291757356.png

 

I then paste this text "REQ693205' into teams and send the message to the chatbot:

tim_w_2-1612292009734.png

 

And even though it appears to have no formatting, the user response is saved as '\r\n\n\r\nREQ693205\n\n'

 

This also gets passed onto Power Automate and in my case breaks the flow as it is expecting "REQ693205"

tim_w_0-1612293481930.png

 

This is frustrating for both developers and end-users and is negatively impacting customer satisfaction and adoption.

 

This is unexpected, undocumented behavior that needs to be acknowledged as a bug so it can be fixed ASAP.

 

Thank you.

5 REPLIES 5
renatoromao
Super User
Super User

Hi @tim_w ,

 

Thanks for your feedback! 🙂

 

You can do a workaround replacing \r\n and \n\n values into the workflow (Power Automate).

Follow below some posts that can help you:

Solved: Replace Newline in Flow Expression - Power Platform Community (microsoft.com)

Solved: Split at \r\n\r\n - Power Platform Community (microsoft.com)


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português

Thanks @renatoromao for your response! I appreciate your help but I must emphasize that this is not an acceptable solution. It is not realistic to rely on a Power Automate function to correct each and every message that could possibly be copy/pasted. This would add substantial development overhead... so much that it negates much of the value gained by using PVA in the first place. The only way to guarantee consistent behavior is to correct the underlying bug.

nick_g
Frequent Visitor

Hi @tim_w @renatoromao 

Maybe try adding the following step(s) to your Power Automate flow to convert the PVA Input(s) to Plain Text

https://docs.microsoft.com/en-us/connectors/conversionservice/

Simply put the PVA Input required in this:

nick_g_0-1612446229451.png

 

nick_g_2-1612446331600.png

nick_g_3-1612446400340.png

 

Note this is a (preview) feature but seems to do the trick.

Cheers

tim_w
Frequent Visitor

Fantastic workaround, thank you! This should hold me over until the bug is fixed.

hhghjhhghjhg
New Member

jgghghjhgbhfk

Spoiler

@tim_w wrote:

This bug still exists even though a previous topic has it incorrectly marked 'solved'.

 

++ I am using Power Virtual Agents (web), published to Teams.

 

PVA chatbots are designed to receive plain text user input. The expected behavior is for PVA to strip away any 'behind the scenes' formatting and only pass plain text.

 

Expecting the customer to manually strip hidden formatting by copy/pasting into a notepad is not an acceptable workaround. This is terrible UX and could not be realistically communicated to the average end user.

 

This is a bug and needs to be addressed by Microsoft.

 

Example:

I highlight and copy the text 'REQ693205' from a Teams message I sent earlier:

tim_w_0-1612291757356.png

 

I then paste this text "REQ693205' into teams and send the message to the chatbot:

tim_w_2-1612292009734.png

 

And even though it appears to have no formatting, the user response is saved as '\r\n\n\r\nREQ693205\n\n'

 

This also gets passed onto Power Automate and in my case breaks the flow as it is expecting "REQ693205"

tim_w_0-1612293481930.png

 

This is frustrating for both developers and end-users and is negatively impacting customer satisfaction and adoption.

 

This is unexpected, undocumented behavior that needs to be acknowledged as a bug so it can be fixed ASAP.

 

Thank you.


Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Center-of-Excellence-Starter-Kit-cropped 768x460.png

The Total Economic Impact™ of Power Virtual Agents

Read this 2021 commissioned study, conducted by Forrester Consulting.

Top Solution Authors
Top Kudoed Authors
Users online (1,482)