naïve

Track Flight and Hotel Prices With an AI Agent (Buy-or-Wait Emails)

Build an AI flight price tracker and hotel price alert: Claude or ChatGPT compares fares by date, gives a buy-or-wait signal and emails you when a fare drops.

Naïve8 min readGuide

TL;DR

  • An AI flight price tracker is a loop: check the fare for your route and dates, compare it with what you saw last time or your target, and email yourself when it drops.
  • On Naive the agent reads fares with hotels-flights tools: compare-fares-by-date and find-lowest-fares at $0.002 per call, search-flights for live bookable offers at $0.01 per call.
  • advise-buy-or-wait is free and says whether a fare is low, typical or high and whether to buy now or wait. Treat it as a signal, not a promise about future prices.
  • Hotels work the same way: search-hotels and get-hotel-details at $0.002 per call, read-guest-reviews free, plus Google Hotels and Airbnb search.
  • The alert comes from the agent's own inbox at $0.0008 per recipient. Booking stays with you; agent cards are in early access.

Tools used in this post

To track flight and hotel prices with an AI agent, give it a list of routes, dates and hotels, have it check fares and rates on a schedule, and email you when a price drops or when it reads as a good time to buy. On Naive, Claude or ChatGPT can compare fares by date, find the lowest fares, ask for a buy-or-wait signal and check hotels and guest reviews from one connector, and a short script sends the alerts from the agent's own inbox.

Holiday trips are where this pays off: the dates are fixed late, fares move, and you want one email that says "this one, book it" instead of ten tabs. This guide sets it up in five steps.

Can ChatGPT track flight prices?

On its own, no. ChatGPT and Claude answer when you message them, and without a tool they have no live fare data, so they guess or point you to a search site.

With the Naive connector they can call real travel tools. Ask "what is the cheapest week to fly Chicago to Lisbon in December?" and the model runs a fare comparison and answers from the result. What a chat still cannot do is wake up at 6 a.m. and check again. For that you run the same calls from a script on a schedule, which is step 5.

Google Flights alerts vs fare apps vs an agent

OptionGood atFalls short when
Google Flights price trackingFree alerts on a route you pick, inside GoogleYou want hotels, several date windows and a short verdict in one message
Fare alert appsPush notifications and a buy-or-wait style prediction for flightsYou want to ask follow-up questions or mix in Airbnb and guest reviews
An agent on NaiveFlights, hotels, Airbnb and reviews in one place; you ask in chat or script it; alerts from its own inboxYou want a ready app with no setup; you write a short script for scheduled alerts

If you watch a single route, use the free alerts. The agent route is for people who plan a whole trip at once, or developers who want fare and hotel data behind one API key.

What does the agent need?

StepWhatTool or callPrice
1Identity and inboxnaive.identities.create, naive.emails.createIncluded
2Fares by date, lowest fareshotels-flights.compare-fares-by-date, hotels-flights.find-lowest-fares$0.002 / call
2Live bookable offershotels-flights.search-flights$0.01 / call
3Buy-or-wait signalhotels-flights.advise-buy-or-waitFree
4Hotels, details, reviewshotels-flights.search-hotels, hotels-flights.get-hotel-details, hotels-flights.read-guest-reviews$0.002, $0.002, free
4Google Hotels, Airbnbgoogle-travel.search-google-hotels, airbnb.search-airbnb-staysup to $0.02 / result, $0.00015 / call
5Alert emailnaive.emails.send$0.0008 / recipient

All travel tools are read-only. They look things up; they do not book.

Step 1: Connect Claude or ChatGPT (or get an API key)

Create a Naive account to get an API key and $1 of free credit with no card.

For chat, add a custom connector with the URL https://mcp.usenaive.ai/v1/mcp in ChatGPT or Claude and sign in. ChatGPT sees named tools plus tools_search and tools_execute; Claude finds the travel tools through tools_search and runs them with tools_execute. Agents that read skill files can use the Naive skill instead.

