← Back to library

A grocery agent that builds two carts and asks Friday

matt palmer (@mattyp), who works at Cursor, runs a grocery bot that shops both Instacart and Amazon delivery, comparing products, package sizes and prices across two carts and factoring in delivery costs. Every Friday it prompts him to place an order for Saturday. He was surprised how well it handled store interfaces he finds tiring himself.

  • OutcomeHave an agent fill matching carts on two grocery services, compare items, sizes and delivery fees, and ask you each Friday which to order.
  • SetupUnder an hour
  • LevelIntermediate
  • Creditmatt palmer (@mattyp)
View original
Works with
Grok Bot

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

When should you use it?

  • You order groceries weekly
  • Two services deliver to you
  • Store apps wear you out

Not for: Orders you want placed without review; Very specific brand needs it cannot match

What do you need, and what do you get?

You need

  • Usual shopping list
  • Two store logins
  • Delivery address

You get

  • Two filled carts
  • Comparison by item and fees
  • A Friday order prompt

How does it work, step by step?

  1. Write the listKeep a standing list with sizes and acceptable swaps.
  2. Fill both cartsHave the agent add each item on both services.
  3. CompareShow price per unit and delivery fees side by side.
  4. Ask on FridaySend you the comparison with a recommendation.
  5. You place itCheck out yourself or approve the final step.

The prompt

Our own prompt, inspired by matt palmer (@mattyp) and written to work in Grok Bot. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt5 variables
Every {day} at {time}, add the items in {grocery_list} to carts on {store_a} and {store_b}.
Compare unit price, package size and delivery fees, and flag any item that is missing or substituted.
Send me a side-by-side summary with your pick. Do not check out; wait for my reply.

Inspired by matt palmer (@mattyp): Intro to Grok Bot. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Package sizes differ; compare unit prices.
  • Substitutions can change the total.
  • Leave payment as your step.

Our take

Comparing two grocery apps by hand is tedious because package sizes and product names rarely line up, and that mismatch is exactly where an agent earns its keep. Make unit price the comparison, ounces or kilos rather than pack price, or a cheaper-looking option can win for the wrong reason. List allowed swaps in advance, such as store brand for name brand on staples, and banned ones, such as no substitutions on allergies. Keep the final checkout yours; the Friday prompt is a nice touch because it turns the comparison into a habit without ever letting the agent spend money unasked. Review the first several comparisons closely to confirm matches are right, since agents can equate products that differ in quality or dietary details. Save both carts' contents and the winner each week so you can see whether one store consistently wins. If delivery fees or minimums change, update the rules rather than trusting last month's logic. Prefer a payment method with a low limit if you ever automate checkout later.

Where the time goes back: Weekly price checking across two stores happens without you clicking through either app.

FAQ

When does it ask?
On Fridays, so the order arrives Saturday.
What does it compare?
Products, quantities, prices and delivery cost.

Source and credit

Inspired by matt palmer (@mattyp). We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Intro to Grok Bot
Creator
matt palmer (@mattyp)
Published on
X
Original date
Aug 11, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Grok Bot
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends, bookings or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Food & Health

All 35 Food & Health playbooks →

Related playbooks

Food & HealthRoutine✓ AI dry run

An agent that watches for clinical trials for your diagnosis

Get a short morning alert only when a trial, approval or study that matches your diagnosis is new, with the source attached, so you can take it to your doctor.

Credit: Kevin Wimer (@kevinace)

Under an hour
Food & HealthRoutine✓ AI dry run

Reorder family groceries from what's actually in the fridge

Have an agent work out what your household is running low on and place a routine grocery order twice a week, with pickup timed for your commute.

Credit: u/Substantial_Option_3 on r/GrokBot

An afternoon+
Food & HealthWorkflow✓ AI dry run

A local-model grocery skill built from your recent orders

Give a local model a grocery skill with a rough fridge inventory, your last ten typical orders and live stock data, then let it fill the cart.

Credit: eurekin on Hacker News

An afternoon+
Food & HealthWorkflow✓ AI dry run

Speak your shopping list into Todoist

Say items naturally to a voice assistant, have a model split the sentence into separate items, and add each to a to-do or shopping list.

Credit: u/gargahcerk on r/homeassistant

Under an hour