Thanks, I’ve got it working. Here’s my shortcut in case anyone else is interested (thanks to the Drafts example from docs):
The trickiest part was getting those “repeat item” magic variables in there. The iOS shortcuts interface can be pretty confusing! And I’m a software dev…
I then created an automation on the trigger When “Drafts” is closed that runs the action “Run shortcut” specifying this shortcut.
As a result, as soon as I finish my note and go back to hole screen, it pushes it to my omnifocus inbox.
My favourite part is I use iOS accessibility settings to make it so that triple tapping the back of my phone opens up a dictation note!