AutomationFlowsAI & RAG › Recipe Recommendation Engine with Bright Data Mcp & Openai 4o Mini

Recipe Recommendation Engine with Bright Data Mcp & Openai 4o Mini

ByRanjan Dailata @ranjancse on n8n.io

Community nodes can only be installed on self-hosted instances of n8n.

Event trigger★★★★☆ complexityAI-powered23 nodesN8N Nodes McpChain LlmOutput Parser StructuredHTTP RequestRead Write FileOpenAI Chat
AI & RAG Trigger: Event Nodes: 23 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #4591 — we link there as the canonical source.

This workflow follows the Chainllm → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "3nPufqQQUzDzdo02",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Recipe Recommendation Engine with Bright Data MCP & OpenAI",
  "tags": [],
  "nodes": [
    {
      "id": "e1aeff42-0129-48df-b69b-927ef3e89f21",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -600,
        145
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "50ddc2f7-89d1-4fb8-a47a-6b77ddb309da",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        60
      ],
      "parameters": {
        "color": 4,
        "width": 440,
        "height": 320,
        "content": "## Recipe Data Scraper"
      },
      "typeVersion": 1
    },
    {
      "id": "da4a520e-0960-4262-af8e-82fb365546cb",
      "name": "List all tools for Bright Data",
      "type": "n8n-nodes-mcp.mcpClient",
      "position": [
        -380,
        145
      ],
      "parameters": {},
      "credentials": {
        "mcpClientApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "67dead27-adee-458e-9040-25aabf69c845",
      "name": "Set the Recipe Extract URL",
      "type": "n8n-nodes-base.set",
      "position": [
        -160,
        145
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "214e61a0-3587-453f-baf5-eac013990857",
              "name": "url",
              "type": "string",
              "value": "https://realfood.tesco.com/search.html?search=tomato%20pasta&sortby=Rating"
            },
            {
              "id": "45014942-0a2e-4f46-b395-f82f97bfa93e",
              "name": "webhook_url",
              "type": "string",
              "value": "https://webhook.site/24878284-919d-4d39-bff0-5f36bfae17b6"
            },
            {
              "id": "8d9b4ec0-416e-4b47-859a-36300f18aa23",
              "name": "base_url",
              "type": "string",
              "value": "https://realfood.tesco.com/search.html"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "e5d42bd3-2c23-42e6-be3b-c6e505cd585b",
      "name": "Paginated Data Extract",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        280,
        145
      ],
      "parameters": {
        "text": "=Extract the paginated data from the provided content. \n\nHere's the content : {{ $json.result.content[0].text }}\n\nAppend the link with the Base URL as {{ $('Set the Recipe Extract URL').item.json.base_url }}",
        "messages": {
          "messageValues": [
            {
              "message": "You are an expert data miner"
            }
          ]
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "retryOnFail": true,
      "typeVersion": 1.6
    },
    {
      "id": "136c1487-4164-4b7e-b2ed-f9d29017f539",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        876,
        145
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3
    },
    {
      "id": "a10d507e-cd18-474f-998a-64f435b9d230",
      "name": "Code to output the array of paginated info",
      "type": "n8n-nodes-base.code",
      "position": [
        656,
        145
      ],
      "parameters": {
        "jsCode": "return $input.first().json.output"
      },
      "typeVersion": 2
    },
    {
      "id": "2047cdb3-ce19-4254-8d52-f99ec5101e18",
      "name": "Structured Output Parser for Paginated Data",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        500,
        380
      ],
      "parameters": {
        "jsonSchemaExample": "[{\n\t\"page_number\": \"page number in int\",\n\t\"link\": \"link to the web content\"\n}]"
      },
      "typeVersion": 1.2
    },
    {
      "id": "4e912c2c-12a1-45ee-a821-9e1fd873120c",
      "name": "Bright Data MCP Client For Recipe Extract",
      "type": "n8n-nodes-mcp.mcpClient",
      "notes": "Scrape a single webpage URL with advanced options for content extraction and get back the results in MarkDown language.",
      "position": [
        60,
        145
      ],
      "parameters": {
        "toolName": "scrape_as_html",
        "operation": "executeTool",
        "toolParameters": "={\n   \"url\": \"{{ $json.url }}\"\n} "
      },
      "credentials": {
        "mcpClientApi": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "b14070b3-da81-4356-bef5-e70399893ce7",
      "name": "Bright Data MCP Client For Recipe Extract Within The Loop",
      "type": "n8n-nodes-mcp.mcpClient",
      "notes": "Scrape a single webpage URL with advanced options for content extraction and get back the results in MarkDown language.",
      "position": [
        1480,
        160
      ],
      "parameters": {
        "toolName": "scrape_as_html",
        "operation": "executeTool",
        "toolParameters": "={\n   \"url\": \"{{ $json.link }}\"\n} "
      },
      "credentials": {
        "mcpClientApi": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "0577e0ca-162f-40bc-b96f-fbe5f9690826",
      "name": "Structured Output Parser for Recipe Data Extract",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1900,
        360
      ],
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"$schema\": \"http://json-schema.org/schema#\",\n  \"title\": \"TescoRecipeSearchResults\",\n  \"type\": \"object\",\n  \"properties\": {\n    \"pageTitle\": { \"type\": \"string\" },\n    \"searchTerms\": { \"type\": \"string\" },\n    \"sortBy\": { \"type\": \"string\" },\n    \"numberOfResults\": { \"type\": \"integer\" },\n    \"numberOfPages\": { \"type\": \"integer\" },\n    \"numberOfFirstResult\": { \"type\": \"integer\" },\n    \"numberOfLastResult\": { \"type\": \"integer\" },\n    \"recipes\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"title\": { \"type\": \"string\" },\n          \"url\": { \"type\": \"string\" },\n          \"category\": { \"type\": \"string\" },\n          \"rating\": { \"type\": \"number\" },\n          \"serves\": { \"type\": \"integer\" },\n          \"dietaryOptions\": {\n            \"type\": \"array\",\n            \"items\": { \"type\": \"string\" }\n          },\n          \"isHealthy\": { \"type\": \"boolean\" }\n        },\n        \"required\": [\n          \"title\",\n          \"url\",\n          \"category\",\n          \"rating\",\n          \"serves\",\n          \"dietaryOptions\"\n        ],\n        \"additionalProperties\": false\n      }\n    }\n  },\n  \"required\": [\n    \"pageTitle\",\n    \"searchTerms\",\n    \"sortBy\",\n    \"numberOfResults\",\n    \"numberOfPages\",\n    \"numberOfFirstResult\",\n    \"numberOfLastResult\",\n    \"recipes\"\n  ],\n  \"additionalProperties\": false\n}\n"
      },
      "typeVersion": 1.2
    },
    {
      "id": "dc24bede-a05a-45be-bea8-abd4efec5679",
      "name": "Create a binary data",
      "type": "n8n-nodes-base.function",
      "position": [
        2200,
        160
      ],
      "parameters": {
        "functionCode": "items[0].binary = {\n  data: {\n    data: new Buffer(JSON.stringify(items[0].json, null, 2)).toString('base64')\n  }\n};\nreturn items;"
      },
      "typeVersion": 1
    },
    {
      "id": "82630ed0-d321-42bd-ae68-e790228a61c7",
      "name": "Webhook Notification for Data Extract Within the Loop",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2120,
        340
      ],
      "parameters": {
        "url": "={{ $('Set the Recipe Extract URL').item.json.webhook_url }}",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "recipe_content",
              "value": "={{ $json.output.toJsonString() }}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "c2b53242-8c0d-49a4-8cdb-27da64377d50",
      "name": "Write the structured content to disk",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        2500,
        160
      ],
      "parameters": {
        "options": {},
        "fileName": "=d:\\Recipe-Structured-Data-{{ $('Loop Over Items').item.json.page_number }}.json",
        "operation": "write"
      },
      "typeVersion": 1
    },
    {
      "id": "f4eef0b9-8a1d-4eb2-92fc-7f4ee9d48898",
      "name": "Structured Recipe Data Extract",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1740,
        160
      ],
      "parameters": {
        "text": "=Extract search data. Here's the content : \nOutput the data in JSON",
        "messages": {
          "messageValues": [
            {
              "message": "You are an expert data miner"
            }
          ]
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "retryOnFail": true,
      "typeVersion": 1.6
    },
    {
      "id": "bd64603d-230b-4318-b365-b186826454f0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        -160
      ],
      "parameters": {
        "width": 440,
        "height": 120,
        "content": "## Disclaimer\nThis template is only available on n8n self-hosted as it's making use of the community node for MCP Client."
      },
      "typeVersion": 1
    },
    {
      "id": "3715be91-c809-495c-8a4e-ca58cf9de999",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        0
      ],
      "parameters": {
        "color": 6,
        "width": 1860,
        "height": 540,
        "content": "## Structured Data Extract\n\nUsing MCP and LLMs for handling the Structured Data Extraction. Loop through the paginated dataset and handling the data extract.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "c5d846da-581a-4182-a52d-0e29b302150e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -680,
        -340
      ],
      "parameters": {
        "width": 400,
        "height": 320,
        "content": "## Note\n\nDeals with the Recipe data extraction by utilizing the Bright Data MCP and OpenAI GPT 4o LLM.\n\n**Please make sure to set the input fields node with the Recipe URL\n\nPlease make sure to update the Webhook Notification URL of your interest**"
      },
      "typeVersion": 1
    },
    {
      "id": "3af431fa-63fd-4140-8e86-8443a6ae013f",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -240
      ],
      "parameters": {
        "color": 5,
        "width": 440,
        "height": 220,
        "content": "## LLM Usages\n\nOpenAI 4o mini LLM is being utilized for the structured data extraction handling."
      },
      "typeVersion": 1
    },
    {
      "id": "367bed09-cc77-4955-ada5-d71111bdfef1",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -680,
        -780
      ],
      "parameters": {
        "color": 7,
        "width": 400,
        "height": 400,
        "content": "## Logo\n\n\n![logo](https://images.seeklogo.com/logo-png/43/1/brightdata-logo-png_seeklogo-439974.png)\n"
      },
      "typeVersion": 1
    },
    {
      "id": "cbe55c76-4a62-4c15-af34-b49e037d779b",
      "name": "OpenAI Chat Model for Paginated Data Extract",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        280,
        380
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "566f7f77-8eed-4ea2-9402-ccb46a13bf52",
      "name": "OpenAI Chat Model for Structured Data Extract",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1700,
        360
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "fca8b6ce-a17c-416f-acc2-6a7a8bbf5b7b",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1180,
        160
      ],
      "parameters": {
        "amount": 10
      },
      "typeVersion": 1.1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "79bcb4d2-0dd7-4759-a2f6-7636f054d543",
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Bright Data MCP Client For Recipe Extract Within The Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a binary data": {
      "main": [
        [
          {
            "node": "Write the structured content to disk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Paginated Data Extract": {
      "main": [
        [
          {
            "node": "Code to output the array of paginated info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set the Recipe Extract URL": {
      "main": [
        [
          {
            "node": "Bright Data MCP Client For Recipe Extract",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List all tools for Bright Data": {
      "main": [
        [
          {
            "node": "Set the Recipe Extract URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Recipe Data Extract": {
      "main": [
        [
          {
            "node": "Create a binary data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Webhook Notification for Data Extract Within the Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "List all tools for Bright Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write the structured content to disk": {
      "main": [
        []
      ]
    },
    "Bright Data MCP Client For Recipe Extract": {
      "main": [
        [
          {
            "node": "Paginated Data Extract",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code to output the array of paginated info": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser for Paginated Data": {
      "ai_outputParser": [
        [
          {
            "node": "Paginated Data Extract",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model for Paginated Data Extract": {
      "ai_languageModel": [
        [
          {
            "node": "Paginated Data Extract",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model for Structured Data Extract": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Recipe Data Extract",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser for Recipe Data Extract": {
      "ai_outputParser": [
        [
          {
            "node": "Structured Recipe Data Extract",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Notification for Data Extract Within the Loop": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bright Data MCP Client For Recipe Extract Within The Loop": {
      "main": [
        [
          {
            "node": "Structured Recipe Data Extract",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Community nodes can only be installed on self-hosted instances of n8n.

Source: https://n8n.io/workflows/4591/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Community nodes can only be installed on self-hosted instances of n8n.

N8N Nodes Mcp, Information Extractor, Chain Llm +4
AI & RAG

Automated Resume Job Matching Engine with Bright Data & OpenAI 4o mini. Uses n8n-nodes-mcp, informationExtractor, chainLlm, outputParserStructured. Event-driven trigger; 22 nodes.

N8N Nodes Mcp, Information Extractor, Chain Llm +4
AI & RAG

Community nodes can only be installed on self-hosted instances of n8n.

N8N Nodes Mcp, Chain Llm, Read Write File +3
AI & RAG

RAG CHATBOT Main. Uses telegram, telegramTrigger, lmChatOpenAi, n8n-nodes-mcp. Event-driven trigger; 87 nodes.

Telegram, Telegram Trigger, OpenAI Chat +8
AI & RAG

Community nodes can only be installed on self-hosted instances of n8n.

HTTP Request, Google Gemini Chat, Chain Llm +4