Weekly Grocery Automation
The Problem I kept forgetting to buy groceries. Not occasionally — consistently. I’d run out of food, tell myself I’d order later, and later never came. It was affecting my health and energy levels, so I decided to automate the entire thing. What I Built A fully automated grocery pipeline that runs every Sunday at 9am: Reads a JSON grocery list I maintain by texting my AI agent (“add chicken thighs”, “milk is empty”) Launches a headless Playwright browser with a persisted Instacart session Searches each item on Instacart, picks the best match, and adds it to cart Logs each item’s name, price, and quantity to a local CSV for spend tracking Sends a Telegram summary to my group chat with a direct checkout link I review the cart, tap checkout, and the groceries arrive. That’s my only job. ...