Files
n8n-backup-v2/workflows/VUwFjFF2UhNout2T.json
2026-01-02 22:48:32 +00:00

96 lines
2.3 KiB
JSON

{
"id": "VUwFjFF2UhNout2T",
"name": "tool_brave_search",
"nodes": [
{
"parameters": {
"inputSource": "jsonExample",
"jsonExample": "{\n \"query\": \"Spice and Wolf\"\n}"
},
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1.1,
"position": [
-720,
-176
],
"id": "94d07541-655c-4c2d-aa22-44e4cd502d92",
"name": "When Executed by Another Workflow"
},
{
"parameters": {
"query": "={{ $json.query }}",
"count": 5,
"additionalParameters": {}
},
"type": "@brave/n8n-nodes-brave-search.braveSearch",
"typeVersion": 1,
"position": [
-512,
-176
],
"id": "e633ffd1-1d64-4455-a9cb-626562b7ea09",
"name": "Brave Search",
"credentials": {
"braveSearchApi": {
"id": "o6A594KZAPzN3LTR",
"name": "Brave Search account"
}
}
},
{
"parameters": {
"jsCode": "// Get the raw search results\nconst results = items[0].json.web?.results || items; \n\n// Map to ONLY Title and URL\nconst cleanResults = results.map(r => ({\n title: r.title,\n url: r.url\n}));\n\n// Return as a single simplified JSON object\nreturn [\n {\n json: {\n search_summary: cleanResults\n }\n }\n];"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
-304,
-176
],
"id": "0a797ece-4868-4e1e-9dbe-b3bbb9aeb74b",
"name": "Code in JavaScript"
}
],
"connections": {
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Brave Search",
"type": "main",
"index": 0
}
]
]
},
"Brave Search": {
"main": [
[
{
"node": "Code in JavaScript",
"type": "main",
"index": 0
}
]
]
},
"Code in JavaScript": {
"main": [
[]
]
}
},
"settings": {
"executionOrder": "v1"
},
"triggerCount": 0,
"versionId": "6fa8f712-deaa-467d-ac3c-f0c37f7867fb",
"owner": {
"type": "personal",
"projectId": "FeLO36wNUAcn61Wj",
"projectName": "Ben W <admin@ben.io>",
"personalEmail": "admin@ben.io"
},
"parentFolderId": "of8yoeyjjIAhYdnQ",
"isArchived": false
}