I have an HTML document I am trying to paste into the body of an HTML document.
I also have it in markdown if needed.
My relevant flow looks like so (generate newsletter using LLM, convert to markdown/HTML, dump to google doc)
My update step looks like so (insets/body/at end/ HTML)
But the doc output is not formatted.
How to properly paste html to doc in n8n?
Despite how this might look, Google Docs doesn't support HTML for editing content. You should change your approach.
One option is to use Google Drive's file conversion capabilities, specifically to convert an HTML file to a Google Doc file format.
Another option is to create the content using the features supported by the Google Docs API.
Updating an existing Google Doc might be tricky because of how the position of the elements is determined. A typical pattern is to use placeholders and replace them with the updated content, but there are other options.