How to get an output from ChatGPT to a Google Doc with pretty formatting instead of markdown

Hello Make Community,

I currently have an OpenAI/ChatGPT module for “Message an Assistant”.

This creates an output as expected, which feeds into another module: Google Drive > Upload a File.

This Google Drive module maps to a folder, specifies a file name, and uses the data from the OpenAI/ChatGPT module.

The target google file type is: application/vnd.google-apps.document

Overall, this is working really well.

My issue is that the Google Doc that is created is filled with Markdown formatting.

Lots of # and * everywhere, which doesn’t impact the overall core content, but does not actually look very nice to the human eye. So, when we review the docs, it’s a bit messy.

Is there a way to get this Google Doc created on Google Drive, but in a way that uses more visual formatting (not Markdown)? This way it’s nicely formatted with proper headlines, etc.

I was thinking maybe I have OpenAI/ChatGPT export the content in HTML, but wasn’t sure how to feed that into a Google Drive Upload a File module to actually interpret the HTML as proper formatting.

Any assistance is greatly appreciated. Thanks in advance!

To do this, you can try using the Markdown “Markdown to HTML” module —

Transforms Markdown into HTML

For more information about the Markdown to HTML module and Markdown app, see the corresponding Integrations page and the Help Centre documentation.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

I’m also working on something similar, the Markdown to HTML works, and you can also create a custom GPT assistant and connect it to your workflow with specific design/branding details.

Glad I could help you with “How to get an output from ChatGPT to a Google Doc with pretty formatting instead of markdown

1. If anyone has 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 as newer questions are displayed higher on the forum’s “new” page.

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!

Hope this helps! Let me know if there are any further questions or issues.

@samliew