OpenClaw Setup Guide
Automation

Grocery Ordering

Automated grocery cart building with diet profile and browser automation

Chewy maintains my diet and grocery profile, then automates adding items to my Whole Foods cart via browser automation. I have a Sunday main delivery and a Wednesday banana/top-up delivery.

The pieces:

  • Grocery profile (grocery-profile.md) -- diet, staple items, preferred brands, delivery cadence
  • Browser automation -- searches Whole Foods, adds items to cart
  • Weekly cadence -- cron check-ins for Sunday and Wednesday orders

Setup Prompt

Set up a grocery automation system:

1. Create a grocery-profile.md with:
   - My dietary preferences and restrictions
   - Staple items I always need (with quantities)
   - Items I buy weekly vs. monthly
   - Preferred brands
   - Delivery service (Whole Foods, Instacart, etc.)
   - Delivery address
   - Delivery cadence (e.g., Sunday + Wednesday)

2. Set up browser automation to:
   - Search for items on my grocery service
   - Add items to cart
   - Flag items that aren't available

3. Create a weekly cadence:
   - Sunday: full grocery order
   - Wednesday: top-up (bananas, anything running low)

4. ALWAYS get my approval before placing orders
5. Flag items that route to the wrong cart or aren't available

My diet: [describe your dietary preferences and staple items]

Heads Up

This has been pretty finicky in practice. The Whole Foods/Amazon web interface is complex and things break -- items route to Fresh instead of Whole Foods, or end up in the main Amazon cart instead of the grocery cart. Browser automation on these sites is fragile because the UI changes frequently.

I haven't tried this with Instacart yet, which might be a better fit since their interface is simpler and more focused on groceries. That's on the list to experiment with.

A few other things I ran into:

  • Always get approval before checkout. No auto-ordering.
  • Browser automation requires a saved login session (use a persistent browser profile).
  • Specialty items (I get meat from ranchers directly) need to be handled separately.

On this page