For the scheduled alerts, create an identity with an inbox:

import { createNaive } from "@usenaive-sdk/naive";
 
const naive = createNaive(); // reads NAIVE_API_KEY
 
const agent = await naive.identities.create({ name: "fare-watcher" });
const inbox = await naive.emails.create(agent.id, {}); // on the shared Naive domain
console.log(agent.id, inbox.id, inbox.address);

Or with the CLI:

naive identity create --name fare-watcher
naive email create --identity idn_123

Step 2: Search fares across flexible dates

Start in chat. Prompts that work well:

  • "Compare round-trip fares from ORD to LIS for departures between December 18 and 23, returning after January 2. Show the cheapest date pair."
  • "Find the lowest fares from NYC airports to anywhere in Mexico for the week of December 26."
  • "Now price the cheapest of those live, with baggage and change rules."

The model picks the tool: hotels-flights.compare-fares-by-date returns the cheapest cached fare for each departure and return date pair on a route, hotels-flights.find-lowest-fares lists the cheapest cached fares across origins, destinations and a date range, and hotels-flights.search-flights prices a route live and returns bookable offers with fares, baggage and change rules. google-travel.search-google-flights searches Google Flights for one-way or round-trip itineraries.

Cached fares are fast and cheap for finding the right dates. Confirm the final fare with a live search before you book.

From a terminal, read each tool's input fields first, then run it:

naive tools get hotels-flights.compare-fares-by-date
naive tools run <slug> --arg <field>=<value>

Use the field names naive tools get prints; they are the same fields the chat model fills in.

Step 3: Ask for a buy-or-wait signal

Once you have a fare, ask: "Is $612 for ORD to LIS on December 20 a good price? Should I buy now or wait?"

hotels-flights.advise-buy-or-wait answers whether a fare is low, typical or high for that route and whether to buy now or wait. It is free per call, so the agent can attach it to every fare it reports.

Read it as a signal about today's price, not a forecast you can bank on. If your dates are fixed and close, a "typical" fare you can live with is usually worth booking. The useful habit is to let the agent tell you when a fare moves into "low", which is exactly what the alert loop in step 5 does.

Step 4: Check hotels, Airbnb and guest reviews

Flights are half the trip. In the same chat:

  • "Find 4-star hotels in Lisbon's Baixa or Chiado for December 20 to 27 under $220 a night."
  • "Show details for the second one: room types, cancellation policy."
  • "What do guests complain about there?"
  • "Compare with Airbnb apartments in the same area for 2 adults."

Behind those: hotels-flights.search-hotels searches live availability and room rates for a city, area or named hotel; hotels-flights.get-hotel-details returns a hotel's description, facilities, policies, photos and room types; hotels-flights.read-guest-reviews returns individual reviews plus summarised pros and cons. google-travel.search-google-hotels searches Google Hotels by query, and airbnb.search-airbnb-stays searches Airbnb stays by destination and dates.

The reviews step is where an agent earns its keep. "Quiet room?" and "is the street noisy on weekends?" are questions it can answer from the reviews before you pick, instead of you reading forty of them.

Step 5: Email yourself when a fare drops

Now the loop. The script checks each route, compares the cheapest fare with your target, asks for the buy-or-wait signal and sends one digest email from the agent's inbox.

Write each tool's input in a JSON file using the fields from naive tools get, so the script stays correct if you change routes:

import { readFileSync } from "node:fs";
import { createNaive } from "@usenaive-sdk/naive";
 
const naive = createNaive();
 
const IDENTITY = "idn_123";
const INBOX = "eml_123";
const TO = "you@example.com"; // the email you signed up with
 
// watch.json: [{ "label": "ORD-LIS Dec 20", "target": 650,
//   "fareInput": { ...fields from `naive tools get hotels-flights.compare-fares-by-date` },
//   "adviceInput": { ...fields from `naive tools get hotels-flights.advise-buy-or-wait` } }]
const WATCH = JSON.parse(readFileSync("watch.json", "utf8"));
 
