To extract data from email with AI, you say in plain words what to look for, such as “the invoice number” or “the date payment is due”, and an AI reads it out of each email and its attachments. Mail Attachment Downloader does this in its Parser, with a built-in AI that runs on your own system or with your own OpenAI (ChatGPT), Anthropic Claude, Google Gemini or Azure OpenAI account. It shows where each value was read and how sure the AI is, and holds doubtful emails for you to check.
The examples use Contoso’s mailbox finance@contoso.com and invoices from Acme, Northwind and Fabrikam, such as INV-2026-0412.
How does AI data extraction from email work?
- You name the fields in words: “The invoice number”, “The supplier’s name”, “The total to pay”. No patterns, no templates per supplier.
- One AI call per email: the AI reads the subject, the sender, the body and the text of the attachments (PDF, Word, Excel and text files) and fills all the fields at once.
- Each value is checked against the text: you see where it was read and how sure the AI is. A value that isn’t in the text is flagged.
- The values become fields:
{INVOICE_NUMBER},{TOTAL}and the others name files and folders, and go to CSV, Excel, Google Sheets or a database.
What you need
- The Parser: PRO Parser, PRO Rules Client or PRO Rules Server.
- Find fields with AI as a step of a rule: PRO Rules Client or PRO Rules Server.
- Run an AI prompt as a step: PRO Rules Server.
- An AI: the built-in model (a one-time download), your own AI server, or a key for a cloud AI.
Local AI or ChatGPT, Claude and Gemini: choose the AI
The AIs are set up once in Settings › Sources › AI Providers; each parser and step then picks one. Edit… opens a provider: its Key, its Default model (Refresh list asks the service which ones it has), Make this the default AI, and Test provider, which asks one tiny question with no email or file.
The built-in AI: local document extraction
The built-in model runs on this computer, with limited rights. Nothing leaves the computer, and it costs nothing. Get it once in the AI Assistant (beta) tab with Download (about 2.2 GB). It is slower than the cloud services and reads text only: the program takes the text out of PDF, Word and Excel attachments for it, but it can’t look at pictures.

Your own AI server
Ollama, LM Studio, or any server that speaks the OpenAI-style chat API, such as OpenRouter, Mistral or Groq. Enter its address, such as http://localhost:11434, and the model’s name, such as qwen3:8b. A server on this computer keeps everything here.
OpenAI (ChatGPT), Anthropic Claude, Google Gemini, Azure OpenAI
Use your own account and API key. For OpenAI that is a key from the OpenAI platform, not a ChatGPT subscription. The key is kept encrypted on this computer and sent only to that provider. Azure OpenAI uses your own Azure resource and its deployment.

Step by step: describe the fields in the Parser
- On the Parser tab, click New parser and add a few sample emails, such as three invoices from Acme, Northwind and Fabrikam.
- In the Fields step, add a field Using AI. Under Look for, write what it is in your own words, pick its Type (text, number or date), and choose what happens If not found or wrong.
- Under What the AI reads, tick the parts: Subject, Sender and date, Body, Attachments’ text and, for scanned invoices, Scans (OCR).
- In Notes for the AI, add what helps, such as “Dates are day/month/year. Amounts are in EUR.”
- Pick the AI and click Run on all (here, all 3 samples).
On the right, each sample shows its values, how Sure the AI is, and whether the value is in the text. Answers are kept, so changing one field does not ask the AI again. Not sure what to ask for? Suggest fields lets the AI propose the values your samples have.

Hybrid mode: patterns first, the AI only for the gaps
Tick Hybrid mode to Use patterns first, ask the AI only for fields they leave empty. A field found by a highlight or a pattern can also have If the pattern finds nothing, ask the AI. Most emails are then read by the pattern, which is instant and free, and the AI is asked only where the pattern finds nothing, such as a new supplier’s layout.
Compare models: which AI reads your emails best?
Click Compare models… and add the models to try. Run on the samples asks each one, and marks it against the values you ticked as right:
- how many of each field it got right, such as 3 / 3 for the invoice number,
- Time per email, and
- Cost per 1,000 emails, an estimate from the size of your samples and the prices you type in. The real bill comes from the provider.
A setup to try proposes a mix, such as the built-in model first and OpenAI only for the emails where a field is empty or less than 80% sure. Use this setup keeps it: the cloud sees only the gaps.

Confidence and review: doubtful values wait for you
In the Checks step, tick The AI is less sure than under Send an email to the review queue when, and set a percentage, such as 70. You can also review when a required field is blank or a check fails, such as a total outside the range you set.
A held email waits in Needs you. Nothing the parser writes, sends or moves is done for it until you approve. Open it to see the email beside its values, each with the AI’s percentage, correct a value and click Approve and run the actions (Alt+A), Skip for now (Alt+S), or Reject: do not process (Alt+R).

AI in a PRO Rule: Find fields with AI and Run an AI prompt
For a quick field inside a rule, add a step with Add a step… › Data and fields:
- Find fields with AI (PRO Rules Client and up): the same plain words, in the Fields found with AI window, with What the AI reads and Which AI reads it. The fields name files and folders, and feed the steps after it.
- Run an AI prompt (PRO Rules Server): your own prompt about the email or its files, such as “Summarize this contract in three lines” or “Is this an invoice, a reminder or a credit note?”. The answer is kept as a field. Test the prompt tries it on a sample email.
The built-in model reads text files only in Run an AI prompt (TXT, CSV, JSON, HTML), not pictures or PDFs. The cloud services read pictures and PDFs too.


What leaves your computer?
- Built-in model, or your own server on this computer: nothing.
- A cloud AI: the parts you ticked under What the AI reads, or the prompt and the files you chose, sent to that provider only. Its terms for your account apply.
- Never without asking: before a cloud AI is used, the program names the provider and what would be sent, and asks. It asks again when you change the service. You can go back to the built-in model at any time.
Questions people ask
Can I use ChatGPT as an email parser?
Yes, with an API key from the OpenAI platform. A ChatGPT subscription doesn’t include one. Pick OpenAI in AI Providers, then in the parser.
Does the local AI need the internet?
Only for the one-time download. After that the built-in model reads your emails on this computer.
Can it read scanned invoices?
In the Parser, tick Scans (OCR) so scans are read before the AI is asked. Find fields with AI reads the text of PDF, Word, Excel and text files, not images or scans.
How do I know the AI got it right?
Every value shows its percentage and whether it is in the text. Compare models tells you which AI is right most often on your own emails, and review holds the doubtful ones. See Extract data from emails and attachments for highlights, patterns and tables.
Try it: download Mail Attachment Downloader and start with the free edition, or compare the PRO editions, each with a 30-day money-back guarantee.
Related
- Describe it in words: AI in the Parser: features
- Your choice of AI: built in, your own server, or a cloud service
- Extract data from emails and attachments: an in-depth guide
- Invoice emails to your invoice processing software, named and checked
- Save email data to Excel or Google Sheets
- OCR email attachments: make scanned PDFs searchable
Questions about this post? Contact us.