AWS Builder Center
Weekend Annoying Task Challenge: PricePilot AI

Weekend Annoying Task Challenge: PricePilot AI

PricePilot is your AI deal radar. Paste any product link, say what you’ll pay, and it tracks prices across stores, then hits you with Buy Now or Wait when the moment’s right. Built with Amazon Nova on AWS.

AI Engineer | Autonomous Systems, Quant Analysis & Neural Decoding
I Actually didn’t set out to “build an AI shopping tool.” I set out to stop lying to myself about prices.
It started on a Tuesday night. I’d been watching the same Jetson board for weeks NVIDIA’s page one day, an Amazon listing the next, a “deal” email the morning after. Each time the number looked plausible. Each time I told myself I’d check again tomorrow with a clearer head. By Friday I’d refreshed the same three tabs enough times that the product page layout was burned into muscle memory, and I still couldn’t answer the only question that mattered: is this actually a good price right now, or am I just tired of waiting?
Soon it become an annoying task everyday. Not budgeting. Not researching. The quiet, repetitive ritual of re-checking opening pages, squinting at a number with no context, closing the tab, forgetting what you saw, repeating it next week. It doesn’t feel productive enough to put on a to-do list, which is exactly why it keeps winning.
I wanted something that would take that ritual off my plate: remember the URL, remember what I said I cared about (“under $300,” “don’t bother me unless it’s real”), keep a history so today’s price isn’t floating in a vacuum, and interrupt me only when the answer flips from wait to buy. Not another wishlist. A watcher with judgment.
That’s how PricePilot started.

Vision

The vision is it is not “another price tracker.” Trackers already exist. The gap is judgment under uncertainty.
A raw number on a product page is incomplete information. Without history, you don’t know if $379 is a floor or a trap. Without cross-store context, you don’t know if Amazon is beating the manufacturer’s marketplace or the other way around. Without memory of how you behave whether you wait for deeper cuts on electronics, whether you skip soft discounts a bot that screams every time a threshold is crossed trains you to ignore it.
PricePlot’s vision is a personal deal radar: an always-on system that owns the weekly re-check ritual, reasons over history and preference, and interrupts only when acting is smarter than waiting. It should feel less like a spreadsheet and more like a careful shopping partner that happens to be implemented as serverless AWS + Amazon Nova.
The non-negotiables baked into that vision:
  • Automatic - EventBridge must keep checking when I forget the tab.
  • Explainable - every Buy/Wait comes with a reason and a confidence level, not a mysterious score.
  • Personal - private accounts, private memory; your skips teach the next verdict.
  • Honest - if a public price can’t be verified, say so. False confidence is worse than silence.
  • Comparable - the real world has more than one URL for the same kit; the product has to respect that.

What the App Does

PricePlot replaces the weekly re-check loop with a closed decision system: observe price → situate it in history → compare retailers → judge Buy vs Wait → interrupt only when that judgment flips.
You don’t babysit thresholds in a spreadsheet. You hand it a product URL and an intent in natural language; Nova compiles that into a structured watch. From then on the system owns the chore.
Observation. Each watch binds one or more live product URLs. On every run the checker fetches those pages, extracts the price a shopper would actually pay, and appends a point to a durable history series. The sparkline is that series made visible evidence, not chrome.
Comparison. The same SKU rarely lives at one address. Multi-store URLs sit on a single watch: every source is re-read, ranked, and collapsed into  bestPrice  /  bestStore  so the verdict is about the market, not whichever tab you opened last.
Judgment. Crossing a dollar line is not the product. Nova receives best price, target/intent, history trajectory, and a compact profile of how you tend to buy then returns Buy Now or Wait with confidence and a concrete reason (true floors, shallow discounts, “under target but not historically special,” and so on).
Selective interruption. Alerts fire on state change: newly Buy, or newly across your target. Scheduled sweeps can update history quietly. Email ends “I’ll check again tomorrow”; it does not narrate every scrape.
Adaptation. Recorded outcomes (bought vs skipped) fold back into that private profile so later judgments track your real discount tolerance without turning the product into an open-ended chat.
In short: an automated deal radar with an explainable Buy/Wait policy, not a wishlist with notifications taped on.


How I Built It