async function run(tool: string, input: Record<string, unknown>): Promise<any> {
  try {
    const result = await naive.tools.run(tool, input);
    if (result.object === "run" && result.status === "succeeded") return result.output;
    return null;
  } catch {
    return null;
  }
}
 
const lines: string[] = [];
 
for (const w of WATCH) {
  const fares = await run("hotels-flights.compare-fares-by-date", w.fareInput); // $0.002
  const advice = await run("hotels-flights.advise-buy-or-wait", w.adviceInput); // free
  if (!fares) continue;
  // Pick the cheapest fare from the output; log it once to see its shape.
  lines.push(`${w.label} (target $${w.target})\n${JSON.stringify(fares).slice(0, 400)}\nAdvice: ${JSON.stringify(advice)}`);
}
 
if (lines.length) {
  await naive.emails.send(IDENTITY, INBOX, {
    to: [TO],
    subject: `Fare check: ${lines.length} route${lines.length > 1 ? "s" : ""}`,
    text: lines.join("\n\n"),
  }); // $0.0008 per recipient
}

Run it once, look at the output shape, then replace the JSON.stringify line with the price field and add if (price > w.target) continue; so you only hear about drops. To alert only on a new low, save the last price per route in a file and compare with that too. Add hotels to the same loop with hotels-flights.search-hotels and a target nightly rate.

Naive does not need to own the schedule. Run the script from cron, a CI scheduled job or any task runner. Twice a day with cron:

0 7,19 * * * cd ~/fare-watcher && npx tsx watch.ts

Three routes twice a day is six comparison calls at $0.002 each, about $0.012 a day, plus $0.0008 for each email that goes out. The amazon price drop tracker uses the same pattern for shopping.

Booking stays with you

Every travel tool here is read-only. The agent finds the fare, explains it and emails you a link; you book.

If you want an agent to pay for things later, Naive agent cards are in early access and not open to every account. Keep the purchase rule on always ask, so any payment waits for your approval in the app; see how to let an AI agent buy things safely and how to add human approval to an AI agent. Every call the agent makes is logged, so you can see which fares it checked and when.

Start tracking

Connect Claude or ChatGPT, ask it to compare your holiday dates, and set the script running for the routes you care about. Browse the travel tools on the developers page and the hotels and flights tools, or give the agent its own inbox first.

FAQ

Can ChatGPT track flight prices?
Not on its own: a chat answers when you ask and has no live fare data by default. Add Naive as a custom connector (https://mcp.usenaive.ai/v1/mcp) and ChatGPT can search fares, compare dates and give a buy-or-wait signal on demand. For alerts while you are away, run a short script on a schedule that emails you.
What is the best AI flight price tracker?
If you only watch one route, the free price tracking in Google Flights is hard to beat. An agent is worth it when you want several routes and date windows checked together, hotels in the same email, and a buy-or-wait note with each fare.
Can an AI agent predict if flight prices will go up?
It can tell you whether today's fare is low, typical or high for that route and suggest buy or wait. Nobody can promise where a fare goes next, so use the signal together with your own deadline.
How do I get a hotel price alert?
Pick the hotel or area and your dates, check the rate on a schedule with a hotel search tool, and email yourself when it falls below your target. The same script that watches fares can add hotels to one digest.
Can the agent book the flight for me?
This guide keeps booking with you: the agent sends the fare and a link, you book. Agent cards are in early access and not open to every account; if you get one, keep purchases on always ask so each one waits for your approval.
How much does it cost to track flight prices with Naive?
Fare-by-date comparisons are $0.002 per call, the buy-or-wait check is free and each alert email is $0.0008 per recipient. Checking 3 routes twice a day is 6 comparison calls, about $0.012 a day. New accounts get $1 of free credit.