Use when the user asks to build or solve a grocery and meal-planning challenge with Picnic API and TheMealDB. Produces a practical plan, ingredient matching, and cart-ready outputs.
Build an agent workflow that creates a meal plan and shopping list by combining:
picnic-api)https://www.themealdb.com/api.php)The agent must translate recipe ingredients into purchasable Picnic products and return a clear, actionable result.
Given user constraints (diet, budget, household size, cooking time), generate:
The agent should collect these values before execution:
Return two sections:
{ "plan": [ { "day": 1, "meals": [ { "name": "Recipe name", "recipe_id": "themealdb-idMeal", "servings": 2 } ] } ], "shopping_list": [ { "ingredient": "tomato", "normalized_amount": { "value": 400, "unit": "g" }, "picnic_match": { "product_id": "12345", "name": "Picnic Product Name", "quantity": 2, "unit_price": 1.99, "currency": "EUR" }, "confidence": 0.92, "alternatives": [] } ], "cost_estimate": { "subtotal": 42.75, "currency": "EUR", "within_budget": true }, "unmatched_ingredients": [] }
strIngredient1..20, strMeasure1..20, idMeal, strMeal)."Plan 5 days of vegetarian dinners for 2 people under 60 EUR using Picnic products. Use TheMealDB (https://www.themealdb.com/api.php) for recipes, exclude peanuts, and output both a readable summary and the JSON contract."