How do I write a file to Google Drive with .md extention?

I am working on an automation to save ChatGPT generated MD formatted text to Google Drive as a markdown file.

I use the “Create a file from text” google drive module. Although I give the file extension as .md in the file name field, it added a .txt at the end in the drive folder.

This is similar to this post

But the difference is I am Creating a file from scratch. How do I achieve what I want? The solution in the attached thread talks about using the “Map” option but I don’t understand how to use it in my case.

Any help would be really appreciated.

You could create the file, then download it, and reupload it with the file extension you want.

Thanks. That worked. It costs me a little more operations, but get the work done. Thanks again for the help.

I am literally working on a very similar scenario, making md files for my obsidian vault. I am having the following issue


What APIs and Scopes did you add to your google connection?
I am able to get the files with the google drive integration earlier in the scenario, so it is something with the making of new files.