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.

Untitled

Give your task a name:

Untitled

Next, follow these steps:

  1. Input → Get Voice

    Untitled

  2. Variables → Variable Set

    1. Name: %notionname
    2. To: Your name - e.g. “Thomas Frank”

    Untitled

  3. Variables → Variable Set

    1. Name: %secretkey
    2. To: Your unique passphrase - e.g. “dogfood”

    Untitled

  4. 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,
    });
    

    Untitled

  5. Net → HTTP Request

    1. Method: POST
    2. URL: Enter your unique Pipedream trigger URL
    3. Body: %jsondata

    Untitled

  6. Alert → Popup

    1. Text: %http_data

    Untitled

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.

Untitled

To finish, hit the Back button as needed to back out of the entire task list in order to save the task’s settings.