Analyze inflation hedges with OpenAI GPT-4.1-mini and Gmail
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI and Gmail.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Input: Inflation & Returns (Edit Fields (Set)): sets or maps fields
- Validate Input (If): checks a condition and branches into true / false
- Compute Real Returns (Code): runs custom JavaScript code
- Check Invalid Inputs (Edit Fields (Set)): sets 1 field: Error
- Split Commodities (Split Out): splits a list into separate items
- Check Better Than Savings (If): checks a condition and branches into true / false
- Label as GOOD (Edit Fields (Set)): sets 1 field: category
- Label as BAD (Edit Fields (Set)): sets 1 field: category
- Merge: merges the data from its input branches
- Aggregate: combines items into one
…plus 3 more steps. See the full node list below.
Services it uses
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 (9)
- If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut - Merge
n8n-nodes-base.merge - Aggregate
n8n-nodes-base.aggregate - OpenAI
@n8n/n8n-nodes-langchain.openAi - Gmail
n8n-nodes-base.gmail - Manual Trigger
n8n-nodes-base.manualTrigger
From the author
Quick Overview This workflow runs manually to calculate inflation-adjusted (real) returns for a set of commodities versus a savings rate, then uses OpenAI to generate a structured analysis and emails the final report via Gmail. How it works 1. Starts when you…