{
  "name": "Chef Agent",
  "tags": [],
  "nodes": [
    {
      "id": "56aa794a-b56c-4bad-bce5-2023e3484230",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        0,
        -200
      ],
      "parameters": {
        "public": true,
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "36ae83d5-1656-42bc-8301-3ec8ea36dcf0",
      "name": "Ollama Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "position": [
        60,
        200
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "ollamaApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "bed02db2-6e9b-45a0-bee2-4227cd252154",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        260,
        160
      ],
      "parameters": {
        "contextWindowLength": 5000
      },
      "typeVersion": 1.3
    },
    {
      "id": "cbc788b1-5143-44a5-a21e-62c90ab3b156",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        480,
        160
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "53377724-5115-40e1-b5d7-5af4e09ca94b",
      "name": "Chef AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        220,
        -100
      ],
      "parameters": {
        "options": {
          "systemMessage": "You are a helpful cooking assistant. You will receive items that are available to make food with. Provide a list of 5 items to make. If there are recipes that include Ingredients that are not provided in the beginning, advise the user that these are ingredients that would be great to add in. Limit to 3 missing ingredients. "
        }
      },
      "typeVersion": 1.9
    },
    {
      "id": "1d34c56e-d41e-4b53-8cb4-8d07410b4acc",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        0,
        0
      ],
      "parameters": {
        "path": "lets-cook",
        "options": {}
      },
      "typeVersion": 2
    },
    {
      "id": "a36e78ab-0959-4861-b28d-74e8aa58b5f0",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        580,
        -100
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "77c168d5-7976-4bdd-8800-51752be289fc",
  "connections": {
    "Think": {
      "ai_tool": [
        [
          {
            "node": "Chef AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Chef AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chef AI Agent": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Chef AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Ollama Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Chef AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Chef AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}