Actions8
Meal Plan → Add
AI-generatedSummary
Add a meal plan event to AnyList with an optional title, associated recipe, date, and meal name.
Inputs
- title — The title of the meal plan event (used for notes).
- recipeId — The name or ID of the recipe to add to the meal plan. Must match an existing recipe or the operation will error.
- date — The date and time for the meal plan event; defaults to the current date/time if not specified.
- mealName — The name of the meal (e.g., Breakfast, Lunch, Dinner) for the event.
Output shape
a single JSON object representing the created meal plan event
If a specified recipe name or ID does not exist, the operation will throw an error unless 'Continue On Fail' is enabled. The date input is converted to a Date object internally.
Examples
Example 1: Add a meal plan event on a specific date for Dinner using a known recipe name
title='Sunday Dinner', recipeId='RoastChicken', date='2024-06-09T19:00:00Z', mealName='Dinner'