Track weekend flight prices with Google Flights, SerpAPI, OpenAI and Telegram
Ready for 3.0What this workflow does
This AI workflow has 46 nodes and runs on Telegram events (plus 2 other triggers). Along the way it connects OpenAI and Telegram.
How it runs
Trigger: On Telegram events (plus 2 other triggers).
- Route Input (Switch): routes items into 2 branches
- Prep Input (Code): runs custom JavaScript code
- Send Error Alert (Telegram): uses Telegram
- Get Voice File (Telegram): work with file
- From Telegram (Code): runs custom JavaScript code
- ⚙️ Config (Edit Fields (Set)): sets 5 fields: home_airport, default_window_weeks, max_searches_per_run…
- Transcribe Voice (OpenAI): transcribe (audio)
- Route by Action (Switch): routes items into 2 branches
- Parse Request (OpenAI): uses OpenAI
- Read Active Alerts (Data table): get (row)
…plus 33 more steps. See the full node list below.
Services it uses
Other Telegram + OpenAI templates (807)
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 (11)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - OpenAI
@n8n/n8n-nodes-langchain.openAi - Telegram
n8n-nodes-base.telegram - HTTP Request
n8n-nodes-base.httpRequest - Data table
n8n-nodes-base.dataTable - If
n8n-nodes-base.if - Telegram Trigger
n8n-nodes-base.telegramTrigger - Error Trigger
n8n-nodes-base.errorTrigger - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview This workflow lets you create, list, cancel, and check weekend flight price alerts via Telegram (text or voice) and runs a daily schedule to price active routes using Google Flights results from SerpAPI, storing alert state in n8n Data Tables…