Drafts - Next in the process of getting notes into Notion

Following on from Part 1 in this series, the next step in this workflow is THE app to have on iOS. That is Drafts.

Once I have converted my hand written scribbles to text I copy that text into Drafts. From here I ensure this has a clear title, normally the name of the meeting, then from there I can review the text, makes sure this all makes sense, it’s in clear paragraphs and that all the actions I have are clear with the @ at the start. Also let’s me review the actions as I may think some others are needed.

Now this is there the main processing can start via the powerful tagging and actions in drafts come into their own.

I have two actions I can use, one is called Meeting Notes, this is a simple action that just processes the Draft into Notion via Zapier and a webhook. I use this one when processing simple meeting notes that have no actions.

Once you have the webhook setup in Zapier then all you need is this code below, this will push the note into Notion. Can’t really put my Zap up here as all Notion setups may be different , I am happy to help you set this up if you would require assistance, please email me if you would like some help or if you would like me to set this up for you.

// Set to Webhook URL for a Zap
// With a "Catch Hook" trigger type
// This can be copied from Zapier.com dashboard
var hookURL = "YOUR HOOK GOES HERE";

// Setup data you want passed to the Zap
// Default pass title, body and full content of draft
// Other values could be passed
var data = {
	"title": draft.title,
	"body": draft.processTemplate("[[body]]"),
	"content": draft.content
}

// create HTTP and make POST request to Catch Hook
var http = HTTP.create();
var response = http.request({
  "url": hookURL,
  "method": "POST",
  "data": data,
  "headers": {
    "Accept": "application/json"
  }
});

// log result
console.log(response.statusCode);
console.log(response.responseText);

// if not 200 OK, fail the action
// Otherwise Zapier successfully received post
if (response.statusCode != 200) {
	context.fail();
}

Now there is a multi part action I have for when there are actions, this copies and logs the Meeting Notes like above, it actually uses that action . It then uses some Java script to extract the actions, copy them into a file in Dropbox and then strip and add them as seperate tasks in Notion via a shortcut.

This will be explained in more detail in part 3.

strftime.net

Super Mario Film !

Super Mario Film !