As I wrote: mainly I want to create notes from Drafts. But I could also use this to automate journaling with Workflow templates (examples using Day One), or have meeting templates for different clients.
I have multiple actions in Drafts for sending data to apps, like “New To Do in Things” or “New Sheet in Ulysses”. I use these to create a new todo, a note or whatever in their target app. I want to use the same for Agenda. I know, I can link to notes, but as far as I know, there is no way to create new notes with an X-Callback URL. There should be a new URL scheme, something like this:
agenda://newNote?title=title_of_the_note&body=url_encoded_markdown_text&project=name_of_the_project&date=optional_date_of_the_note
This could call Agenda, which then could create a new note in the project set in the params with the title and markdown text. Also it could assign an optional date to the new note. It should return the URL or ID of the new note to the source app with x-success. This can be also useful on macOS too.
For example Workflow can receive this data on x-success and continue the workflow thats called Agenda with the ID of the new note (Things does this when you create new todos via URL schemes.). I could take that new note ID which Agenda returned to Workflow to automatically create an additional todo in Things with the Agenda note URL attached to the todo’s note or whatever.