# AI-powered email classification and data extraction from attachments for HR and finance
This workflow automates the processing of incoming emails by classifying them into categories (resumes, leads, invoices) and extracting structured data from text and PDF attachments using AI. Designed for HR, sales, and finance teams, it eliminates manual analysis and prepares data for follow-up workflows.
## Who it´s for
- HR specialists handling job applications via email
- Sales managers sorting inbound leads
- Accountants automating invoice intake
- Companies implementing AI-driven business communication processing
## What the automation does
- Receives new emails via IMAP
- Classifies email type (resume, lead, invoice) using LangChain and OpenAI
- Extracts text from PDF attachments when present
- Uses AI to parse structured data: name, age, experience, education
- Routes results to downstream workflows for further action
## What´s included
- Ready-to-use n8n workflow
- Trigger and handler logic based on new emails
- Integrations with Email (IMAP) and OpenAI API
- Basic textual instructions for launch and adaptation
## Requirements for setup
- Email account with IMAP access enabled
- OpenAI account with active API key
- Accessible n8n instance (self-hosted or cloud)
## Benefits and outcomes
- Reduces email processing time by up to 70%
- Minimizes errors from manual data entry
- Enables automatic routing based on content type
- Generates candidate profiles without human input
- Accelerates response times on leads and financial documents
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet