Hi everyone,
I’m working on embedding my Botpress bot into a WordPress site using the embedded layout.
I have one issue with line breaks:
In the text cards and raw input cards, I manually add line breaks (by pressing Enter) when editing the flow in Botpress Studio.
It looks perfect in the Studio preview.
👉 But when I embed the bot on my website, the bot sends the messages as a single block of text, ignoring most of the line breaks.
What’s strange is that sometimes line breaks are preserved, and other times they’re completely ignored — even though I write them the same way.
I’ve tried using \n,
, and actual newlines in the editor, but the behavior remains inconsistent.
Has anyone experienced this before?
Is there a known fix, or a workaround to ensure line breaks display properly on the website for both text and raw input cards?
Thanks a lot in advance for your help! 🙏