Tell ChatGPT what the shopper needs to know
In the price checker example, a new item costs £12 plus £2 postage. Even when the item price drops, the customer might still pay £14. You want a page that explains whether the total changed.
ChatGPT can help write the code for that page. Start by giving it four made-up observations with answers you already know. At this stage the page needs no ScraperAPI account and makes no live requests.
Give it the four sample visits
The download below contains the four visits in a format called JSON. It is a text file with a label for each value, such as the item price and postage. Attach it to a ChatGPT conversation and paste the prompt below. You can also paste the file contents into the conversation.
Build a small, mobile-friendly website for a retailer checking competitor prices. Start with the attached fictional JSON file. Make no network requests.
Let me switch between visits. Only compare a new standard edition in GBP for the same destination. Show the item price, postage and delivered total. Exclude used copies and bundles. Treat missing postage as unknown. Keep the last verified total and explain whether a price really changed.
Show the reason for every excluded offer. Test all four visits. Make it clear the prices are fictional.The ChatGPT link is an ordinary link. Fieldwork Atlas earns no commission from it.
Check each answer against the example
| Visit | Answer to expect |
|---|---|
| First visit | Record £14.00 as the first delivered total. |
| Headline drop | Still £14.00. No delivered-price change. |
| Real price cut | £12.50 delivered. Flag the £1.50 fall. |
| Postage missing | Hold for review. Last verified total is £12.50. |
Try all four visits in the page ChatGPT returns. If missing postage is treated as free, tell it which visit gave the wrong answer and why. Ask it to correct the rule, then try all four visits again.
Connect one real page after the sample works
Now you need fresh prices. Choose one page you are allowed to collect. Ask ChatGPT to help you write a program on your server that gives ScraperAPI the page address and receives the contents. Store your private ScraperAPI key on the server so it is never sent to a visitor’s browser.
Your program must then find the right item and read its price and postage. Feed those values into the price checker you already tested. Open the source page yourself and compare the answer with what a customer sees.
This is the difference between a quick first draft and a check a shop can rely on. Before running it regularly, try a changed layout, a failed request and missing postage. Decide how often you can afford to check and when a person needs to intervene.
Further reading · Creating a site with ChatGPT · ScraperAPI page retrieval