How do I get the text generator plugin to reformat my notes and add properties, tags based on the contents of the note?

I want a template which I can insert in any pre-existing note which can send an API request to reformat the note in proper markdown without changing the contents of the notes and add properties.