Skip to main content

Search flights with Gemini via Telegram and send SerpAPI price alerts

Workflow preview

Search flights with Gemini via Telegram and send SerpAPI price alerts preview
Open on n8n.io

Overview

πŸ“– Overview

A comprehensive flight price monitoring and AI assistant solution built entirely in n8n. Combines automated price tracking with intelligent conversational flight search via Telegram.

bananapromaster1769268600948.png

Perfect for:

  • ✈️ Tracking flight prices to favorite destinations
  • πŸ’° Getting alerts when prices drop below threshold
  • πŸ—“οΈ Planning trips with AI-powered flight searches
  • 🌍 Finding best deals across airlines
  • πŸ“± Managing travel plans through Telegram chat

Requirements: n8n v1.123.0+ or v2.0.0+ SerpAPI key (500 free/month), Google Gemini API, Telegram bot token


⚑ What's in the Box

Two Powerful Workflows

Workflow Function Trigger
πŸ”” Automated Monitoring Tracks specific routes, alerts on price drops Schedule (every 7 days)
πŸ’¬ AI Flight Assistant Interactive search with natural language Telegram messages

Key Capabilities:

  • 🎯 Set price thresholds and get instant alerts
  • πŸ€– Ask questions in natural language (Vietnamese/English)
  • 🧠 AI remembers conversation context
  • πŸ“Š Compares prices across airlines
  • ⚑ Real-time search results from Google Flights

🎯 Key Features

  • πŸ“… Scheduled Price Checks: Automatic monitoring every 7 days (customizable)
  • πŸ’‘ Smart AI Assistant: Understands "find cheapest flight to Bangkok next weekend"
  • πŸ”” Instant Alerts: Telegram notifications when prices drop
  • 🧠 Context-Aware: AI remembers your preferences and previous searches
  • 🌐 Multi-Language: Handles Vietnamese and English seamlessly
  • πŸ“± Mobile-Ready: Full control via Telegram chat interface

bananapromaster1769268551494.png Technical Highlights: SerpAPI integration for real-time prices, Google Gemini Flash for AI responses, session-based conversation memory, Telegram HTML formatting, automatic date calculations (+5 days for returns)


πŸ—οΈ How It Works

### Workflow 1: Automated Monitoring
Schedule Trigger β†’ Configure Route β†’ Search Flights β†’ Extract Best Price 
 ↓ 
 Price < Threshold? β†’ Send Alert 

### Workflow 2: AI Assistant
Telegram Message β†’ AI Agent β†’ Flight Search Tools β†’ Format Response 
 ↓ ↓ ↓ 
 Understand Round-trip/One-way Telegram HTML 
 Context Auto +5 days return Send to user 

πŸ› οΈ Setup Guide

Step 1: API Credentials

Get SerpAPI key (https://serpapi.com), Google Gemini API (https://aistudio.google.com/app/apikey), Telegram bot token (@BotFather)

Step 2: Configure Monitoring

Edit Fields node: Set departure/arrival codes, price threshold, Telegram ID

Step 3: AI Assistant Setup

Link Gemini model to AI Agent, connect flight search tools, activate memory

Step 4: Activate & Test

Enable workflow, send test message to bot, verify alerts


πŸ’‘ Usage Examples

Automated Alert:

✈️ CHEAPEST TICKET
Price: 2,450,000 VND
Airline: Vietjet Air
Time: 06:00 β†’ 08:00

AI Chat:

  • "Find round-trip tickets Hanoi to Bangkok tomorrow"
  • "What's the cheapest flight to Nha Trang next weekend?"
  • "Search one-way Da Nang to Singapore on March 15"

πŸ‘€ About the Author

Nguyen Thieu Toan (Nguyα»…n Thiệu ToΓ n / Jay Nguyen)

AI Automation Specialist | n8n Workflow Expert

Contact:

GenStaff Company: genstaff.net


πŸ“„ License

  • Free for commercial/personal use.
  • Keep author attribution when sharing.

Ready to never miss a flight deal again? Import this workflow and start tracking prices today! πŸš€