Skip to content
MORNINGMETHOD
OpenAI Chat ModelCalculatorStructured Output…Add Label "Proces…Active Routes OnlyExtract Route IDDeactivate RouteAdd Label "Error"Send notification…Send notification…Get Route by IDCreate Notion PageGmail TriggerFilter for unproc…When clicking ‘Te…Required labelsGlobalsNo Operation, do …Format Notion Pag…Get all labelsStructured Output…Calculator1OpenAI Chat Model1Generate Actionab…Get Summary & Met…
The workflow you get25 nodes
  • n8n
  • OpenAI
  • Gmail
  • Airtable
  • HTTP Request
  • AI Agent

Save Emails to Notion

Important emails are copied into your Notion so you can find them later.

Best for: Notion-first teams

$19.00Regular price $49.0061% off
  • Card or PayPal
  • Instant download
  • Setup guide included
Delivery
Download after payment
Format
n8n workflow + guide (ZIP)
Access
Re-download any time

Setup

What you need, and how to set it up

It starts by itself when you send yourself a test email. No code needed. Follow the steps in order.

What you need

  • An n8n account

    The app that runs the automation.

    Free to self-host, or a free trial on n8n Cloud.

  • OpenAI API keyPay as you go, usually a few cents a day

    A secret password that lets n8n use ChatGPT's brain.

    Get it: Go to platform.openai.com, open API keys, and click Create new secret key. Copy it. Show me how to connect OpenAI API key (opens n8n docs)

    Used by: OpenAI Chat Model, OpenAI Chat Model1

  • GmailFree

    Lets n8n read and send your emails.

    Get it: Click Sign in with Google inside n8n and say yes. On self-hosted n8n you first make a Google Cloud app (the link shows how). Show me how to connect Gmail (opens n8n docs)

    Used by: Add Label "Processed", Add Label "Error", Send notification about de, Send notification about mi, Gmail Trigger, Get all labels

  • Airtable tokenFree plan works

    Lets n8n read and write your Airtable tables.

    Get it: Go to airtable.com/create/tokens and make a personal access token. Show me how to connect Airtable token (opens n8n docs)

    Used by: Deactivate Route, Get Route by ID

Setup in 6 easy steps

  1. Step 1: Get n8n

    n8n is the app that runs your automation. Make a free account at n8n.io. That is the easy way. You can also put it on your own computer for free.

  2. Step 2: Download your file

    After you pay, open My downloads and download the ZIP. Double-click it to open it. Inside is a file called workflow.json.

  3. Step 3: Put it in n8n

    In n8n, click Create workflow. Click the three dots (⋯) at the top, then Import from file, and pick workflow.json. Now you see the same boxes as in the picture above.

  4. Step 4: Connect your accounts

    Some boxes show a little red triangle. That means they need a key. Click the box, click Create new credential, and paste the key from your list. Do this for each red box.

  5. Step 5: Try it once

    Click Test workflow, then send yourself a test email. Green ticks on the boxes mean it worked.

  6. Step 6: Turn it on

    Click Save. Then flip the switch at the top from Inactive to Active. Now it works by itself, even while you sleep.

Stuck? Email support@morningmethod.co and we will help you.

Category: Automations › Gmail & Inbox Automation · Best for: Notion-first teams · Platform: n8n · Steps: 25

What it does

Important emails are copied into your Notion so you can find them later.

  • Disable the Gmail Trigger and enable the manual trigger here

Works with: Gmail, OpenAI, Tool Calculator, Output Parser Structured, Agent, Airtable

What you get

  • The n8n workflow file (workflow.json), ready to import
  • This setup guide
  • The list of fields to change for your own accounts (see Install below)
  • Email support if you get stuck

Before you start

  1. An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker: docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678.

  2. Accounts and API keys for these services:

    • OpenAI API key: how to connect (used by OpenAI Chat Model, OpenAI Chat Model1)
    • Google (Sheets, Gmail, Drive, Calendar, Docs): how to connect (used by Add Label "Processed", Add Label "Error", Send notification about deactivated route, Send notification about missing route, Gmail Trigger, Get all labels)
    • Airtable personal access token: how to connect (used by Deactivate Route, Get Route by ID)

Install

  1. In n8n, click Create workflow (top right).
  2. Click the ⋯ menu → Import from file and choose workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V.
  3. Open each node with a red warning triangle and pick or create the matching credential from the list above.
  4. Point these fields at your own sheets, chats and accounts:
    • Deactivate Route → base: choose your own
    • Deactivate Route → table: choose your own
    • Send notification about deactivated route → sendTo: choose your own
    • Send notification about missing route → sendTo: choose your own
    • Get Route by ID → base: choose your own
    • Get Route by ID → table: choose your own
  5. Click Save.

Test it

  1. Click Test workflow (or Execute workflow). Gmail Trigger starts it. Trigger it once with real sample data.
  2. Click each node to check its output. A green tick means the step worked.
  3. Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.

Go live

Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.

How it works, step by step

  1. Gmail Trigger starts the workflow (Gmail).
  2. When clicking ‘Test workflow’ starts the workflow (Manual).
  3. OpenAI Chat Model1 uses AI (OpenAI).
  4. Calculator1 uses AI (Tool Calculator).
  5. Structured Output Parser1 uses AI (Output Parser Structured).
  6. OpenAI Chat Model uses AI (OpenAI).
  7. Calculator uses AI (Tool Calculator).
  8. Structured Output Parser uses AI (Output Parser Structured).
  9. Globals reshapes the data for the next step.
  10. Get all labels uses Gmail to label.
  11. Generate Actionable Task uses AI (Agent).
  12. Get Summary & Meta Data uses AI (Agent).
  13. Filter for unprocessed mails checks a condition and routes items accordingly.
  14. Required labels checks a condition and routes items accordingly.
  15. Format Notion Page Blocks reshapes the data for the next step.
  16. Extract Route ID reshapes the data for the next step.
  17. Create Notion Page calls an external API (https://api.notion.com/v1/pages).
  18. Get Route by ID uses Airtable to get.
  19. Add Label "Processed" uses Gmail to addLabels.
  20. Deactivate Route uses Airtable to update.
  21. Active Routes Only checks a condition and routes items accordingly.
  22. No Operation, do nothing uses No Op.
  23. Send notification about deactivated route uses Gmail.
  24. Send notification about missing route uses Gmail.
  25. Add Label "Error" uses Gmail to addLabels.

Extra setup notes

These notes are also on the canvas as yellow sticky notes:

Setup

  • Disable the Gmail Trigger and enable the manual trigger here
  • Execute the workflow once
  • Copy the Gmail Label IDs from the output of the "Required labels" node to the "Globals" node
  • Disable the manual trigger here and and enable the Gmail Trigger again
  • Activate the workflow, so it runs automatically in the background

Set Globals

Use the setup instructions below to retrieve the values for both errorLabelID and processedLabelID

Select Base

Select the database and the table where the "Routes" are defined

The Gmail inbox is checked every minute for new entries

Extract the Airtable Row ID from the Email address

Filter by labels to prohibit double-processing

Dynamically build request body for Notion, since dynamic auth, and content with optional fields require a custom request

The custom built request including the user specific authentication is sent to Notion to create a new Page inside of a database

The Email is processed in multiple ways:

  • An actionable task is being generated based on the content, consisting of a short title, a short description and optionally a few details as bullet points
  • A detailed Email summary is being generated
  • Meta data is being extracted - so the user has a reference to find the original Email again
  • To get more stable results, the tasks are devided between two Agents

Skip disabled routes (determined by a checkbox attribute in Airtable)

Send custom Email notifications back to sender, containing an error message and suggestions to fix it

Add labels which prevent from double-processing

Disable a checkbox attribute in Airtable which determines if a route is active

Troubleshooting

  • "Credentials not found": open the node and select your credential again.
  • Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
  • Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
  • AI node errors: check your API key has billing enabled and the model name exists on your plan.
  • Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.

Need help?

Reply to your Morning Method order email and we'll help you get it running.


© Morning Method

$19.00Regular price $49.0061% off
Save Emails to Notion | n8n Automation | Morning Method