Finds the cheapest real-time flight prices using Kiwi.com (via RapidAPI).
Just say things like "Dhaka to Bangkok" or "from Dhaka to Chittagong" — it returns the top 3 cheapest options with airline and approximate duration.
- flight prices
- flight price
- cheap flight
- how much to fly
- flights to
- price of flight
- flight cost
- fly from
- from to
- flight information
- Requires a RapidAPI key for the Kiwi.com Cheap Flights API (free tier available at https://rapidapi.com/emir12/api/kiwi-com-cheap-flights).
- Replace the placeholder
API_KEYinmain.pywith your own key before using.
- User triggers with "flight prices" (or similar)
- Greets and asks for from/to cities
- Parses simple phrases like "Dhaka to Bangkok"
- Calls Kiwi API → returns top 3 cheapest flights
- Offers more details on request
- Say "stop" or "exit" to end
User: flight prices
AI: Hi! I can check flight prices. Tell me where from and to...
User: Dhaka to Bangkok
AI: Understood — from Dhaka to Bangkok. Checking prices now...
Cheapest flights: Option 1: $45 with US-Bangla Airlines, ~50 min. ... Want more details?
User: yes
AI: More info: Option 1: $45, 50 min, US-Bangla Airlines. Hand bag included...
User: stop
AI: Flight search finished. Safe travels!