Latenode

Automatically route Outlook emails to folders using AI

This template watches Microsoft Outlook for new mail, asks ChatGPT which folder it belongs in, moves the message, and logs subject, sender, and category in Supabase. Connect Microsoft Outlook and Supabase. ChatGPT is a Latenode AI step, so you do not paste an OpenAI key. This uses Outlook mail folders, not calendar.

Updated Sep 16, 2026Est. run: 25sEst. cost: $0.0016
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

  • Moves new Outlook mail into folders instead of sorting by hand
  • Picks the folder with ChatGPT
  • Logs subject, sender, and category in Supabase
  • Uses Outlook mail folders, not calendar

How it works

1
Trigger

New Outlook message

The scenario starts when a new email arrives in the Outlook mailbox you connect.

2
AI

Pick a folder

ChatGPT reads subject and body and returns one of the folder names you listed.

3
Action

Move the message

JavaScript maps that name to a folder id. Outlook moves the message into that folder.

4
Action

Log in Supabase

Supabase stores subject, sender, category, and folder for later review.

Setup guide

1

Connect Microsoft Outlook

Add a Microsoft Outlook connection with permission to read mail and move messages. This step is email, not a calendar event.

2

Connect Supabase

Add a Supabase connection and paste your Supabase key there. Use a table with columns for subject, sender, category, and folder.

3

Watch new mail

Add an Outlook trigger for new messages. Narrow the folder if you only want a subset of threads.

4

Map folders and move

List your Outlook folder names for ChatGPT. In JavaScript, map each name to a folder id, move the message, then create the Supabase row. ChatGPT is a Latenode AI step.

Requirements

A Microsoft Outlook mailbox connected in Latenode
Permission to read messages and move them between folders
A Supabase table and API key stored on the Supabase connection
ChatGPT available as a Latenode AI step

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. Plug-and-Play AI nodes are billed separately.