Using Drafts with ChatGPT and Automation

Is this possible?

  1. I write (human only - no LLM)
  2. I send it to ChatGPT for critique
  3. Then I want both the original text and the LLM Improved version sent to a diff tool e.x. BeyondCompare (or any other tool)

In the diff tool, I usually make small changes to my own text based on differences, then I paste it back into Drafts for one more roundtrip.

Usually twice through the edit cycle is enough to really improve my writing.

Is automating steps 2 and 3 practical in Drafts? Has anyone done parts of this before?

Looking at the existing ChatGPT automations, I think I need something like: ChatGPT: Modify Selection | Drafts Directory - modified to send both the original text and the ChatGPT output to a Diff Tool.

Is this going in the right direction?

Yes, seems like it. Certainly a few ways around it. Your script could write the original and result from ChatGPT out to files and past those to a diff tool via shell script or AppleScript.