Skip to content

Instantly share code, notes, and snippets.

@nescampos
Created August 25, 2025 14:39
Show Gist options
  • Select an option

  • Save nescampos/9a3c4e80c11273c5c3a98c4fc2a5010b to your computer and use it in GitHub Desktop.

Select an option

Save nescampos/9a3c4e80c11273c5c3a98c4fc2a5010b to your computer and use it in GitHub Desktop.
N8N AI agent with Bright Data to analyze the website and business
{
"name": "Business and website Analysis",
"nodes": [
{
"parameters": {
"zone": {
"__rl": true,
"mode": "list",
"value": "web_unlocker1"
},
"country": {
"__rl": true,
"mode": "list",
"value": "us"
},
"url": "={{ $json.URL }}",
"format": "json",
"requestOptions": {}
},
"type": "@brightdata/n8n-nodes-brightdata.brightData",
"typeVersion": 1,
"position": [
-96,
-32
],
"id": "762da279-8d9e-4b09-aa7f-387365a2a489",
"name": "Access and extract data from a specific URL",
"credentials": {
"brightdataApi": {
"id": "SFdRrbHkrSjIIrQP",
"name": "BrightData account"
}
}
},
{
"parameters": {
"model": {
"__rl": true,
"value": "openai/gpt-oss-120b",
"mode": "id"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
192,
176
],
"id": "5251afea-8aa1-4ea2-bfcb-e755eb617f47",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "36Acr2QqZqp4GPOX",
"name": "OpenAi account 2"
}
}
},
{
"parameters": {
"operation": "extractHtmlContent",
"dataPropertyName": "body",
"extractionValues": {
"values": [
{
"key": "body",
"cssSelector": "body"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [
112,
-32
],
"id": "2a7ed850-ab6b-4f65-bdac-7916dcde8391",
"name": "Extract HTML content",
"alwaysOutputData": false
},
{
"parameters": {
"promptType": "define",
"text": "=Act as a web development and digital communication expert. Analyze the following HTML code along with its textual and visual content (if applicable). Your objective is to evaluate both the technical structure and the communication effectiveness of the site. Submit a report divided into the following sections:\n\n1. ✅ Positive Aspects\nGood HTML practices (structure, semantics, accessibility, performance)\n\nClarity of the message and the product or service offered\n\nElements that generate trust or engagement\n\n2. ⚠️ Negative Aspects\nTechnical errors or bad practices in the HTML\n\nAmbiguity in the content or lack of clarity about the product/service\n\nUsability, accessibility, or user experience issues\n\n3. 🛠️ Recommendations for Improvement\nSpecific suggestions for optimizing the HTML code\n\nImprovements to writing, information hierarchy, and communication of the product/service's value\n\nProposals to improve conversion, SEO, and the visitor experience\n\nBe clear, precise, and structured. Use technical language accessible to intermediate developers and writers. If you find the site isn't communicating its value proposition well, explain why and how it could be better.\n\nHTML:\n {{ $json.body }}\n\nSend the results in HTML format to display in a website",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2.2,
"position": [
320,
-32
],
"id": "6b4c9c4f-7699-443e-bf10-71bb94447a5f",
"name": "Business and Website analyzer AI Agent"
},
{
"parameters": {
"operation": "completion",
"respondWith": "showText",
"responseText": "=\n{{ $json.output }}\n"
},
"type": "n8n-nodes-base.form",
"typeVersion": 1,
"position": [
880,
-32
],
"id": "b1b5b66f-fde8-49d6-846d-13297c37a789",
"name": "Summary",
"webhookId": "1a5b9498-eab1-4aa3-8ca5-9b16379c9eb7"
},
{
"parameters": {
"formTitle": "Business and website Analysis",
"formDescription": "Upload your URL and we'll analyze both your website and business to understand the positive aspects and opportunities for improvement so you can achieve success.",
"formFields": {
"values": [
{
"fieldLabel": "URL",
"placeholder": "URL to analyze",
"requiredField": true
}
]
},
"options": {}
},
"type": "n8n-nodes-base.formTrigger",
"typeVersion": 2.2,
"position": [
-304,
-32
],
"id": "6b50d0e4-6965-466a-b05b-0f2673975b47",
"name": "Form",
"webhookId": "734fd011-fe3c-4fe5-b912-b19a8a5b54c6"
}
],
"pinData": {},
"connections": {
"Access and extract data from a specific URL": {
"main": [
[
{
"node": "Extract HTML content",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Business and Website analyzer AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Extract HTML content": {
"main": [
[
{
"node": "Business and Website analyzer AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Business and Website analyzer AI Agent": {
"main": [
[
{
"node": "Summary",
"type": "main",
"index": 0
}
]
]
},
"Form": {
"main": [
[
{
"node": "Access and extract data from a specific URL",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "7eb2253d-0958-4ef6-b892-6a9bdc2c90d0",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "fd8e1f4a009535eb0f808e803cb006da63fa81bf15008cc4c463a979fb2006b0"
},
"id": "YU1ytW1Fv0WTKpjj",
"tags": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment