https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hi Retell AI Support,I'm using your Chat Agent and...
# ❓・ai-evy-support
f
@AI Evy Hi Retell AI Support, I'm using your Chat Agent and notice that agent responses don't preserve line breaks or formatting, even when explicitly instructed in the prompt. Product lists appear as continuous paragraphs, making them hard to read. Questions: 1. Does the chat widget support line breaks/newlines in responses? 2. Is there markdown or formatting support? 3. Any settings or workarounds to enable multi-line formatting? This is important for e-commerce where customers need scannable product lists. Thanks!
a
Thanks for tagging me @fiona98765. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available information, this is a known rendering limitation with the Retell Chat Widget [(1) ]() [(2) ]() . Answers to your questions: 1. **Line breaks/newlines**: The chat widget renders plain text and does not support line breaks or newlines in the display [(1) ]() . 2. **Markdown/formatting support**: The Retell chat widget does not support markdown or rich-text formatting . 3. **Workarounds**: There are currently no settings or workarounds to enable multi-line formatting in the chat widget display [(1) ]() [(2) ]() . **What's happening**: This is a rendering issue, not a prompt or LLM issue [(1) ]() . Your agent may be generating properly formatted responses with newlines and bullet points (which you can verify in webhooks or API responses) , but the chat widget UI collapses them into one paragraph . The nicely formatted bullets and newlines arrive as
\n
characters, but the UI renders them as continuous text . **Verification**: You can confirm your agent is generating proper formatting by checking the raw payload using the get-chat API endpoint immediately after the agent responds, or by inspecting the webhook data [(2) ]() . Unfortunately, this appears to be a current limitation of the chat widget's text rendering capabilities rather than something that can be resolved through prompt engineering or configuration changes.
​ To learn more, see the sources I considered: [[1] Chatbot formatting issue](https://discord.com/channels/1186424376300679209/1410337496922984518) [[2] Chat Agent : Formatting Issue: Agent Not Creating Vertical Lists / Line Breaks in Responses](https://discord.com/channels/1186424376300679209/1389801568467157042) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.