PricePilot was built as a thin control plane plus a longer-running judgment worker. The browser only needs to create watches and show results. The hard work fetch the page, extract the price, update history, ask Nova for Buy/Wait, and send mail when the answer flips lives in a Lambda that can run on demand or on a schedule. Everything below is how that split was designed, what was chosen instead of the obvious shortcuts, and what broke before it shipped.
Development process
I did not start with a dashboard mock. I started by writing down the job the system had to finish without me:
  1. Take a product URL and a plain-English target (“alert me under $300”).
  1. Fetch the live page and extract the real selling price and title.
  1. Store that price on a history series so today’s number has context.
  1. Ask Nova whether this is a Buy or a Wait, given history and how I tend to shop.
  1. Email me only when that judgment actually changes in my favor.
  1. Repeat on a schedule so the weekly tab-refresh ritual dies.
Once that loop was clear, I mapped each step onto AWS and locked infrastructure in AWS SAM ( template.yaml ) before polishing UI. The stack creates two Lambdas ( api  and  checker ), two DynamoDB tables ( Watches ,  Memory ), an HTTP API with a Cognito JWT authorizer, EventBridge Scheduler for the daily sweep, and IAM roles for Bedrock, SES, DynamoDB, and async Lambda invoke. Deploying early meant every design choice had to survive a real CloudFormation deploy, not a laptop demo.
With the stack standing, I built the shared Python modules under  app/common/ :
  •  fetch.py  - download and clean product HTML (and escalate through a JS-render provider when a store blocks plain HTTP).
  •  bedrock.py  - four narrow Nova calls via the Bedrock Converse API (intent, extract, verdict, memory rewrite).
  •  db.py  /  memory.py  - DynamoDB access for watches and the per-user preference summary.
  •  watcher.py  - the create/refresh lifecycle that ties fetch → extract → history → verdict together.
Then I wired the HTTP surface in  api.py : create a watch, list watches, force a check, add a compare source, record a buy/skip decision, read memory. After create → check → verdict worked end-to-end with  curl  and CloudWatch logs, I built the Market Watch frontend (vanilla JS) against the real Cognito pool and API ticker, filters, sparklines, multi-store compare.
Last step was making the always-on path real: EventBridge Scheduler invokes  checker  on a cadence (default daily). The same  checker  code path also runs when the API asks for an on-demand refresh, so scheduled automation and interactive “Check now” cannot drift apart.


as you see this is the notification of price drop, i would love to open and show this mail but unfortunately im not able to upload the open mail i think its a restriction from builder center. but no worries you guys could try to sign up and get better deals on price drops

