Templates / Extract tracking numbers from Gmail PDF attachments to Google Sheets with okraPDF

Extract tracking numbers from Gmail PDF attachments to Google Sheets with okraPDF

Ready for 3.0

by stevent · 13 views · created 2026-06-15 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 9 nodes and runs on Gmail events. Along the way it connects Gmail and Google Sheets. It also calls api.okrapdf.com over HTTP.

How it runs

Trigger: On Gmail events.

  1. If: checks a condition and branches into true / false
  2. Configure OCR Options (Edit Fields (Set)): sets 3 fields: okra_parser, okra_parse_pages, okra_metadata_source
  3. Upload attachment_0 to okraPDF (HTTP Request): calls api.okrapdf.com (POST)
  4. OCR Parse Uploaded PDF (HTTP Request): calls api.okrapdf.com (POST)
  5. Wait: waits 15 seconds
  6. Get Job Result (HTTP Request): calls an HTTP API
  7. If: checks a condition and branches into true / false
  8. Append Tracking Row to Sheets (Google Sheets): append

Services it uses

GmailGoogle Sheets

HTTP calls to: api.okrapdf.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Quick Overview This workflow monitors unread Gmail messages with PDF attachments, sends the first PDF to okraPDF for OCR parsing, then extracts likely tracking numbers from the OCR text and appends the email and parse details as a new row in Google Sheets.…

Excerpt from stevent's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.