Skip to main content

Classify SES project emails with GPT-4.1 mini and save from Gmail to Sheets

Workflow preview

Workflow preview
100%
Classify SES project emails with GPT-4.1 mini and save from Gmail to Sheets preview
Open on n8n.io

1. Workflow Overview

What this workflow does This workflow monitors your Gmail inbox every minute and automatically extracts SES (System Engineering Service) project information from recruitment emails. It uses AI to c...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.gmailtrigger, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.googlesheets, n8n-nodes-base.noop, n8n-nodes-base.set, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Fujii Ryota.

Original n8n.io source

1.1 Workflow description

Title
Classify SES project emails with GPT-4.1 mini and save from Gmail to Sheets
Workflow name
Classify SES project emails with GPT-4.1 mini and save from Gmail to Sheets

What this workflow does

This workflow monitors your Gmail inbox every minute and automatically extracts SES (System Engineering Service) project information from recruitment emails. It uses AI to classify emails and parse structured data, then appends project details to a Google Spreadsheet.

Workflow steps

  1. Gmail Trigger polls your inbox every minute
  2. AI Project Classifier analyzes each email to determine if it's a project recruitment email
  3. Parse JSON converts the AI response into structured data
  4. Is Project Email? routes project emails forward; others are skipped
  5. Set Spreadsheet Config sets the target spreadsheet ID and sheet name
  6. Append to Spreadsheet writes the extracted project data as a new row

Requirements

  • Gmail OAuth2 credentials
  • OpenAI API credentials
  • Google Sheets OAuth2 credentials
  • A Google Spreadsheet with a sheet named Projects (or update the sheet name in the Set Spreadsheet Config node)

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Gmail Trigger

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1

Block 2 - AI Project Classifier

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1

Block 3 - Parse JSON

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Is Project Email?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 5 - Append to Spreadsheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4

Block 6 - Skip (Non-Project Email)

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 7 - Set Spreadsheet Config

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Workflow Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Note: Gmail Trigger

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Note: AI Classifier

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Note: Config

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Note: Spreadsheet

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Classify SES project emails with GPT-4.1 mini and save from Gmail to Sheets
Complexity intermediate
Nodes 12
Categories Document Extraction, AI Summarization
Author Fujii Ryota
Published 05 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15485/15485.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Classify SES project emails with GPT-4.1 mini and save from Gmail to Sheets do?

What this workflow does This workflow monitors your Gmail inbox every minute and automatically extracts SES (System Engineering Service) project information from recruitment emails. It uses AI to c...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Summarization use case.