Key decisions
Amazon Nova does four jobs with contracts, not a free-form chat. Every Bedrock call returns a tight shape: intent →  { target_price, intent, note } ; extract →  { title, price, currency, in_stock } ; verdict →  { decision, confidence, reason } ; memory → a short preference paragraph. Temperature is  0.0 . That made the agent testable: if the JSON is wrong, the bug is in one prompt or one parser, not in a wandering conversation.
No hand-written CSS selectors per retailer. Writing Amazon-vs-NVIDIA scrapers would have burned the weekend and broken next month. Instead the pipeline fetches HTML, strips scripts/styles, pulls markup hints ( og:title , price-like candidates), and lets Nova reconcile the selling price from cleaned text.  robots.txt  is checked before fetch. When a site needs JavaScript or fights bots, the fetch layer escalates to a render provider (including premium when a normal render returns no usable price) and still fails soft per source so one dead store does not kill the whole watch.
API Gateway stays fast; page intelligence runs async. HTTP API has a hard ~30s timeout. Protected product pages often take longer. So  POST /watches ,  POST /watches/{id}/check , and  POST /watches/{id}/sources  write state immediately ( status: checking ), then asynchronously invoke the  checker  Lambda ( InvocationType=Event , 300s timeout). The UI polls until the watch leaves  checking . That split is what made NVIDIA-class pages work without the browser seeing a gateway timeout.
One checker, two triggers. Interactive demos and production automation share  checker.py . User-driven events pass  { userId, watchId } . The schedule passes an empty/sweep payload and the function walks every watch. Same extract → history → verdict → SES path either way.
Memory is a short DynamoDB summary, not a vector database. After a buy or skip, Nova rewrites a ≤100-word profile of that user’s discount tolerance. The next verdict prompt includes that summary. It is cheap, inspectable in the console, and enough to stop the agent from treating every soft discount like a crisis.
Compare lives inside the watch, not as a second product. A watch owns  sources[]  (store, URL, price, image, errors), plus  bestPrice  /  bestStore ,  history[] , and  verdict . “Add store to compare” appends a source and re-runs the checker. The judgment is always about the market, not whichever tab I opened last.
Challenges and how I overcame them
  1. HTTP edge timeout vs agent runtime. API Gateway’s ~30s ceiling and a Bedrock + JS-rendered fetch do not fit in one request. Creating or refreshing a watch synchronously died on the stores people actually care about. I split planes: the  api  Lambda writes  status: checking  and returns immediately; it async-invokes  checker  ( InvocationType=Event , 300s timeout) to finish fetch → extract → history → verdict. EventBridge hits that same worker on a schedule, so interactive checks and always-on sweeps share one code path instead of two diverging implementations.
  1. Structured Nova output under production noise. Converse calls that “usually” return JSON still occasionally wrap markdown, nest a field wrong, or omit a key. A free-form chat UI can shrug; a price agent cannot. Every Bedrock path in  bedrock.py  pins  temperature=0.0 , asks for a fixed schema (intent / extract / verdict / memory), and runs a defensive JSON extract + type coerce layer before DynamoDB writes. If extraction still fails, the source is marked  unavailable  instead of inventing a price; if the verdict call blips, a conservative target-compare heuristic fills in at low confidence so the schedule never leaves a watch silently empty.
  1. Authorizing the API without breaking the browser. Putting a Cognito JWT authorizer on a catch-all  ANY /{proxy+}  route also authorized CORS  OPTIONS . Browsers never attach tokens to preflight, so the UI saw “Failed to fetch” while  curl  with a bearer token looked fine a classic split-brain that wastes hours. Fix was explicit GET/POST/DELETE routes (OPTIONS stays unauthenticated at the gateway), path parsing for  watchId  inside the Lambda, and keeping JWT required on the real methods. Tenancy stays  userId = token.sub  on every DynamoDB key.
  1. Scheduled agents and alert idempotency. A daily sweep that emails on every “still Buy” is spam with AWS branding. The checker computes whether the situation is newly alert-worthy (verdict flipped to Buy, or price newly crossed the user’s target) before SES send, and logs an explicit  SES alert sent  line with subject when delivery succeeds. Sandbox identity quirks (verified sender vs Cognito email casing) were handled with recipient candidate fallbacks so a real Buy on a Jetson watch could actually leave the account.

AWS Services Used

Service
Responsibility in PricePilot
Amazon Bedrock - Amazon Nova Lite
NL target parsing; multimodal-friendly page understanding via text extraction prompts; Buy/Wait judgment; memory rewrite
AWS Lambda -  api 
Authenticated CRUD for watches; queue checker; expose memory and decisions
AWS Lambda -  checker 
Scheduled/on-demand agent: fetch → extract → history → verdict → SES
Amazon EventBridge Scheduler
Time-based trigger for  checker  (default  rate(1 day) )
Amazon DynamoDB
 Watches  table (PK  userId , SK  watchId ) and  Memory  table (PK  userId )
Amazon Cognito
User pool, app client, JWT issuer for API Gateway
Amazon API Gateway (HTTP API)
JWT authorizer + routes for the dashboard
Amazon SES
Transactional Buy alerts to the signed-in user’s email
Amazon S3 + Amazon CloudFront
Static hosting path for app assets
AWS IAM (via SAM)
Least-privilege roles: DynamoDB CRUD,  bedrock:InvokeModel ,  ses:SendEmail ,  lambda:InvokeFunction 
AWS SAM / CloudFormation
Reproducible one-stack deploy of the entire backend


Architecture Overview PricePlot separates request latency from page intelligence:

  • The control plane ( api  + API Gateway + Cognito) must stay fast and boring.
  • The data/agent plane ( checker  + Bedrock + fetch + SES) may take longer and is triggered either by the control plane or by EventBridge.
