Skip to main content

Resume data extraction and storage in Supabase from email attachments

Workflow preview

Workflow preview
100%
Resume data extraction and storage in Supabase from email attachments preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Description What Problem Does This Solve? ️ This workflow automates the process of extracting key information from resumes received as email attachments and storing that data in a structured form...

Best for

  • HR automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.gmailtrigger, n8n-nodes-base.extractfromfile, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatopenrouter, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.httprequest, n8n-nodes-base.supabase

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Resume data extraction and storage in Supabase from email attachments
Workflow name
Resume data extraction and storage in Supabase from email attachments

Description

What Problem Does This Solve? 🛠️

This workflow automates the process of extracting key information from resumes received as email attachments and storing that data in a structured format within a Supabase database. It eliminates the manual effort of reviewing each resume, identifying relevant details, and entering them into a database. This streamlines the hiring process, making it faster and more efficient for recruiters and HR professionals.

Target audience: Recruiters, HR departments, and talent acquisition teams.

What Does It Do? 🌟

  • Monitors a designated email inbox for new messages with resume attachments.
  • Extracts key information such as name, contact details, education, work experience, and skills from the attached resumes.
  • Cleans and formats the extracted data.
  • Stores the processed data securely in a Supabase database.

Key Features 📋

  • Automatic email monitoring for resume attachments.
  • Intelligent data extraction from various resume formats (e.g., PDF, DOC, DOCX).
  • Customizable data fields to capture specific information.
  • Seamless integration with Supabase for data storage.
  • Uses OpenRouter to streamline API key management for services such as AI-powered parsing.

Setup Instructions

Prerequisites ⚙️

  • n8n Instance: Self-hosted or cloud instance of n8n.
  • Email Account: Gmail account with Gmail API access for receiving resumes.
  • Supabase Account: A Supabase project with a database/table ready to store extracted resume data. You'll need the Supabase URL and API key.
  • OpenRouter Account: For managing AI model API keys centrally when using LLM-based resume parsing.

Installation Steps 📦

1. Import the Workflow:

  • Copy the exported workflow JSON.
  • Import it into your n8n instance via “Import from File” or “Import from URL”.

2. Configure Credentials:

  • In n8n > Credentials, add credentials for:

    • Email account (Gmail API): Provide Client ID and Client Secret from the Google Cloud Platform.
    • Supabase: Provide the Supabase URL and the anon public API key.
    • OpenRouter (Optional): Add your OpenRouter API key for use with any AI-powered resume parsing nodes.
  • Assign these credentials to their respective nodes:

    • Gmail Trigger → Email credentials.
    • Supabase Insert → Supabase credentials.
    • AI Parsing Node → OpenRouter credentials.

3. Set Up Supabase Table:

Create a table in Supabase with columns such as: name, email, phone, education, experience, skills, received_date, etc.

Make sure the field names align with the structure used in your workflow.

4. Customize Nodes:

  • Parsing Node(s): Modify the workflow to use an OpenAI model directly for field extraction, replacing the Basic LLM Chain node that utilizes OpenRouter.

5. Test the Workflow:

  • Send a test email with a resume attachment.
  • Check n8n's execution log to confirm the workflow triggered, parsed the data, and inserted it into Supabase.
  • Verify data integrity in your Supabase table.

How It Works

High-Level Workflow 🔍

  1. Email Monitoring: Triggered when a new email with an attachment is received (via Gmail API).
  2. Attachment Check: Verifies the email contains at least one attachment.
  3. Prepare Data: Extracts the attachment and prepares it for analysis.
  4. Data Extraction: Uses OpenRouter-powered LLM (if configured) to extract structured information from the resume.
  5. Data Storage: The structured information is saved into the Supabase database.

Node Names and Actions (Example)

  • Gmail Trigger: Triggers when a new email is received.
  • IF: Checks whether the received email includes any attachments.
  • Get Attachments: Retrieves attachments from the triggering email.
  • Prepare Data: Prepares the attachment content for processing.
  • Basic LLM Chain: Uses an AI model via OpenRouter to extract relevant resume data and returns it as structured fields.
  • Supabase-Insert: Inserts the structured resume data into your Supabase database.

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.2

Block 2 - Extract from File

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

Block 3 - Edit Fields

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

Block 4 - Basic LLM Chain

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.6

Block 5 - OpenRouter Chat Model

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

Block 6 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 7 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Supabase

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

Block 9 - Edit Fields1

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

Block 10 - Split Out

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

Block 11 - Supabase1

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

Block 12 - Edit Fields2

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

Block 13 - Split Out1

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

Block 14 - Supabase2

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

Block 15 - Edit Fields3

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

Block 16 - Split Out2

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

Block 17 - Sticky Note

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

Block 18 - Sticky Note1

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

Block 19 - Sticky Note2

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

Block 20 - Sticky Note3

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

Block 21 - If

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

Block 22 - Sticky Note4

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

3. Summary Table

Workflow Resume data extraction and storage in Supabase from email attachments
Complexity advanced
Nodes 22
Categories HR, AI Summarization
Author Belgacem Dhiflaoui
Published 16 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4106/4106.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 Resume data extraction and storage in Supabase from email attachments do?

Description What Problem Does This Solve? ️ This workflow automates the process of extracting key information from resumes received as email attachments and storing that data in a structured form...

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 HR, AI Summarization use case.