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 / Line breaks for bot me...
Copilot Studio
Unanswered

Line breaks for bot messages from output

(0) ShareShare
ReportReport
Posted on by 293

Hello,

In our chatbot we have a Power Automate Flow that passes a number of variables into a string value for the output. These are announcements that have a subject and a description field, that we pass through compose to the output for the message for the bot to display. There can be more than one announcement. We would like to format it so there are spaces between the announcements. This is currently what we get:
Bot Announcements.jpg
 We have tried:
1) Creating spaces in the variables themselves, which had no effect - it seems these are stripped out when the output is sent to the bot. 
2) Markdown (seems to have worked sometime in 2020 according to forum posts, but now only seems to work for images and videos)
3) HTML tags (break) - seems to have worked sometime in 2020 according to forum posts but no longer does

4) encoding URIs (you can see them showing in the picture above) - as per this post: https://powerusers.microsoft.com/t5/General/Power-Virtual-Agents-Rendering-line-breaks-on-bot-messages/td-p/590488 

 

Is there any way to do this successfully in 2021? Thanks!

Categories:
I have the same question (0)
  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @DS2 ,

     

    Use markdown to do it, it'll work perfectly in this situation.

    https://docs.microsoft.com/en-us/power-automate/approvals-markdown-support

     

    Look at the limitations if you are using on Teams or something like that, but Markdown lists will work perfectly for you.

  • DS2 Profile Picture
    293 on at

    Thank you, @renatoromao - it is better, but still can't get a line break into the output (maybe I'm doing something wrong?). As we use teams we are limited to Numbered Lists, Nested Numbered Lists or Forced Line Breaks. Using the example 2 in the Markdown doc does not result in a line break:
    This is line 1.(space, space) Line 2 has extra space before it.
    Here is our chatbot output now:
    Announcement1.jpg

    And here is what we've done in Power Automate:
    Announcement2.jpg

    Note that I've tried all manner of spaces, which did not work and also tried the numbered lists, but it would not do consecutive numbers. E.g. each announcement had a "1" before it, rather than 1, 2, 3 etc. 
    So markdown for us is kind of working, but not fully for sure. What's your experience with using markdown in PVA, has it worked properly for you? Thanks again!

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @DS2 ,

     

    I tested on my side and that is not working, a bad experience, unfortunately.

    Recommend you to use Nested lists: Use markdown to format Power Automate approvals - Power Automate | Microsoft Docs

     

    Basically you will do:

    1. Subject 

    - Description

     

    2. Subject

    - Descrption 2

    - Another field 3

  • DS2 Profile Picture
    293 on at

    Thank you @renatoromao - I'm still seeing the weird behaviour where the numbered nested list does not show consecutive numbers. And, still can't get a blank space between announcements:
    Announcement1.jpg 

    Announcement2.jpg

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

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard