AI action to clean up raw text

I use transcription a lot for text input and capture and then refine it in a separate AI ‘rewriting’ app with a specific prompt to remove non words and repetitions and punctuate in short sentences and paragraphs.

Dictated text is often the opposite of this! And the transcription accuracy that Drafts can achieve using the Apple inbuilt system is OK rather than good.

Is there a Drafts action which can do this kind of AI clean up edit, perhaps making use of my OpenAI or Anthropic account and API?

What has worked well for others who may use a similar workflow?

Start on this page to get set up with actions for the different popular AI services.

Each of the guides has example actions that should get you started. For example, the modify selection action lets you enter an arbitrary prompt to modify text in the editor…or the translate selection has a baked in prompt to do translation.