Formatting issues with ChatGPT and Google docs/Email sending

Welcome to the Make community!

I suggest avoid getting GPT to generate HTML-formatted content.

Instead, replace the newlines in plain text using something like this:

<p>{{replace(1.choices[].message.content; "/\n{2,}/g"; "</p><p>")}}</p>

Screenshot_2024-02-14_150208

And for tables, you can Text Aggregate each item into rows, and then manually type the HTML code for the table wrapper

Screenshot_2024-02-14_150251

4 Likes