# Build an Amazon Price Drop Tracker Agent That Emails You

> Build an Amazon price tracker with an AI agent: it checks your watchlist, compares Google Shopping offers and emails you a price drop alert. Claude, ChatGPT or API.

- URL: https://usenaive.ai/blogs/amazon-price-drop-tracker-ai-agent
- Published: 2026-11-27
- Author: Naive team

## TL;DR

- An Amazon price drop alert is a loop: read the current price of each product on your watchlist, compare it with your target price, and send a message when it falls below.
- On Naive the agent gets its own identity and inbox, reads Amazon prices with amazon.search ($0.00015 per call) and emails you the drop at $0.0008 per recipient.
- It can also check other stores before it alerts you: shopping.offers lists offers for a product, cheapest first, at $0.00015 per call, and the Walmart tool covers Walmart listings.
- Claude and ChatGPT can run the same check on demand through the Naive connector. For checks that run while you sleep, run the script from cron or any scheduler you already use.
- The agent only alerts. If you later let it buy, cards are in early access and every purchase can wait for your approval.

To build an Amazon price drop tracker, keep a watchlist of products and target prices, have an agent check the current Amazon price on a schedule, and email you when a price falls below your target. On Naive the agent has its own inbox, reads prices with the `amazon.search` tool, checks Google Shopping offers before it alerts you, and sends the alert from its own address, so nothing runs through your personal mail.

This guide builds that agent in TypeScript in five steps, with a CLI and a Claude or ChatGPT path for each part.

## How do Amazon price trackers work?

Every price tracker does the same three things:

1. **Read the price.** Fetch the current price of each product you care about.
2. **Compare.** Check it against a target you set, or against the last price it saw.
3. **Notify.** Send a message when the price crosses the line.

The difference between trackers is where each step runs and how the alert reaches you.

## Browser extension vs official API vs an agent

| | Browser-extension tracker | Amazon's official API | Agent on Naive |
|---|---|---|---|
| Where it runs | In your browser, on Amazon pages | Your own code | Your code, Claude or ChatGPT |
| Access | Install and sign up | Needs an Amazon Associates account | One Naive API key |
| Other stores | Usually Amazon only | Amazon only | Amazon plus Google Shopping offers and Walmart |
| Alert | Extension notice or the tracker's email | You build it | Email from the agent's own inbox |
| Custom rules | Target price | Anything you code | Anything you code or ask for in chat |

Extensions are the quickest way to watch a handful of products. An agent is the better fit when you want your own rules (a target per product, a check of other stores first, one digest email instead of ten), or when the tracker is part of something bigger, like a reseller watching margins or a team watching competitor pricing.

## What does the agent need?

- **An identity and an inbox.** The identity is who the agent is; the inbox is the address the alert comes from. See the [inbox resource](/primitives/resources/inbox) and [how to give an agent its own inbox](/blogs/give-your-ai-agent-an-email-inbox).
- **Amazon tools.** `amazon.search` returns products for a keyword with ASIN, price, rating and review count. `amazon.reviews` summarises what buyers say about one ASIN.
- **A second price source.** `shopping.offers` returns offers for a product from Google Shopping, cheapest first.
- **A schedule.** Cron, a CI scheduled job or any task runner you already have.

| Step | What | Call | Cost |
|---|---|---|---|
| 1 | Identity and inbox | `naive.identities.create`, `naive.emails.create` | Included |
| 2 | Amazon price | `amazon.search` | $0.00015 / call |
| 2 | Review check (optional) | `amazon.reviews` | $0.015 / call |
| 3 | Other stores | `shopping.offers` | $0.00015 / call |
| 4 | Alert email | `naive.emails.send` | $0.0008 / recipient |
| 5 | Schedule | cron or your scheduler | Free |

