How to send formatted content to Google Docs?

My goal is to send content from any of the modules to a Google Doc, but I want it to keep formatting. The Google Docs module says “This parameter supports HTML format.”, but when I wrap content within HTML tags, it doesn’t show up like I’d expect within the new Google Doc.

Any ideas on how I can get the Google Doc content to format the way I’m hoping for?

Hey @kwp

Welcome to the Make community!

you should write your content with correct document type declaration (<!DOCTYPE html> ) and HTML tags

like this image :
Screenshot 2023-12-29 232342

3 Likes

Hii Kwp,
In order to do this,
1.)You can add a chat gpt module after the module from where you are getting the content.
2.)Now you have to add this prompt “Please convert my whole content into HTML format” to chat gpt module.
3.)Now the HTML content which is being returned by chat gpt, that you can directly store in google doc.Because google docs have the ability to format any html content into proper format which includes headings,sub headings etc.

I hope i was able to help you,thanks.

1 Like

Welcome to the Make community!

The bare minimum you need is a <body> tag at the start, for the content to be recognised as HTML.

Screenshot_2023-12-30_151226

Screenshot_2023-12-30_151219

Otherwise the content will be treated as raw/plain text.

2 Likes