8
n8n 中文网amn8n.com

使用Ollama AI厨师助手从食材生成食谱

中级

这是一个Other, AI领域的自动化工作流,包含 7 个节点。主要使用 Webhook, Agent, RespondToWebhook, ToolThink, ChatTrigger 等节点,结合人工智能技术实现智能自动化。 使用Ollama AI厨师助手从食材生成食谱

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "name": "厨师助手",
  "tags": [],
  "nodes": [
    {
      "id": "56aa794a-b56c-4bad-bce5-2023e3484230",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        0,
        -200
      ],
      "webhookId": "__REPLACE_WITH_WEBHOOK_ID__",
      "parameters": {
        "public": true,
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "36ae83d5-1656-42bc-8301-3ec8ea36dcf0",
      "name": "## 🧠 LLM 总结",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "position": [
        60,
        200
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "ollamaApi": {
          "id": "__REPLACE_WITH_YOUR_CREDENTIAL_ID__",
          "name": "Ollama account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "bed02db2-6e9b-45a0-bee2-4227cd252154",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        260,
        160
      ],
      "parameters": {
        "contextWindowLength": 5000
      },
      "typeVersion": 1.3
    },
    {
      "id": "cbc788b1-5143-44a5-a21e-62c90ab3b156",
      "name": "思考",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        480,
        160
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "53377724-5115-40e1-b5d7-5af4e09ca94b",
      "name": "厨师 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
      ],
      "webhookId": "__REPLACE_WITH_WEBHOOK_ID__",
      "parameters": {
        "path": "lets-cook",
        "options": {}
      },
      "typeVersion": 2
    },
    {
      "id": "a36e78ab-0959-4861-b28d-74e8aa58b5f0",
      "name": "响应 Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        580,
        -100
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "77c168d5-7976-4bdd-8800-51752be289fc",
  "connections": {
    "cbc788b1-5143-44a5-a21e-62c90ab3b156": {
      "ai_tool": [
        [
          {
            "node": "53377724-5115-40e1-b5d7-5af4e09ca94b",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "1d34c56e-d41e-4b53-8cb4-8d07410b4acc": {
      "main": [
        [
          {
            "node": "53377724-5115-40e1-b5d7-5af4e09ca94b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "53377724-5115-40e1-b5d7-5af4e09ca94b": {
      "main": [
        [
          {
            "node": "a36e78ab-0959-4861-b28d-74e8aa58b5f0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "bed02db2-6e9b-45a0-bee2-4227cd252154": {
      "ai_memory": [
        [
          {
            "node": "53377724-5115-40e1-b5d7-5af4e09ca94b",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "36ae83d5-1656-42bc-8301-3ec8ea36dcf0": {
      "ai_languageModel": [
        [
          {
            "node": "53377724-5115-40e1-b5d7-5af4e09ca94b",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "56aa794a-b56c-4bad-bce5-2023e3484230": {
      "main": [
        [
          {
            "node": "53377724-5115-40e1-b5d7-5af4e09ca94b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 其他, 人工智能

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量7
分类2
节点类型7
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Clown Mutiny

Clown Mutiny

@clownmutiny

Sure! Here’s a version written from the perspective of Clown Mutiny: Clown Mutiny is a collective of artists, tinkerers, and automation rebels using n8n to create weirdly wonderful workflows. We build playful systems powered by AI and storytelling—where code meets chaos, and automation gets a sense of humor.

外部链接
在 n8n.io 查看

分享此工作流

分类

分类: 34