Search flights with Gemini via Telegram and send SerpAPI price alerts
π 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.
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
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: π nguyenthieutoan.com π Facebook πΌ LinkedIn π§ Email: me@nguyenthieutoan.com More Nguyen Thieu Toan's n8n Template
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! π
Related Templates
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
π° AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments