Templates / Recover unclaimed credits from Gmail using OpenRouter and Google Sheets

Recover unclaimed credits from Gmail using OpenRouter and Google Sheets

Ready for 3.0

by Olivier ✓ · 0 views · created 2026-07-24 · 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 26 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Gmail and Google Sheets. It also calls openrouter.ai over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).

  1. Set Discovery Mode (Edit Fields (Set)): sets 1 field: executionMode
  2. Set Digest Mode (Edit Fields (Set)): sets 1 field: executionMode
  3. Set Template Fields (Edit Fields (Set)): sets 13 fields: gmailDiscoveryQuery, gmailTestQuery, gmailSearchMode…
  4. Is Weekly Digest Run (If): checks a condition and branches into true / false
  5. Read Value Register (Google Sheets): uses Google Sheets
  6. Select Gmail Search Scope (Code): runs custom JavaScript code
  7. Prepare Weekly Value Digest (Code): runs custom JavaScript code
  8. Search Gmail Value Signals (Gmail): get many (message)
  9. Send Weekly Value Digest (Gmail): uses Gmail
  10. Fetch Full Value Emails (Gmail): get (message)

…plus 13 more steps. See the full node list below.

Services it uses

GmailGoogle Sheets

HTTP calls to: openrouter.ai

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (8)

From the author

Quick overview This workflow scans selected Gmail messages for potential credits, gift cards, refunds, and expiring rewards, redacts sensitive strings, uses OpenRouter (OpenAI-compatible chat completions) to extract structured value signals, and upserts a…

Excerpt from Olivier'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.