Sorry for the late reply. I am using the response from domain.yml and using the webchat as a frontend. I figured a way how to format it nicely in the end. I just used \n\n instead of just one \n to have the response across multiple lines like I used to have it when I was running it in the terminal.