Extracción de datos estructurados de búsqueda Brave (Bright Data MCP + Google Gemini)
Este es unAI, Marketingflujo de automatización del dominio deautomatización que contiene 24 nodos.Utiliza principalmente nodos como Set, Switch, Function, McpClient, HttpRequest, combinando tecnología de inteligencia artificial para lograr automatización inteligente. Extraer datos estructurados de la búsqueda Brave usando Bright Data MCP y Google Gemini
- •Pueden requerirse credenciales de autenticación para la API de destino
- •Credenciales de API de Google Sheets
- •Clave de API de Google Gemini
Nodos utilizados (24)
Categoría
{
"id": "eqvDSknjbg3YLzxM",
"meta": {
"instanceId": "885b4fb4a6a9c2cb5621429a7b972df0d05bb724c20ac7dac7171b62f1c7ef40",
"templateCredsSetupCompleted": true
},
"name": "Brave Search (Image,Video, News, All) and Structured Data Extract with Bright Data MCP & Google Gemini",
"tags": [
{
"id": "Kujft2FOjmOVQAmJ",
"name": "Engineering",
"createdAt": "2025-04-09T01:31:00.558Z",
"updatedAt": "2025-04-09T01:31:00.558Z"
},
{
"id": "ZOwtAMLepQaGW76t",
"name": "Building Blocks",
"createdAt": "2025-04-13T15:23:40.462Z",
"updatedAt": "2025-04-13T15:23:40.462Z"
},
{
"id": "ddPkw7Hg5dZhQu2w",
"name": "AI",
"createdAt": "2025-04-13T05:38:08.053Z",
"updatedAt": "2025-04-13T05:38:08.053Z"
},
{
"id": "qpxJxOMCv2x7Op5c",
"name": "SERP",
"createdAt": "2025-04-03T15:37:19.686Z",
"updatedAt": "2025-04-03T15:37:19.686Z"
}
],
"nodes": [
{
"id": "70d29e8e-3e2d-4177-abdc-d3da8d6b60e4",
"name": "Al hacer clic en 'Probar flujo de trabajo'",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-780,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "e3b06669-954e-494f-8b59-080d9d7083a8",
"name": "Modelo de Chat Google Gemini",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
600,
220
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.0-flash-exp"
},
"credentials": {
"googlePalmApi": {
"id": "YeO7dHZnuGBVQKVZ",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "2c8c3b3a-edaf-42f2-8f3b-1c3a96bd4c7d",
"name": "Extractor de Datos Estructurados",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
600,
0
],
"parameters": {
"text": "=Extract structured data from the search result. \n\n{{ $json.search_response }}",
"promptType": "define",
"hasOutputParser": true
},
"retryOnFail": true,
"typeVersion": 1.6
},
{
"id": "b2cb439e-eccc-40ad-97db-265bcd9f7a73",
"name": "Configurar la entrada para búsqueda de imágenes",
"type": "n8n-nodes-base.set",
"position": [
-120,
-300
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "0b0e9335-56d4-4705-b61b-de0dc9c8ae6d",
"name": "search_base_url",
"type": "string",
"value": "https://search.brave.com/images"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "df89cc2e-1b75-4176-a66d-f17d5076bb17",
"name": "Analizador de Salida Estructurada",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
780,
220
],
"parameters": {
"schemaType": "manual",
"inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"search_results\": {\n \"type\": \"array\",\n \"description\": \"A list of search results related to the query.\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the search result or webpage.\"\n },\n \"url\": {\n \"type\": \"string\",\n \"format\": \"uri\",\n \"description\": \"The URL of the result.\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A short description or snippet summarizing the content of the URL.\"\n }\n },\n \"required\": [\"title\", \"url\", \"description\"]\n }\n },\n \"related_queries\": {\n \"type\": \"array\",\n \"description\": \"A list of queries related to the original search, often used for refining or expanding the search.\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"required\": [\"search_results\"]\n}\n"
},
"typeVersion": 1.2
},
{
"id": "919833cb-1add-4670-86a4-466f3df925f3",
"name": "Cliente Bright Data MCP para Búsqueda de Imágenes Brave",
"type": "n8n-nodes-mcp.mcpClient",
"position": [
100,
-300
],
"parameters": {
"toolName": "scrape_as_html",
"operation": "executeTool",
"toolParameters": "={\n \"url\": \"{{$json.search_base_url}}?q={{encodeURI($('Set the search criteria\\'s').item.json.search_query))}}\"\n} "
},
"credentials": {
"mcpClientApi": {
"id": "JtatFSfA2kkwctYa",
"name": "MCP Client (STDIO) account"
}
},
"typeVersion": 1
},
{
"id": "d90b79cc-b878-4210-8380-794cd378ec73",
"name": "Interruptor",
"type": "n8n-nodes-base.switch",
"position": [
-340,
-21
],
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "235f2abd-b5fd-4c0a-aa63-9d8655d02dfc",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.search_type }}",
"rightValue": "images"
}
]
}
},
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "4b6eb7ce-5683-48cf-8ab9-81b25693c280",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.search_type }}",
"rightValue": "videos"
}
]
}
},
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "312a7726-33a4-4294-9103-5a5017f36909",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.search_type }}",
"rightValue": "news"
}
]
}
},
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "e84e037f-89a3-48ef-b509-2ca70844ad27",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.search_type }}",
"rightValue": "all"
}
]
}
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "f20fde43-bfb3-447a-9f43-51bf952c9d7e",
"name": "Configurar la entrada para búsqueda de videos",
"type": "n8n-nodes-base.set",
"position": [
-120,
-100
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "0b0e9335-56d4-4705-b61b-de0dc9c8ae6d",
"name": "search_base_url",
"type": "string",
"value": "https://search.brave.com/video"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "b25da743-0d4b-46a2-bb51-2b8e1c533ac5",
"name": "Cliente Bright Data MCP para Búsqueda de Videos Brave",
"type": "n8n-nodes-mcp.mcpClient",
"position": [
100,
-100
],
"parameters": {
"toolName": "scrape_as_html",
"operation": "executeTool",
"toolParameters": "={\n \"url\": \"{{$json.search_base_url}}?q={{encodeURI($('Set the search criteria\\'s').item.json.search_query))}}\"\n} "
},
"credentials": {
"mcpClientApi": {
"id": "JtatFSfA2kkwctYa",
"name": "MCP Client (STDIO) account"
}
},
"typeVersion": 1
},
{
"id": "28e51b1c-a4f3-4d95-af12-d4bd1219cfa2",
"name": "Configurar la Respuesta de Búsqueda",
"type": "n8n-nodes-base.set",
"position": [
380,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "74d82a2b-0219-4966-80f2-3144c7c5e4c7",
"name": "search_response",
"type": "string",
"value": "={{ $json.result.content[0].text }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "98d38078-4708-4d22-a8be-e50a4701ea75",
"name": "Nota Adhesiva2",
"type": "n8n-nodes-base.stickyNote",
"position": [
120,
-480
],
"parameters": {
"color": 3,
"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": "43138034-35ad-43fd-b67e-69942e1b061b",
"name": "Nota Adhesiva4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-340,
-580
],
"parameters": {
"color": 5,
"width": 440,
"height": 220,
"content": "## LLM Usages\n\nGoogle Gemini LLM is being utilized for the structured data extraction handling."
},
"typeVersion": 1
},
{
"id": "eb731e47-779e-40bc-8a83-126d1b03a70b",
"name": "Nota Adhesiva5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-800,
-980
],
"parameters": {
"color": 7,
"width": 440,
"height": 360,
"content": "## Logo\n\n\n\n"
},
"typeVersion": 1
},
{
"id": "5581a950-075d-4d4d-9f97-fd65e71cc6ff",
"name": "Nota Adhesiva3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-800,
-580
],
"parameters": {
"width": 440,
"height": 320,
"content": "## Note\n\nDeals with the Brave Search by leveraging the Bright Data MCP Client.\n\n**Please make sure to set the search type with videos, images, news, all based on your search input needs**\n\n**Please make sure to update the Initiate a Webhook Notification for the Structured Data node with the Webhook of your interest**"
},
"typeVersion": 1
},
{
"id": "a5afb97c-0fbf-48b1-b598-fbca46e3df96",
"name": "Configurar los campos de entrada para búsqueda de noticias",
"type": "n8n-nodes-base.set",
"position": [
-120,
100
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "0b0e9335-56d4-4705-b61b-de0dc9c8ae6d",
"name": "search_base_url",
"type": "string",
"value": "https://search.brave.com/news"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "0dcd6a1b-7968-40da-ad27-4d39fadc243a",
"name": "Configurar los criterios de búsqueda",
"type": "n8n-nodes-base.set",
"position": [
-560,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "9852f865-49b9-4672-9454-4bcc51173445",
"name": "search_type",
"type": "string",
"value": "news"
},
{
"id": "643626c4-6d3e-4609-be12-5e7c0c7afe1d",
"name": "search_query",
"type": "string",
"value": "bright+data&source=web&lang=en-in"
},
{
"id": "4a0fc0eb-2638-4441-9eb1-51c29dd7d1b4",
"name": "json_search_query",
"type": "string",
"value": "{ \"query\": \"What are the latest funding rounds for AI startups?\", \"include_domains\": [ \"crunchbase.com\", \"techcrunch.com\", \"pitchbook.com\" ] }"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "2c686701-f3fa-4bf4-bdea-b11dce7b2862",
"name": "Cliente Bright Data MCP para Búsqueda de Noticias Brave",
"type": "n8n-nodes-mcp.mcpClient",
"position": [
100,
100
],
"parameters": {
"toolName": "scrape_as_html",
"operation": "executeTool",
"toolParameters": "={\n \"url\": \"{{$json.search_base_url}}?q={{encodeURI($('Set the search criteria\\'s').item.json.search_query)}}\"\n} "
},
"credentials": {
"mcpClientApi": {
"id": "JtatFSfA2kkwctYa",
"name": "MCP Client (STDIO) account"
}
},
"typeVersion": 1
},
{
"id": "725c7c7e-6422-4bcb-8bb1-441766741c96",
"name": "Cliente Bright Data MCP para Búsqueda Total Brave",
"type": "n8n-nodes-mcp.mcpClient",
"position": [
100,
300
],
"parameters": {
"toolName": "scrape_as_html",
"operation": "executeTool",
"toolParameters": "={\n \"url\": \"{{$json.search_base_url}}?q={{encodeURI($('Set the search criteria\\'s').item.json.search_query)}}\"\n} "
},
"credentials": {
"mcpClientApi": {
"id": "JtatFSfA2kkwctYa",
"name": "MCP Client (STDIO) account"
}
},
"typeVersion": 1
},
{
"id": "a6843bfe-f649-4ab8-9208-1d3119e811c5",
"name": "Configurar los campos de entrada para búsqueda total",
"type": "n8n-nodes-base.set",
"position": [
-120,
300
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "0b0e9335-56d4-4705-b61b-de0dc9c8ae6d",
"name": "search_base_url",
"type": "string",
"value": "https://search.brave.com/search"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "c8fa6490-f0db-400c-8283-e8f9120e6481",
"name": "Google Hojas de Cálculo",
"type": "n8n-nodes-base.googleSheets",
"position": [
1060,
-180
],
"parameters": {
"columns": {
"value": {
"Output": "={{ $json.output.search_results.toJsonString() }}"
},
"schema": [
{
"id": "Output",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Output",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"Output"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "appendOrUpdate",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1KE5v8RZ3BouTzoT3D4CeU8whe-kWpZcq0VMSalNrxFg/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1KE5v8RZ3BouTzoT3D4CeU8whe-kWpZcq0VMSalNrxFg",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1KE5v8RZ3BouTzoT3D4CeU8whe-kWpZcq0VMSalNrxFg/edit?usp=drivesdk",
"cachedResultName": "Brave Search Results"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "Zjoxh2BUZ6VXGQhA",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "6d51e57a-1303-46a0-95ce-80d3a17c30db",
"name": "Crear datos binarios para Extracción de Datos Estructurados",
"type": "n8n-nodes-base.function",
"position": [
1060,
20
],
"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": "7f5d181b-18bc-4bb4-8ae9-bc2e05137127",
"name": "Escribir el contenido estructurado en disco",
"type": "n8n-nodes-base.readWriteFile",
"position": [
1280,
20
],
"parameters": {
"options": {},
"fileName": "=d:\\Brave-Search-Result-{{new Date().toISOString().replaceAll(\":\",\".\")}}.json",
"operation": "write"
},
"typeVersion": 1
},
{
"id": "fa6143c9-3312-4890-a490-3bc3db355c53",
"name": "Iniciar una Notificación Webhook para los Datos Estructurados",
"type": "n8n-nodes-base.httpRequest",
"position": [
1060,
220
],
"parameters": {
"url": "https://webhook.site/24878284-919d-4d39-bff0-5f36bfae17b6",
"options": {},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "summary",
"value": "={{ $json.output.search_results.toJsonString() }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "cdea8e7d-f513-45fa-b7cf-3b9507d47fda",
"name": "Nota Adhesiva",
"type": "n8n-nodes-base.stickyNote",
"position": [
540,
-220
],
"parameters": {
"color": 4,
"width": 940,
"height": 660,
"content": "## Structured Data and Output Handling\n"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "3a04231b-455b-48ad-8403-915a6851d84b",
"connections": {
"d90b79cc-b878-4210-8380-794cd378ec73": {
"main": [
[
{
"node": "b2cb439e-eccc-40ad-97db-265bcd9f7a73",
"type": "main",
"index": 0
}
],
[
{
"node": "f20fde43-bfb3-447a-9f43-51bf952c9d7e",
"type": "main",
"index": 0
}
],
[
{
"node": "a5afb97c-0fbf-48b1-b598-fbca46e3df96",
"type": "main",
"index": 0
}
],
[
{
"node": "a6843bfe-f649-4ab8-9208-1d3119e811c5",
"type": "main",
"index": 0
}
]
]
},
"28e51b1c-a4f3-4d95-af12-d4bd1219cfa2": {
"main": [
[
{
"node": "2c8c3b3a-edaf-42f2-8f3b-1c3a96bd4c7d",
"type": "main",
"index": 0
}
]
]
},
"e3b06669-954e-494f-8b59-080d9d7083a8": {
"ai_languageModel": [
[
{
"node": "2c8c3b3a-edaf-42f2-8f3b-1c3a96bd4c7d",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"df89cc2e-1b75-4176-a66d-f17d5076bb17": {
"ai_outputParser": [
[
{
"node": "2c8c3b3a-edaf-42f2-8f3b-1c3a96bd4c7d",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"0dcd6a1b-7968-40da-ad27-4d39fadc243a": {
"main": [
[
{
"node": "d90b79cc-b878-4210-8380-794cd378ec73",
"type": "main",
"index": 0
}
]
]
},
"2c8c3b3a-edaf-42f2-8f3b-1c3a96bd4c7d": {
"main": [
[
{
"node": "c8fa6490-f0db-400c-8283-e8f9120e6481",
"type": "main",
"index": 0
},
{
"node": "6d51e57a-1303-46a0-95ce-80d3a17c30db",
"type": "main",
"index": 0
},
{
"node": "fa6143c9-3312-4890-a490-3bc3db355c53",
"type": "main",
"index": 0
}
]
]
},
"b2cb439e-eccc-40ad-97db-265bcd9f7a73": {
"main": [
[
{
"node": "919833cb-1add-4670-86a4-466f3df925f3",
"type": "main",
"index": 0
}
]
]
},
"f20fde43-bfb3-447a-9f43-51bf952c9d7e": {
"main": [
[
{
"node": "b25da743-0d4b-46a2-bb51-2b8e1c533ac5",
"type": "main",
"index": 0
}
]
]
},
"70d29e8e-3e2d-4177-abdc-d3da8d6b60e4": {
"main": [
[
{
"node": "0dcd6a1b-7968-40da-ad27-4d39fadc243a",
"type": "main",
"index": 0
}
]
]
},
"a6843bfe-f649-4ab8-9208-1d3119e811c5": {
"main": [
[
{
"node": "725c7c7e-6422-4bcb-8bb1-441766741c96",
"type": "main",
"index": 0
}
]
]
},
"a5afb97c-0fbf-48b1-b598-fbca46e3df96": {
"main": [
[
{
"node": "2c686701-f3fa-4bf4-bdea-b11dce7b2862",
"type": "main",
"index": 0
}
]
]
},
"725c7c7e-6422-4bcb-8bb1-441766741c96": {
"main": [
[
{
"node": "28e51b1c-a4f3-4d95-af12-d4bd1219cfa2",
"type": "main",
"index": 0
}
]
]
},
"2c686701-f3fa-4bf4-bdea-b11dce7b2862": {
"main": [
[
{
"node": "28e51b1c-a4f3-4d95-af12-d4bd1219cfa2",
"type": "main",
"index": 0
}
]
]
},
"919833cb-1add-4670-86a4-466f3df925f3": {
"main": [
[
{
"node": "28e51b1c-a4f3-4d95-af12-d4bd1219cfa2",
"type": "main",
"index": 0
}
]
]
},
"b25da743-0d4b-46a2-bb51-2b8e1c533ac5": {
"main": [
[
{
"node": "28e51b1c-a4f3-4d95-af12-d4bd1219cfa2",
"type": "main",
"index": 0
}
]
]
},
"6d51e57a-1303-46a0-95ce-80d3a17c30db": {
"main": [
[
{
"node": "7f5d181b-18bc-4bb4-8ae9-bc2e05137127",
"type": "main",
"index": 0
}
]
]
}
}
}¿Cómo usar este flujo de trabajo?
Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.
¿En qué escenarios es adecuado este flujo de trabajo?
Avanzado - Inteligencia Artificial, Marketing
¿Es de pago?
Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.
Flujos de trabajo relacionados recomendados
Ranjan Dailata
@ranjancseA Professional based out of India specialized in handling AI-powered automations. Contact me at ranjancse@gmail.com
Compartir este flujo de trabajo