Latenode

Sync new Gmail emails to OmniFocus tasks seamlessly

This template watches Gmail for a new email and creates an OmniFocus task from the subject and body.

JavaScript sends the text to OmniFocus with your OmniFocus API token or Mail Drop address in that node. Connect Gmail, pick the inbox or label, and put OmniFocus access in the JavaScript node.

Updated Sep 16, 2026Est. run: 7sEst. cost: $0.0005
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Turns new Gmail messages into OmniFocus tasks
  • Starts when a new email arrives
  • Creates each task through JavaScript
  • Keeps the OmniFocus token or Mail Drop address in the JavaScript node

How it works

1
Trigger

Watch Gmail

The scenario starts when a new email lands in the Gmail inbox or label you connect.

2
Action

Create the OmniFocus task

JavaScript creates the task using the API token or Mail Drop address stored in that node. Set the name from the subject and put a short excerpt plus the message link in the note.

Setup guide

1

Connect Gmail

Add a Gmail connection with access to the inbox you want to watch. Add a trigger for new email. Narrow by label if you only want some mail.

2

Store OmniFocus access

Add a JavaScript node and put your OmniFocus API token or Mail Drop address there.

3

Map email to task

In JavaScript, set the task name from the Gmail subject. Put a short excerpt and the message link in the note. Skip newsletters in the same node if they should not become tasks.

Requirements

A Gmail inbox Latenode can read via a Gmail connection
An OmniFocus API token or Mail Drop address stored in the JavaScript node
A rule for which messages become tasks, such as a label or sender

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.