Recover unclaimed credits from Gmail using OpenRouter and Google Sheets
Ready for 3.0What 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).
- Set Discovery Mode (Edit Fields (Set)): sets 1 field: executionMode
- Set Digest Mode (Edit Fields (Set)): sets 1 field: executionMode
- Set Template Fields (Edit Fields (Set)): sets 13 fields: gmailDiscoveryQuery, gmailTestQuery, gmailSearchMode…
- Is Weekly Digest Run (If): checks a condition and branches into true / false
- Read Value Register (Google Sheets): uses Google Sheets
- Select Gmail Search Scope (Code): runs custom JavaScript code
- Prepare Weekly Value Digest (Code): runs custom JavaScript code
- Search Gmail Value Signals (Gmail): get many (message)
- Send Weekly Value Digest (Gmail): uses Gmail
- Fetch Full Value Emails (Gmail): get (message)
…plus 13 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + OpenRouter templates (210) · Other Gmail + OpenRouter templates (135)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets
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…