ChatGPT message format not preserved in 365 Email

Module ChatGPT outputs a message that has paragraphs and multiple lines however when this message is referenced in the body of a 365 Email it appears as a single string with all blank lines, line feeds removed.

----> ChatGPT ----> Microsoft 365 Email (create and send)

How can I preserve the ChatGPT message formatting in the 365 Email body?

Scenario -[only referencing last 2 modules]

ChatGPT message

Microsoft 365 Email

Actual Outlook Email

1 Like

Hi @Oldmanvn

Welcome to community!

Please specify chatGpt to give result in HTML formate. You can specify this in the prompt.
That will give GPT out as HTML then you can directly map to email.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support
Visit us here
Youtube Channel

2 Likes

Welcome to the Make community!

The Gmail “Send an Email” module sends emails as “HTML” content type. That means, to insert a newline, you’ll need to either use

  • two <br> tags, like this <br><br>, or

  • wrap each line in a paragraph tag:
    <p>this is paragraph one</p><p>this is paragraph two</p>

To convert plain text to HTML (by adding paragraph tags), see the following for more information:

2 Likes

Thanks very much, it now works for me - apart from minor one tag.

My remaining issue is a trailing <\p> tag remains at the end of each line in the actual Outlook Email message received. The scenario module data looks ok. Appreciate if you could give a quick look.

I used your Claude/GPT new line link for detailed instructions.

Text Parser instructions

365 Email body content (Body Content Type = HTML)

Actual Outlook Email (Note: <\p> appended to end of each new line)

All ok now. I incorrectly used tag paragraph tag <\p> instead of

.

No problem, glad I could help!

1. If you have a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

others can save time when catching up with the latest activity here, and

  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

2 Likes

This worked also. I just had to instruct ChatGPT to not include
image

Worked GPT 4 but not GPT 3.5