Back to Templates

Search flights with Gemini via Telegram and send SerpAPI price alerts

Last update

Last update 2 months ago

Share


๐Ÿ“– 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! ๐Ÿš€