Once you’re done here, you can head back to the main article:
How to Create Tasks in Notion with Your Voice
<aside> 💡 Tasker doesn’t have a dedicated “Save” button; instead, hit the Back button when finished configuring each step. After all steps have been configured, hit the Back button until you’re back at your full list of Tasks. You should see a “Just a Moment – Applying…” popup when backing out to your list of Tasks.
</aside>
From the Tasks tab, click the +
icon to create a new task.
Give your task a name:
Next, follow these steps:
Input → Get Voice
Variables → Variable Set
%notionname
Variables → Variable Set
%secretkey
Code → JavaScriptlet
var name = notionname;
var task = global("VOICE");
var datetime = global("TIMES");
var secret = secretkey;
var datemillis = datetime * 1000;
var dateobject = new Date(datemillis);
var timezoneoffsetminutes = dateobject.getTimezoneOffset();
var timezoneoffsethours = Math.floor(Math.abs(timezoneoffsetminutes) / 60);
var timezoneoffsetformatted =
(timezoneoffsetminutes < 0 ? "+" : "-") +
String(timezoneoffsethours).padStart(2, "0") +
String(Math.abs(timezoneoffsetminutes) % 60).padStart(2, "0");
timezoneoffsetformatted = timezoneoffsetformatted.slice(0, 3) + ":" + timezoneoffsetformatted.slice(3);
var dateiso = dateobject.toISOString();
dateiso = dateiso.replace("Z", "") + timezoneoffsetformatted;
var jsondata = JSON.stringify({
name: name,
task: task,
date: dateiso,
secret: secret,
});
Net → HTTP Request
%jsondata
Alert → Popup
%http_data
Your task should now look like this, minute the green “Step” labels. Those aren’t needed; I only added them to the shared workflow as guides.
To finish, hit the Back button as needed to back out of the entire task list in order to save the task’s settings.