๐Ÿงพ Extract and log Outlook invoices to OneDrive Excel with GPT-4.1-mini

โšก 62 views ยท ๐Ÿงพ Invoice Processing

Description

Quick overview

Automatically extract, log, and archive emailed invoices using GPT-4.1-mini, OneDrive, and Excel. Designed for small business owners, finance teams, and operations managers, this Microsoft 365 workflow eliminates manual data entry while keeping invoices organized and easy to track.

How it works

  1. Runs daily at 7:00 AM and retrieves unread emails from a selected Outlook folder.
  2. Converts each email to plain text and uses GPT-4.1-mini to extract invoice details.
  3. Downloads PDF attachments and saves them in dated OneDrive folders.
  4. Renames each invoice using the vendor and invoice month.
  5. Adds the extracted data and file link to an Excel table.

Setup

  1. Add your Microsoft Outlook OAuth2 credential โ€” used to fetch emails and send the digest.
  2. Add your Microsoft Graph OAuth2 credential โ€” used for OneDrive folder creation, PDF upload, and Excel append.
  3. In Outlook โ€” Get Unread Emails, update foldersToInclude to your target Outlook folder ID (find it via Graph Explorer).
  4. In Excel โ€” Append Invoice Row, update the workbook, worksheet, and table IDs to match your tblInvoices tracker file in OneDrive.
  5. In Code โ€” Build Digest Email, replace YOUR_ONEDRIVE_FOLDER_URL with a direct link to your Invoices folder.
  6. In Outlook โ€” Send Daily Digest, replace YOUR_EMAIL@example.com with your recipient address.

Requirements

Customization

Additional info

Support: support@ais.email | Automated Intelligent Solutions

๐Ÿ”— Nodes Used

HTTP Request, Microsoft Excel 365, Microsoft Outlook, Schedule Trigger, Filter, Basic LLM Chain

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup