{
  "name": "Organise your local file directories with AI",
  "nodes": [
    {
      "id": "c92e3d01-4385-4e99-a9a7-77279b3d9cb3",
      "name": "Local File Trigger",
      "type": "n8n-nodes-base.localFileTrigger",
      "position": [
        720,
        120
      ]
    },
    {
      "id": "a08f5acc-ee46-49e7-be4d-99edc95ab41f",
      "name": "Get Files and Folders",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        1200,
        120
      ]
    },
    {
      "id": "f3ab100a-986d-49bc-aeb5-979f16b2fd46",
      "name": "Files and Folders to Array",
      "type": "n8n-nodes-base.set",
      "position": [
        1380,
        120
      ]
    },
    {
      "id": "56c4a8b4-c5b0-4e2f-806b-fef5fb5260b5",
      "name": "Mistral Cloud Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        1860,
        240
      ]
    },
    {
      "id": "0d586481-904d-4fbd-9b53-77bc2faf08dd",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2040,
        240
      ]
    },
    {
      "id": "86025668-aac9-49a2-92ff-ce15df16488c",
      "name": "Set Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        940,
        120
      ]
    },
    {
      "id": "457bfd30-5cca-417a-88d3-666afe567fd5",
      "name": "Move Files into Folders",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        2560,
        140
      ]
    },
    {
      "id": "e9a610bf-b2ae-4b98-870a-2e63790a3b5f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        635.4233386400999,
        -161.84747801133517
      ],
      "parameters": {
        "width": 483.7926535356806,
        "height": 501.2939838391483,
        "content": "## Step 1. Select the target folder\n[Read more about local file trigger](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.localfiletrigger)\n\nIn this workflow, we'll monitor a specifi"
      }
    },
    {
      "id": "c8961322-a6da-4fc0-a46d-6119c5eac2b0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        -54.28207683557787
      ],
      "parameters": {
        "width": 583.2857596176409,
        "height": 391.527066537946,
        "content": "## Step 2. Identify files that need to be organised\n[Read more about Execute Command node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.executecommand)\n\nFor all Files in the root"
      }
    },
    {
      "id": "6e31b2d1-288c-479b-8dd8-a171ecd03dea",
      "name": "If Has Target Files...",
      "type": "n8n-nodes-base.if",
      "position": [
        1560,
        120
      ]
    },
    {
      "id": "07fd70ca-9126-4846-a2b0-4f3a8fc5eb69",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        -107.13740439436373
      ],
      "parameters": {
        "width": 631.2649908751414,
        "height": 506.8242545618477,
        "content": "## Step 3. Using Mistral AI to organise our target folder\n[Read more about Mistral AI](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatmistralcloud)\n\nUsing M"
      }
    },
    {
      "id": "2ca9a56c-ed1b-4f16-b207-7229c8d90b76",
      "name": "Get Suggestions to List",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2200,
        80
      ]
    },
    {
      "id": "29d425df-e513-429a-802f-02ad3ad86344",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2420,
        -62.701160902940615
      ],
      "parameters": {
        "width": 401.0065589583014,
        "height": 374.8503908496576,
        "content": "## Step 4. Move the files into subdirectories\n[Read more about Execute Command node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.executecommand)\n\nFor this step, we'll use the ex"
      }
    },
    {
      "id": "a2ee79ea-6b0d-46c0-876f-8cfe12130a62",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -160
      ],
      "parameters": {
        "width": 372.51107341403605,
        "height": 422.70324544339167,
        "content": "## Try It Out!\n### This workflow does the following:\n* Monitors a target folder for changes using the local file trigger\n* identifies all files and subdirectories in the target folder and passes this "
      }
    },
    {
      "id": "a0db31b1-10e2-40bb-9ec6-b91569bf1072",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        174.82571715185748,
        280
      ],
      "parameters": {
        "width": 438.23697639546396,
        "height": 97.88076166036412,
        "content": "### 🚨 Warning! Potential destructive operations ahead!\nThis workflow manipulates the filesystem. Always make backups of your files before running local workflows."
      }
    },
    {
      "id": "c932813c-913c-47bd-a4ba-79056bc6dfd7",
      "name": "AI File Manager",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1860,
        80
      ]
    }
  ],
  "connections": {
    "Set Variables": {
      "main": [
        [
          {
            "node": "Get Files and Folders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI File Manager": {
      "main": [
        [
          {
            "node": "Get Suggestions to List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Local File Trigger": {
      "main": [
        [
          {
            "node": "Set Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Files and Folders": {
      "main": [
        [
          {
            "node": "Files and Folders to Array",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Has Target Files...": {
      "main": [
        [
          {
            "node": "AI File Manager",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Suggestions to List": {
      "main": [
        [
          {
            "node": "Move Files into Folders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI File Manager",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI File Manager",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Files and Folders to Array": {
      "main": [
        [
          {
            "node": "If Has Target Files...",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}