web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / PVA adding characters ...
Copilot Studio
Unanswered

PVA adding characters to user response

(0) ShareShare
ReportReport
Posted on by

Newbie here so this may be obvious

 

I developed a chatbot using the power virtual agent in teams.  It's very simple. It asks for a single string and then passes that string to Power Automate to do a lookup.

 

When testing the bot the string was passed as entered and everything worked.  Once I published it the chatbot action passed the string with a series of escape characters before and after the entered string.  By escape characters I mean when I entered OPX-00000 i get "\r\n\r\n\r\n\r\nOPX-00000\r\n\r\n\r\n".

 

I also noticed that the user response "bubble" is much smaller than it was in testing

 

Any help greatly appreciated

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,513 Most Valuable Professional on at

    Those are carriage returns and line feeds. You can stip them out of the string in Power Automate.  YOu can use the function 

    decodeUriComponent('%0A') and 
    decodeUriComponent('%0D')
    to represent the \r and \n in a replace function.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 322

#2
Vish WR Profile Picture

Vish WR 240

#3
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 223 Super User 2026 Season 1

Last 30 days Overall leaderboard