Create me a wordpress plugin which is connected to ChatGPT via API and does PROMPTS directly in wordpress.
Bezahlt bei Lieferung
I have a wordpress site with a lot of articles that I have published.
To make these articles more unique, I want to rewrite them with Chat GPT.
Instead of copying everything one by one and pasting it on the website with ChatGPT itself and then reformatting it, I want to do the whole process directly in my wordpress site. Formatting needs to be respected as well. If a section is an H2 heading, I want it to be an H2 heading again after the rewrite, etc.
I also want to be able to define my PROMPTS myself.
So that ChatGPT can execute my PROMPTS better and the results are simply better, I would like to provide the text passages that are to be rewritten with a start and end shortcode. The shorter a text, the better it can be rewritten.
[Start_Rewrite] As we get older, our energy level decreases. This also applies to cellular energy, which is produced by the cell's powerhouse, the mitochondria. Cellular energy enables our bodies to perform important functions and move our muscles. Unfortunately, mitochondrial function declines as we age, reducing cellular energy and leading to muscle fatigue. However, there are several strategies to promote muscle recovery. One of the simplest is to take supplements to boost mitochondria. [End_Rewrite]
[Start_Rewrite] H2 - Energy for our muscles [End_Rewrite.]
[Start_Rewrite] Everything is made of energy; it is the basic building block of all matter. Cellular energy is a specific type of energy produced by mitochondria, which convert glucose and oxygen into adenosine triphosphate (ATP), a process known as respiration. This process is so important that mitochondria can occupy up to 25% of the cell volume . [End_Rewrite]
After I have added the shortcodes to my existing text, I just want to click on a button that will rewrite the text with the shortcodes as I specify in my PROMPTS.
See also the picture in the attachment.