FM
FlowMarket
General Automation Intermediate ⚡ 10 n8n Nodes

Weekly dinner meal plan using recipes from Mealie

This workflow randomly select recipes from a Mealie instance (can use a specific category) and then creates a meal plan in Mealie with those recipes. How it ...

🔌 Nodes & Integrations Used (1)

HTTP Request

📖 Implementation & Setup Guide

This workflow randomly select recipes from a Mealie instance (can use a specific category) and then creates a meal plan in Mealie with those recipes.

How it works: - Workflow has a scheduled trigger (set to run weekly on a Friday) - `Config` node sets a few properties to configure the workflow - A call to the Mealie API to get the list of recipes - The code node holds most of the logic, this will loop through the number of recipes defined in the config node and randomly select a recipe from the list (making sure not to double up any recipes) - Once all the recipes are selected it will call the Mealie API to set up the meal plan on the days

Setup - Add your Mealie API token as a credential and set it on the Http Request nodes - Set the relevant schedule trigger to run when you like - Update the `Config` node with the config you want - numberOfRecipes - Number of recipes to populate for the meal plan - offsetPlanDays - Number of days in the future to start the plan (0 will start it today, 1 tomorrow, etc.) - mealieCategoryId - A category id of the category you want to pull in recipes from (default to select from all recipes) - mealieBaseUrl - The base url of your Mealie instance

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Weekly dinner meal plan using recipes from Mealie.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related General Automation Workflows

View All in General Automation →