Thursday, 3 Dec 2026 Global Edition
Live Wire
AI Today Daily AI journalism & intelligence
Front Page Tips & Tutorials Baca versi Indonesia

Know the Price Drop First: Build a Simple Watcher Script with AI Chat

Stop refreshing the same page all day. Assemble a tiny watcher script with an AI chat and let the alert come to you, not the other way around.

Know the Price Drop First: Build a Simple Watcher Script with AI Chat

You open the same store page five times a day. Refresh the job board every morning. Manually check the clinic portal or the university announcement page because you cannot afford to miss the moment something appears. None of that is human work — it is machine work that nobody has assigned yet.

The good news: you do not need to be a programmer to have your own tiny watchman. With an AI chat assistant, people with zero coding background can assemble a simple watcher script — a small program that checks something on a schedule and pings you only when the condition you set is met. This guide walks you through it step by step, from choosing the target to receiving the first notification on your phone.

1. Pick One Thing Worth Watching, Then Define What Counts as News

The most common beginner mistake is trying to monitor everything at once. Do not. Pick the single thing you manually checked most often this week: the price of a dream gadget, stock availability, an official announcement page, an appointment slot, or a job listing.

Then define the alert condition precisely. "Tell me when there is a discount" is too vague. "Send me a message if the price drops below $150" can be answered with a clear yes or no. The rule of thumb: your condition must be decidable from the page content alone, with no interpretation. If it is still fuzzy, hand this job to the AI chat — paste your description and ask it to reformulate the condition into something measurable.

2. Brief the AI Chat as Specifically as Possible

Script quality depends heavily on briefing quality. Before writing your prompt, prepare five pieces of information: the address of the page to watch, the data to extract, the alert condition, the notification channel, and the execution environment (your operating system, and whether Python is already installed).

A prompt you can adapt right away:

I need a simple Python script for Windows 11.

Task: open https://example.com/product/abc, extract the product
price (the text right after the "Price:" label), and compare it
with the number stored in status.json in the same folder.

Send a notification to my Telegram bot if the price is below
$150 AND different from the previous check. If nothing changed,
send nothing.

Use the requests and BeautifulSoup libraries. Add a comment on
every step and explain how to run this script from scratch,
including the pip commands I need to type.

Notice the line "if nothing changed, send nothing." That one short sentence is the difference between a useful tool and a personal spam machine. The AI will obey it — but only if you actually write it down.

3. Test It Once Before You Install Anything

Save the result as watch_price.py, open a terminal, and run it once. Three problems cover most first-run failures: a missing library (a ModuleNotFoundError, fixed with a quick pip install), an element that cannot be found because the selector is wrong, or the site blocking script access.

For selector problems, do not guess. Open the target page, right-click, choose View Page Source, copy the HTML snippet around the price, and paste it into the AI chat with: "this selector finds nothing — fix it based on the following real HTML snippet." That usually closes in one round of conversation.

One caveat: if the page renders entirely through JavaScript, a selector on the raw HTML will indeed find nothing. Ask the AI to switch the approach to a browser-based tool such as Playwright.

Test the alert logic too, not just connectivity. Temporarily set the threshold to a number that is guaranteed to trigger, run it, and confirm the notification actually arrives. Then restore the serious threshold.

4. Give the Script a Tiny Memory So It Does Not Ping Twice

A script without memory will report the same thing on every run, and you will switch it off on day three out of sheer annoyance. The fix is simple: before exiting, the script saves the latest state — the last price, or a "fingerprint" of the page — into a small file. On the next check, it compares the new result against that file.

For general page-change monitoring, the most practical concept is a hash: a short fingerprint computed from the page content. Content changes, the hash changes; an identical hash means nothing new, so stay silent.

You do not need to compute it yourself. Just ask: "Add status persistence to status.json and use the SHA-256 hash of the page body for change detection. Skip the notification if the hash matches the previous one."

5. Schedule It, Pick the Channel, Then Leave It Alone

A script you can only run manually just relocates your manual work. Attach a scheduler: Task Scheduler on Windows, or cron on macOS and Linux. To check three times a day — 9:00, 13:00 and 18:00 — the cron rule looks like this:

0 9,13,18 * * *  python3 /home/you/watch_price.py

Two important notes at this stage. First, ethics: do not order a check every 30 seconds. The site belongs to someone else; two to three checks per day is plenty for most cases, and respect the site's terms of service. If the site offers official notifications or a newsletter, use the official channel instead.

Second, the channel. Telegram is the easiest choice: create a bot through BotFather, copy the token, and the script only needs to send a single HTTP request to message you. Email and desktop notifications also work — state your choice in the initial brief so the AI prepares the code from the start.

6. Plan for the Day Your Script Gets Sick

Web pages change. Designs get refreshed, price labels get renamed, and your script suddenly goes blind. There are two failure modes: loud failure, where the script errors visibly; and silent failure, where the script runs "successfully" while finding no data at all. The second is more dangerous, because you feel safe while nothing is actually being watched.

Prevent silent failure from the initial brief with one added instruction: "If the price element is not found, do not exit quietly — send a watcher needs repair message to my Telegram." That single line turns a fragile tool into one that reports when it is sick.

Also add a small routine: once a month, run the script manually and spend five minutes reading its log. The fix is usually one selector that shifted position — and the same AI chat that built the script can repair it from one paste.

Start with the one thing you manually checked most this week. With a clear brief, the first script usually works in under an hour, learning time included. Once one watcher runs steadily, the same pattern copies over to the next target: ticket prices, appointment slots, announcements you cannot afford to miss. Your tiny watchman works in silence while you focus or sleep — you simply receive the news that actually matters.

References

Partner Spotlight Explore today’s curated technology offers