mermaid
flowchart TB
subgraph Client
UI[Market Watch UI]
end
subgraph Identity
COG[Amazon Cognito]
end
subgraph Edge
APIGW[API Gateway HTTP API<br/>JWT authorizer]
end
subgraph Compute
API[Lambda api]
CHK[Lambda checker]
end
subgraph Intelligence
BR[Amazon Bedrock<br/>Nova Lite]
end
subgraph State
W[(DynamoDB Watches)]
M[(DynamoDB Memory)]
end
subgraph Messaging
SES[Amazon SES]
end
subgraph Schedule
EB[EventBridge Scheduler]
end
UI -->|sign-up / sign-in| COG
UI -->|Authorization: Bearer id_token| APIGW --> API
API --> W
API --> M
API -->|Converse: intent / memory| BR
API -.->|async Invoke| CHK
EB -->|rate schedule| CHK
CHK -->|fetch product HTML| NET[Retail sites via fetch/ScraperAPI]
CHK -->|Converse: extract + verdict| BR
CHK --> W
CHK --> M
CHK -->|Buy alert| SES --> UI
Data model
Watch item: user identity, title, currency,  targetPrice ,  intent ,  note ,  sources[]  (per-store URL/price/image/errors),  bestPrice  /  bestStore ,  history[]  of  { ts, price } ,  verdict ,  status  ( checking  |  active  |  unavailable ), timestamps.
Memory item:  summary  string + recent  decisions[]  for audit/debug.
How the agent is triggered
In this system the agent is the  checker  Lambda: it gathers evidence (pages + history + memory), calls Nova for a verdict, mutates state, and may act (email).
Trigger A - user-driven (interactive demos and immediate feedback) Events: create watch, add compare source, Check now / Check all. Mechanism:  api  calls  lambda:Invoke  with  InvocationType=Event  and payload  { userId, watchId } . Why: keeps API Gateway under its timeout while still giving a “check right now” path for screenshots and debugging.
Trigger B - system-driven (the actual solution to the weekly chore) EventBridge Scheduler rule, defined in SAM, invokes  checker  on a cadence with an empty/sweep payload.  checker  scans all watches, refreshes each source, updates history/verdicts, and sends SES only when  _is_alert_worthy  says the situation newly became a Buy or newly crossed the user’s target so you don’t get spammed on every daily run.

AI architecture details
| Prompt role | Inputs | Output contract |
| --- | --- | --- |
| Intent | User sentence + optional title/price | JSON target + intent enum |
| Extract | Cleaned page text, title hint, price candidates | JSON title/price/currency/stock |
| Verdict | Title, best price, target, intent, history series, memory summary | JSON buy/wait + confidence + reason |
| Memory | Prior summary + event text | Short plain-text profile |
Failure modes are deliberate: extraction miss →  unavailable ; Bedrock blip on verdict → conservative heuristic (target compare) with low confidence; single-source fetch error → keep other sources alive.
Security & tenancy
  • Cognito JWT required on mutating/reading APIs (after the CORS fix, OPTIONS is unauthenticated by design).
  • DynamoDB keys are scoped by  userId  from token  sub .
  • Secrets like the scraper key are SAM  NoEcho  parameters → Lambda environment, never shipped in the frontend bundle.
  •  robots.txt  consulted before fetch; privacy/terms pages document collection of email, watches, and memory.

What I Learned

Typed agent stages under Bedrock. The skill this challenge sharpened was not calling a model it was owning the full stage boundary: Converse in, sealed JSON/text out, coerce, write or soft-fail. Intent, extract, verdict, and memory rewrite each get their own contract at  temperature=0.0 . When Nova drifts, you get a failed stage in CloudWatch instead of a mushy chat. Same discipline applies to any agent that mutates DynamoDB.
Control plane vs sensor plane under a hard HTTP ceiling. Designing so the JWT’d API only enqueues work ( status: checking  + async invoke) while a long-timeout worker owns fetch + Bedrock + SES. That split is a build skill: product latency and agent runtime stop fighting each other.
Alert idempotency as correctness. Encoding newly Buy / newly under target before any send, and proving delivery in logs. Notification policy is not polish, it is how you keep a schedule from lying.
SAM kept the whole graph deployable as one stack so the dual-trigger design could not quietly rot into console snowflakes.
Lossy-web sensor. Escalate render when HTML is hostile, reconcile with Nova, mark  unavailable  per source, keep sibling stores alive. Partial observation beats owning CSS per retailer on a weekend clock.
Scope as architecture. The Jetson re-check loop watch → judge → notify was the acceptance test. Anything that did not feed that loop got cut, which is why the AWS surface stayed coherent.

Link to App or Repo

PricePilot doesn’t refresh the tab for you. It decides when the refresh was worth it.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article