TL;DR: This is an 8-step prompt chain that takes your grocery store deals, family size, and weekly budget and builds out a complete 7-day meal plan, shopping list, prep schedule, and contingency swaps. One conversation. Everything handled.
Why This One Is Worth Your Time
Feeding a family on a tight budget is genuinely hard to do well. It’s not just about finding cheap food. You’ve got dietary restrictions, picky eaters, deals that change week to week, and the very real possibility that you’re standing in the produce aisle Tuesday night with no plan.
This prompt chain was shared by u/CalendarVarious3992 on r/PromptEngineering, and it solves the whole problem in one structured conversation. Not just the meal ideas. The shopping, the prep, the backup plans, all of it.
It works because it doesn’t try to do everything in one prompt. Instead, it chains eight separate steps together, each with its own assigned role, and each one building on what was confirmed in the previous step.
How the Chain Is Structured
Here’s what each step does:
- 📋 Step 1, Gather Inputs: You define your family, budget, and paste in your store flyer data. The AI summarizes what it understood and asks you to confirm before moving on.
- Step 2, Extract Grocery Deals: It parses the flyer data into a structured table (store, item, size, price per unit) and flags anything that violates your dietary needs.
- Step 3, Find Best-Value Ingredients: From the deals, it selects the strongest value picks per food group and shows you how much of your budget is already spoken for.
- Step 4, Draft the 7-Day Meal Plan: Balanced meals for every day, with smart ingredient reuse to reduce waste and a running cost tracker against your budget.
- Step 5, Generate the Shopping List: A consolidated list organized by store, with prices and line costs. Budget overruns are labeled clearly.
- Step 6, Build a Prep Schedule: Batch cooking, timing, what to prep on weekends, what to handle mid-week, what needs to thaw overnight.
- Step 7, Contingency Swaps: Three swap options per food group if something’s out of stock, plus ideas for repurposing leftovers.
- Step 8, Final Review: The AI summarizes budget adherence, diet compliance, and prep feasibility, then asks you to approve or request changes.
Every step ends with a confirmation. Nothing carries forward until you’ve signed off.
What Makes This Prompt Work
The key technique here is role assignment at each step. The AI isn’t playing one generic assistant throughout. It’s a “detail-oriented data clerk” when parsing flyer data, a “nutrition-savvy budget analyst” when comparing ingredient value, and a “time-management coach” when building the prep calendar. Each role brings a different set of priorities to the same job.
The chain-of-thought structure is the other thing that makes it reliable. Instead of dumping all your requirements into one giant prompt and hoping for the best, you’re building on confirmed outputs at every step. Each stage is smaller, more focused, and easier to correct if something’s off.
💡 Use Cases
- Families with dietary restrictions (gluten-free, dairy-free, vegetarian) who want current deals factored in from the start
- Anyone trying to hit a strict weekly grocery budget without sacrificing variety
- Meal preppers who want batch cooking built into the schedule automatically
- Parents who want kid-friendly timing tips baked into the prep calendar
Prompt of the Day
Before you start, set three variables at the top: FAMILY_INFO (your household, restrictions, cuisine preferences), BUDGET (your weekly grocery max), and FLYER_DATA (paste your store’s current deals). Here’s the full chain:
VARIABLE DEFINITIONS FAMILY_INFO=A brief description of household size, ages (optional), appetites, and any dietary constraints or cuisine preferences BUDGET=Maximum total amount (in your local currency) that can be spent on groceries for the coming week FLYER_DATA=Copy-pasted text or links from current weekly grocery store flyers that list product deals, sizes, and sale prices ~ Gather Inputs You are an assistant helping a home cook plan a week of family meals on a budget. Step 1: Ask the user to supply or confirm the following: 1. FAMILY_INFO (example: "2 adults, 2 kids; vegetarian except fish once a week; lactose-free milk only") 2. BUDGET (example: "$150 CAD") 3. FLYER_DATA (paste full text or provide URLs to store flyers) Step 2: If any element is missing or unclear, ask targeted follow-up questions. Output a short, labeled summary of the gathered inputs once complete and request confirmation (yes / edit). ~ Extract & Structure Grocery Deals You are a detail-oriented data clerk. 1. Parse FLYER_DATA and list all sale items that are food ingredients. 2. Present results in a table with columns: Store | Item | Package Size | Sale Price | Price per Standard Unit (e.g., per 100 g or per piece). 3. Flag any items that clearly violate dietary constraints noted in FAMILY_INFO. Ask: "Proceed with these deals? (yes / remove item X / add more flyers)" ~ Identify Best-Value, Diet-Compliant Ingredients You are a nutrition-savvy budget analyst. 1. From the structured deals table, select ingredients that both comply with FAMILY_INFO and offer strong value (lowest price per unit within each food group). 2. Group selected items into: Proteins | Produce | Grains & Starches | Dairy & Alternatives | Pantry Staples | Misc. 3. Provide estimated cost subtotal for the chosen items and how much budget remains. Request user approval or edits. ~ Draft 7-Day Meal Plan You are a registered dietitian and home chef. Using approved ingredients and any common pantry basics (assume salt, pepper, basic spices are on hand): 1. Create a balanced 7-day plan with Breakfast, Lunch, Dinner (+ optional Snacks) for each day. 2. Ensure dietary constraints are respected and repeat ingredients intelligently to minimize waste. 3. Note recipe titles and main ingredients; add page/URL if well-known recipe exists. 4. Show daily estimated ingredient cost and running total versus BUDGET. Ask for confirmation or recipe substitutions. ~ Generate Final Shopping List & Cost Check You are an organized grocery planner. 1. Convert the meal plan into a consolidated shopping list (Ingredient | Qty | Preferred Store | Deal Price | Line Cost). 2. Sum total projected spend and compare to BUDGET. 3. Highlight in red text any line or total that exceeds budget. 4. Provide notes for coupon stacking or loyalty points if obvious from FLYER_DATA. (If red text unavailable, just prefix with "OVERBUDGET: ") Request acknowledgment. ~ Meal-Prep & Cooking Schedule You are a time-management coach. 1. Produce a weekly prep calendar broken into: Weekend Prep, Weekday Morning, Weekday Evening. 2. Batch-cook items where possible and identify longest-keeping meals for later in week. 3. Include reminders for thawing, marinating, or slow-cooker setup. 4. Suggest kid-friendly or time-saving tips relevant to FAMILY_INFO. Ask if the schedule looks practical or needs tweaks. ~ Contingency Swaps & Waste Reduction You are a resourceful chef. 1. List at least three ingredient swaps per food group in case deals are out of stock. 2. Provide ideas to repurpose leftovers into new meals or lunches. Ask for any final adjustments. ~ Review / Refinement Summarize: budget adherence, diet compliance, prep feasibility. Ask: "Does this plan meet your needs? Reply 'finalize' to accept or specify changes."
The original poster also notes that if you’d rather not run each step manually, there’s an automated version through Agentic Workers that runs the whole chain in one click. The link is in the original Reddit thread.
Try It This Week
Grab this week’s grocery flyer, set your three variables, and run the chain. By the end of the conversation you’ll have seven days of meals, a complete shopping list, and a prep schedule all built around what’s actually on sale.
The full discussion is on r/PromptEngineering if you want to see how others are adapting it or share your own variations.
Plan your family’s meals on a budget. Prompt included.
by u/CalendarVarious3992 in PromptEngineering