[Create a Naive account](https://developers.usenaive.ai/signup?ref=blog-amazon-price-drop-tracker-ai-agent) to get an API key and $1 of free credit with no card. The free credit covers email to the address you signed up with, which is all a personal tracker needs.

## Step 1: Create the agent's identity and inbox

```ts
import { createNaive } from "@usenaive-sdk/naive";

const naive = createNaive(); // reads NAIVE_API_KEY

const tracker = await naive.identities.create({ name: "price-tracker" });
const inbox = await naive.emails.create(tracker.id, {}); // on the shared Naive domain
console.log(tracker.id, inbox.id, inbox.address);
```

Or with the CLI:

```bash
naive identity create --name price-tracker
naive email create --identity idn_123
```

Save the `idn_` and inbox ids; the script in step 3 uses them.

## Step 2: Read Amazon prices from the CLI

Try the tools by hand first. Search by product name, as specific as you can:

```bash
naive tools run amazon.search --arg query="sony wh-1000xm6" --arg country=us
```

The response lists matching products with their ASIN and current price. Illustrative output (the shape is real, the values are examples):

```json
{
  "query": "sony wh-1000xm6",
  "data": [
    { "asin": "B0EXAMPLE1", "title": "Sony WH-1000XM6 Wireless Headphones", "price": 398, "rating": 4.6, "reviews": 1520 }
  ]
}
```

Before you set a target on an unfamiliar product, check what buyers say about it:

```bash
naive tools run amazon.reviews --arg asin=B0EXAMPLE1
```

That returns a review summary and themes with positive and negative counts, which is a useful filter: a price drop on a product with a recurring defect complaint is not a deal.

For the Walmart tool, read the inputs of each action before you call it:

```bash
naive tools get walmart
```

## Step 3: Compare each product with its target

The watchlist pairs a search query with the ASIN you mean and your target price. Matching on ASIN means a cheaper look-alike in the results never triggers an alert.

```ts
import { createNaive } from "@usenaive-sdk/naive";

const naive = createNaive();

const IDENTITY = "idn_123";   // the price-tracker identity
const INBOX = "eml_123";      // its inbox
const TO = "you@example.com"; // the email you signed up with

const WATCHLIST = [
  { query: "sony wh-1000xm6", asin: "B0EXAMPLE1", target: 330 },
  { query: "electric standing desk 55in", asin: "B0EXAMPLE2", target: 170 },
];

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; // failed, or held for approval
  } catch {
    return null;
  }
}

const drops: string[] = [];

for (const item of WATCHLIST) {
  const found = await run("amazon.search", { query: item.query, country: "us" }); // $0.00015
  const product = found?.data?.find((p: any) => p.asin === item.asin);
  if (!product || typeof product.price !== "number") continue;
  if (product.price > item.target) continue;

  // Price is at or under target: check other stores before alerting.
  const offers = await run("shopping.offers", { product: product.title }); // $0.00015
  const best = offers?.data?.[0]; // cheapest first
  const elsewhere = best && best.price < product.price
    ? `Cheaper elsewhere: ${best.store} at $${best.price}`
    : "Amazon is the lowest offer found";

  drops.push(
    `${product.title}\n  Amazon: $${product.price} (target $${item.target})\n  ${elsewhere}\n  https://www.amazon.com/dp/${item.asin}`,
  );
}
```

The script keeps no state between runs, so it alerts every time a product is under target. To alert only on a new drop, store the last price you saw per ASIN in a file or database and compare with that too.

## Step 4: Email the alert from the agent's inbox

One digest email per run keeps your inbox quiet. Add this to the end of the script:

```ts
if (drops.length) {
  await naive.emails.send(IDENTITY, INBOX, {
    to: [TO],
    subject: `Price drop: ${drops.length} item${drops.length > 1 ? "s" : ""} under target`,
    text: drops.join("\n\n"),
  }); // $0.0008 per recipient
}
```

`naive.emails.send` takes the identity id, the inbox id and `{ to, subject, text }`. Bodies are plain text. The alert comes from the agent's own address, so you can filter it into its own folder and reply to it later if you give the agent a way to read replies.

## Step 5: Run it on a schedule

Naive does not need to own the schedule. Run the script from cron, a CI scheduled job or any task runner you already have. Every four hours with cron:

```text
0 */4 * * *  cd ~/price-tracker && npx tsx tracker.ts
```

Cost for 20 products checked 4 times a day: 80 Amazon searches at $0.00015 is $0.012 a day, plus $0.00015 per Google Shopping check and $0.0008 per alert email, only on days something drops.

## Use it from Claude or ChatGPT

You can skip the code and ask in chat. Add Naive as a custom connector at `https://mcp.usenaive.ai/v1/mcp` (or give a coding agent the skill at [usenaive.ai/developers/skill.md](/developers/skill.md)), then ask:

> Check these Amazon products against my target prices: Sony WH-1000XM6 under $330, a 55-inch electric standing desk under $170. For anything under target, check Google Shopping for a cheaper offer, then email me a summary from the price-tracker inbox.

ChatGPT sees named tools and `tools_search`/`tools_execute`; Claude finds the Amazon and shopping tools through `tools_search`/`tools_execute`. A chat only acts when you message it, so it is a good way to check a list before a sale. For seasonal sales, see [how to find Black Friday deals with ChatGPT and Claude](/blogs/find-black-friday-deals-chatgpt-claude).

## What about buying automatically?

Keep the tracker an alert. If you later want the agent to buy at your price, that needs a card, and cards are in early access, not open to every account. Set the identity's purchase rule to always ask: a held action returns an approval, and your code can wait for your decision with `naive.approvals.wait(id)`. Read [how to let an AI agent buy things safely](/blogs/ai-agent-virtual-card-spending-limit) before you turn it on.

## Next steps

- Read [Naive for developers](/developers) for the SDK, CLI and connector.
- Browse the [Amazon tools](/primitives/tools/amazon) and the [Google Shopping tools](/primitives/tools/google-shopping).
- For a daily digest instead of drop alerts, see the [daily market brief agent](/blogs/daily-market-brief-ai-agent), which uses the same inbox pattern.

## FAQ

### How do I get an alert when an Amazon price drops?

Keep a watchlist of products with a target price, check the current price on a schedule, and send yourself a message when it falls below the target. Browser extensions do this for you inside Amazon; an agent does it with its own inbox and can compare other stores before it emails you.

### Is there a free Amazon price tracker?

Several browser extensions and price-history sites are free. With Naive you pay per call from prepaid credit: $0.00015 for an Amazon search and $0.0008 per alert email, and new accounts get $1 of free credit with no card.

### Does Amazon have a price tracking API?

Amazon's Product Advertising API returns product prices but is tied to an Amazon Associates account. Naive's amazon.search tool returns products for a keyword with price, rating and review count, behind one API key, with no Associates account.

### Can ChatGPT or Claude track Amazon prices?

Yes, on demand. Add Naive as a custom connector (https://mcp.usenaive.ai/v1/mcp) and ask it to check your list against your target prices and email you the drops. A chat only acts when you message it, so for automatic checks run the script on a schedule.

### Can the agent buy the product when the price drops?

Only if you set that up, and cards are in early access, not open to every account. Keep a purchase rule of always ask, so any buy waits for your approval in the app.

### How often should a price tracker check?

Every few hours is enough for most products. At $0.00015 per Amazon search, checking 20 products 4 times a day is 80 calls, about $0.012 a day.
