Compare personal grocery inflation to US CPI with Gemini and Telegram
Ready for 3.0What this workflow does
This AI workflow has 29 nodes and runs when someone submits an n8n form (“Your Inflation Isn't Their Inflation”) (plus 1 other trigger). Along the way it connects Telegram, Google Gemini Chat Model and Data table. It also calls api.bls.gov over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Your Inflation Isn't Their Inflation”) (plus 1 other trigger).
- Settings (Edit Fields (Set)): sets 8 fields: official_source, official_series_id, official_label…
- Create receipt lines table (Data table): create (table)
- Load saved lines (Data table): get (row)
- Gather receipts (Code): runs custom JavaScript code
- What came in? (Switch): routes items into 4 branches
- Read receipt photo (Basic LLM Chain): sends a prompt to an LLM, with model: Gemini (reads & matches); output parser: Receipt format
- Find lines to match (Code): runs custom JavaScript code
- Fetch official index (HTTP Request): calls api.bls.gov (POST)
- Build report (Code): runs custom JavaScript code
- Anything new to match? (Switch): routes items into 3 branches
…plus 11 more steps. See the full node list below.
Services it uses
HTTP calls to: api.bls.gov
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 (15)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - Data table
n8n-nodes-base.dataTable - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent
@n8n/n8n-nodes-langchain.agent - Data Table Tool
n8n-nodes-base.dataTableTool - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - n8n Form
n8n-nodes-base.form - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow accepts grocery receipt photos via an n8n form or Telegram, uses Google Gemini to extract and normalize line items, calculates a personal month-to-month inflation rate, pulls the matching official CPI series from the US BLS API,…