{
  "name": "Weekly dinner meal plan using recipes from Mealie",
  "nodes": [
    {
      "id": "396bb28b-e40d-4bea-aa80-4abd04db045a",
      "name": "Friday 8pm",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        100,
        120
      ]
    },
    {
      "id": "993f0d31-5639-4cea-b2f8-d1a41ecdeb83",
      "name": "Create Meal Plan",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1080,
        120
      ]
    },
    {
      "id": "ad53512d-7246-49f4-a86b-f258b7c1c47e",
      "name": "When clicking \"Test workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        100,
        320
      ]
    },
    {
      "id": "c0d1d7e0-9411-4e6a-871a-0374b8a9f5db",
      "name": "Get Recipes",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        640,
        120
      ]
    },
    {
      "id": "2f9757fc-77f5-4bda-ae2e-7088ea5c114d",
      "name": "Config",
      "type": "n8n-nodes-base.set",
      "position": [
        380,
        120
      ]
    },
    {
      "id": "fed805ea-0580-444d-8312-a68b25e91bbd",
      "name": "Generate Random Items",
      "type": "n8n-nodes-base.code",
      "position": [
        860,
        120
      ]
    },
    {
      "id": "f440ce9d-cc27-4982-a0bd-b0ce2e5217d9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        -60
      ],
      "parameters": {
        "width": null,
        "height": 340,
        "content": "## Trigger\nSet the trigger to run when you like"
      }
    },
    {
      "id": "2bac2f08-2969-4f47-9fce-0e7de416cd09",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        -60
      ],
      "parameters": {
        "width": 300,
        "height": 340,
        "content": "## Update this Config\nSet the base Url of your Mealie instance\nSet number of recipes to generate and number of days to offset the plan (0 will start today).\nGrab a category id from Mealie (or leave bl"
      }
    },
    {
      "id": "a2850e39-c25f-4210-8f9e-a657c0c63bf5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        -280
      ],
      "parameters": {
        "width": 540,
        "height": 220,
        "content": "## Get started\n* Set up a credential for your Mealie API token\n* Apply the credential to the 2 Http request nodes\n* Set schedule trigger and desired config"
      }
    },
    {
      "id": "20d7301c-8946-45c3-8f5f-fbe2fc80cf37",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        -60
      ],
      "parameters": {
        "width": 660,
        "height": 340,
        "content": "## Workflow logic\n* Get all recipes from Mealie (within category if supplied)\n* Randomly pick out the number set in the config\n* Create dinner meal plans for the upcoming days"
      }
    }
  ],
  "connections": {
    "Config": {
      "main": [
        [
          {
            "node": "Get Recipes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Friday 8pm": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Recipes": {
      "main": [
        [
          {
            "node": "Generate Random Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Random Items": {
      "main": [
        [
          {
            "node": "Create Meal Plan",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Test workflow\"": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}