πŸ“Š Search flights with Gemini via Telegram and send SerpAPI price alerts

⚑ 306 views Β· πŸ“Š Market Research & Insights

Description

πŸ“– 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:

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

WorkflowFunctionTrigger
πŸ”” Automated MonitoringTracks specific routes, alerts on price dropsSchedule (every 7 days)
πŸ’¬ AI Flight AssistantInteractive search with natural languageTelegram messages

Key Capabilities:


🎯 Key Features

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:


πŸ‘€ 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


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

πŸ”— Nodes Used

Telegram, Telegram Trigger, Schedule Trigger, Filter, AI Agent, Simple Memory

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup