Live flight fare tracker with Aviation Stack API – alerts via Gmail & Telegram
Needs changesWhat this workflow does
This workflow has 10 nodes and runs on a schedule (legacy Cron node). Along the way it connects Telegram, Google Sheets and Gmail. It also calls api.aviationstack.com over HTTP.
How it runs
Trigger: On a schedule (legacy Cron node).
- Fetch Flight Data (HTTP Request): calls api.aviationstack.com
- Process Flight Data (Function): runs custom JavaScript (legacy Function node)
- Previous flight data (Google Sheets): uses Google Sheets
- Code: runs custom JavaScript code
- Check if Alert Needed (If): checks a condition and branches into true / false
- Format Alert Message (Function): runs custom JavaScript (legacy Function node)
- Send a message (Gmail): uses Gmail
- Telegram: uses Telegram
- Log Alert Activity (Function): runs custom JavaScript (legacy Function node)
Services it uses
HTTP calls to: api.aviationstack.com
Before you upgrade to n8n 3.0
2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:
- Cron in Schedule Trigger: replace with Schedule Trigger.
- Function (legacy) in Process Flight Data, Format Alert Message, Log Alert Activity: replace with Code node, mode 'Run Once for All Items'.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| Cron Schedule Trigger | Schedule Trigger |
| Function (legacy) Process Flight Data, Format Alert Message, Log Alert Activity | Code node, mode 'Run Once for All Items' |
Nodes used (8)
- Cron
n8n-nodes-base.cron - HTTP Request
n8n-nodes-base.httpRequest - Function
n8n-nodes-base.function - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Telegram
n8n-nodes-base.telegram - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail
From the author
This automated n8n workflow continuously tracks real-time flight fare changes by querying airline APIs (e.g., Amadeus, Skyscanner). It compares new prices with historical fares and sends instant notifications to users when a fare drop is detected. All tracked…