← Back to Directory
🍳

Smart Grocery Shopper

Generate a meal plan, extract ingredients, find recipes, compare prices across stores, and produce an optimized weekly grocery list.

🤖 00 ↓  |  👤 00
intermediate15 min setup🔄 7 swappable alternatives

🧂 Ingredients

🔌 APIs

get_recipes_and_nutritional_info

🔄 Alternatives:

Edamam Better dietary filter supportThemealdb Free, community-driven recipes

compare_grocery_prices_across_stores

🔄 Alternatives:

Brave Search Privacy-focused, no trackingGoogle Search Direct Google search API

generate_meal_plan_and_optimize_list

🔄 Alternatives:

Anthropic Better at analysis and reasoningGemini Free tier, multimodalMistral Open-weight, EU-hosted

📋 Step-by-Step Build Guide

STEP 1

Generate weekly meal plan based on dietary preferences

Generate weekly meal plan based on dietary preferences

Generate weekly meal plan based on dietary preferences

Steps:
1. Validate all required inputs are available
2. Execute the operation described above
3. Verify the result meets expected output format
4. Handle errors gracefully — retry transient failures, log and alert on persistent ones
5. Return structured output with status and any relevant data

If any required data is missing, request it from the user before proceeding.
STEP 2

Look up recipes for each meal via Spoonacular

Look up recipes for each meal via Spoonacular

Look up recipes for each meal via Spoonacular

Steps:
1. Validate all required inputs are available
2. Execute the operation described above
3. Verify the result meets expected output format
4. Handle errors gracefully — retry transient failures, log and alert on persistent ones
5. Return structured output with status and any relevant data

If any required data is missing, request it from the user before proceeding.
STEP 3

Extract and deduplicate all ingredients

Extract and deduplicate all ingredients

Extract and deduplicate all ingredients

Steps:
1. Validate all required inputs are available
2. Execute the operation described above
3. Verify the result meets expected output format
4. Handle errors gracefully — retry transient failures, log and alert on persistent ones
5. Return structured output with status and any relevant data

If any required data is missing, request it from the user before proceeding.
STEP 4

Check pantry inventory (from pantry.json) to remove items on hand

Check pantry inventory (from pantry.json) to remove items on hand

Check pantry inventory (from pantry.json) to remove items on hand

Steps:
1. Validate all required inputs are available
2. Execute the operation described above
3. Verify the result meets expected output format
4. Handle errors gracefully — retry transient failures, log and alert on persistent ones
5. Return structured output with status and any relevant data

If any required data is missing, request it from the user before proceeding.
STEP 5

Search prices across stores for each ingredient

Search prices across stores for each ingredient

Search prices across stores for each ingredient

Steps:
1. Validate all required inputs are available
2. Execute the operation described above
3. Verify the result meets expected output format
4. Handle errors gracefully — retry transient failures, log and alert on persistent ones
5. Return structured output with status and any relevant data

If any required data is missing, request it from the user before proceeding.
STEP 6

Optimize list by store to minimize total cost

Optimize list by store to minimize total cost

Optimize list by store to minimize total cost

Steps:
1. Validate all required inputs are available
2. Execute the operation described above
3. Verify the result meets expected output format
4. Handle errors gracefully — retry transient failures, log and alert on persistent ones
5. Return structured output with status and any relevant data

If any required data is missing, request it from the user before proceeding.
STEP 7

Output formatted shopping list grouped by store

Output formatted shopping list grouped by store

Output formatted shopping list grouped by store

Steps:
1. Validate all required inputs are available
2. Execute the operation described above
3. Verify the result meets expected output format
4. Handle errors gracefully — retry transient failures, log and alert on persistent ones
5. Return structured output with status and any relevant data

If any required data is missing, request it from the user before proceeding.

🤖 Example Agent Prompt

Generate weekly meal plan based on dietary preferences

Steps:
1. Validate all required inputs are available
2. Execute the operation described above
3. Verify the result meets expected output format
4. Handle errors gracefully — retry transient failures, log and alert on persistent ones
5. Return structured output with status and any relevant data

If any required data is missing, request it from the user before proceeding.

Copy this prompt into your agent to get started.

🍳 Smart Grocery Shopper — PincerAPI Cookbook