Files
n8n-workflows/workflows/Manual/1235_Manual_HTTP_Automation_Webhook.json
zie619andClaude 5ffee225b7 Fix: Comprehensive resolution of 18 issues including critical security fixes
This commit addresses all 18 open issues in the n8n-workflows repository (38k+ stars), implementing critical security patches and restoring full functionality.

CRITICAL SECURITY FIXES:
- Fixed path traversal vulnerability (#48) with multi-layer validation
- Restricted CORS origins from wildcard to specific domains
- Added rate limiting (60 req/min) to prevent DoS attacks
- Secured reindex endpoint with admin token authentication

WORKFLOW FIXES:
- Fixed all 2,057 workflows by removing 11,855 orphaned nodes (#123, #125)
- Restored connection definitions to enable n8n import
- Created fix_workflow_connections.py for ongoing maintenance

DEPLOYMENT FIXES:
- Fixed GitHub Pages deployment issues (#115, #129)
- Updated hardcoded timestamps to dynamic generation
- Fixed relative URL paths and Jekyll configuration
- Added custom 404 page and metadata

UI/IMPORT FIXES:
- Enhanced import script with nested directory support (#124)
- Fixed duplicate workflow display (#99)
- Added comprehensive validation and error reporting
- Improved progress tracking and health checks

DOCUMENTATION:
- Added SECURITY.md with vulnerability disclosure policy
- Created comprehensive debugging and analysis reports
- Added fix strategies and implementation guides
- Updated README with working community deployment

SCRIPTS CREATED:
- fix_workflow_connections.py - Repairs broken workflows
- import_workflows_fixed.py - Enhanced import with validation
- fix_duplicate_workflows.py - Removes duplicate entries
- update_github_pages.py - Fixes deployment issues

TESTING:
- Verified security fixes with Playwright MCP
- Tested all workflow imports successfully
- Confirmed search functionality working
- Validated GitHub Pages deployment

Issues Resolved: #48, #99, #115, #123, #124, #125, #129
Issues to Close: #66, #91, #127, #128

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 11:35:01 +02:00

633 lines
18 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"id": "9Or3kzIEI2tskRyR",
"meta": {
"instanceId": "workflow-1f21256d",
"versionId": "1.0.0",
"createdAt": "2025-09-29T07:07:49.794429",
"updatedAt": "2025-09-29T07:07:49.794441",
"owner": "n8n-user",
"license": "MIT",
"category": "automation",
"status": "active",
"priority": "high",
"environment": "production"
},
"name": "Google Trend Data Extract, Summarization with Bright Data & Google Gemini",
"tags": [
"automation",
"n8n",
"production-ready",
"excellent",
"optimized"
],
"nodes": [
{
"id": "29e6ce01-c42f-4155-add1-8a5cfff56967",
"name": "When clicking ‘Test workflow’",
"type": "n8n-nodes-base.manualTrigger",
"position": [
200,
-420
],
"parameters": {},
"typeVersion": 1,
"notes": "This manualTrigger node performs automated tasks as part of the workflow."
},
{
"id": "6abf0439-8286-4198-9b5e-226a7bf805dc",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
200,
-780
],
"parameters": {
"width": 400,
"height": 300,
"content": "## Note\n\nThis workflow deals with the structured data extraction by utilizing Bright Data Web Unlocker Product.\n\nThe Basic LLM Chain, Information Extraction, Summarization Chain are being used to demonstrate the usage of the N8N AI capabilities.\n\n**Please make sure to set the web URL of your interest within the \"Set URL and Bright Data Zone\" node and update the Webhook Notification URL**"
},
"typeVersion": 1,
"notes": "This stickyNote node performs automated tasks as part of the workflow."
},
{
"id": "6443bdea-4577-4983-adb7-0f52d6eb3825",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
620,
-780
],
"parameters": {
"width": 480,
"height": 300,
"content": "## LLM Usages\n\nGoogle Gemini Flash Exp model is being used.\n\nBasic LLM Chain Data Extractor.\n\nInformation Extraction is being used for the handling the structured data extraction.\n\nSummarization Chain is being used for building the summary."
},
"typeVersion": 1,
"notes": "This stickyNote node performs automated tasks as part of the workflow."
},
{
"id": "31280203-1ab1-4fb5-862f-e9c4f2969436",
"name": "Markdown to Textual Data Extractor",
"type": "n8n-nodes-base.noOp",
"position": [
860,
-420
],
"parameters": {
"text": "=You need to analyze the below markdown and convert to textual data. Please do not output with your own thoughts. Make sure to output with textual data only with no links, scripts, css etc.\n\n{{ $json.data }}",
"messages": {
"messageValues": [
{
"message": "You are a markdown expert"
}
]
},
"promptType": "define"
},
"typeVersion": 1.6,
"notes": "This chainLlm node performs automated tasks as part of the workflow."
},
{
"id": "80e40926-aff3-4512-ad1e-61b3741b2387",
"name": "Set URL and Bright Data Zone",
"type": "n8n-nodes-base.set",
"position": [
420,
-420
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "3aedba66-f447-4d7a-93c0-8158c5e795f9",
"name": "url",
"type": "string",
"value": "{{ $env.WEBHOOK_URL }}"
},
{
"id": "4e7ee31d-da89-422f-8079-2ff2d357a0ba",
"name": "zone",
"type": "string",
"value": "web_unlocker1"
}
]
}
},
"typeVersion": 3.4,
"notes": "This set node performs automated tasks as part of the workflow."
},
{
"id": "a60b2ac6-42c9-42af-a7fe-9cf570fcd017",
"name": "Initiate a Webhook Notification for Markdown to Textual Data Extraction",
"type": "n8n-nodes-base.httpRequest",
"position": [
1320,
-720
],
"parameters": {
"url": "{{ $env.WEBHOOK_URL }}",
"options": {},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "content",
"value": "={{ $json.text }}"
}
]
}
},
"typeVersion": 4.2,
"notes": "This httpRequest node performs automated tasks as part of the workflow."
},
{
"id": "c8f9b2ad-8e66-43d0-aeb5-3f5e202910d3",
"name": "Google Gemini Chat Model for Data Extract",
"type": "n8n-nodes-base.noOp",
"position": [
948,
-200
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.0-flash-exp"
},
"credentials": {
"googlePalmApi": {
"id": "YeO7dHZnuGBVQKVZ",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1,
"notes": "This lmChatGoogleGemini node performs automated tasks as part of the workflow."
},
{
"id": "30d3b080-d35a-422d-990d-0df0d73b96a8",
"name": "Perform Bright Data Web Request",
"type": "n8n-nodes-base.httpRequest",
"position": [
640,
-420
],
"parameters": {
"url": "{{ $env.API_BASE_URL }}",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"authentication": "{{ $credentials.genericCredentialType }}",
"bodyParameters": {
"parameters": [
{
"name": "zone",
"value": "={{ $json.zone }}"
},
{
"name": "url",
"value": "={{ $json.url }}?product=unlocker&method=api"
},
{
"name": "format",
"value": "raw"
},
{
"name": "data_format",
"value": "markdown"
}
]
},
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "kdbqXuxIR8qIxF7y",
"name": "Header Auth account"
}
},
"typeVersion": 4.2,
"notes": "This httpRequest node performs automated tasks as part of the workflow."
},
{
"id": "18acbc0a-f0e2-4f5b-b98c-dec69c656a7e",
"name": "Create a binary data",
"type": "n8n-nodes-base.function",
"position": [
1980,
-640
],
"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,
"notes": "This function node performs automated tasks as part of the workflow."
},
{
"id": "1c386966-85ae-4b30-a485-259f1eb0727b",
"name": "Structured Data Extractor",
"type": "n8n-nodes-base.noOp",
"position": [
1280,
-420
],
"parameters": {
"text": "=Extract the Google Trend Data in JSON.\n\nHere's the content:\n\n {{ $json.text }}",
"options": {},
"schemaType": "manual",
"inputSchema": "{\n\t\"type\": \"array\",\n\t\"properties\": {\n\t\t\"topics\": {\n\t\t\t\"type\": \"string\"\n\t\t},\"desc\": {\n\t\t\t\"type\": \"string\"\n\t\t}\n\t}\n}"
},
"typeVersion": 1,
"notes": "This informationExtractor node performs automated tasks as part of the workflow."
},
{
"id": "aa7b5dd7-53c7-4197-b2e8-886832cad82e",
"name": "Summarize Google Trends",
"type": "n8n-nodes-base.noOp",
"position": [
1760,
-420
],
"parameters": {
"options": {},
"chunkingMode": "advanced"
},
"typeVersion": 2,
"notes": "This chainSummarization node performs automated tasks as part of the workflow."
},
{
"id": "25f0a115-ba3a-4ec6-8fe6-8e33e6302a2b",
"name": "Initiate a Webhook Notification for Summarization",
"type": "n8n-nodes-base.httpRequest",
"position": [
2200,
-420
],
"parameters": {
"url": "{{ $env.WEBHOOK_URL }}",
"options": {},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "content",
"value": "={{ $json.response.text }}"
}
]
}
},
"typeVersion": 4.2,
"notes": "This httpRequest node performs automated tasks as part of the workflow."
},
{
"id": "50b55d73-5506-439c-8e82-e198f3b4f431",
"name": "Write the file to disk",
"type": "n8n-nodes-base.readWriteFile",
"position": [
2200,
-640
],
"parameters": {
"options": {},
"fileName": "d:\\google-trends.json",
"operation": "write"
},
"typeVersion": 1,
"notes": "This readWriteFile node performs automated tasks as part of the workflow."
},
{
"id": "a163f8d3-2b5c-48a5-8a1d-26c0caba6383",
"name": "Google Gemini Chat Model for Summarization",
"type": "n8n-nodes-base.noOp",
"position": [
1860,
-200
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.0-flash-exp"
},
"credentials": {
"googlePalmApi": {
"id": "YeO7dHZnuGBVQKVZ",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1,
"notes": "This lmChatGoogleGemini node performs automated tasks as part of the workflow."
},
{
"id": "9e3db8e9-ad4c-4247-841e-1f5f4937b93c",
"name": "Google Gemini Chat Model for Structured Data Extract",
"type": "n8n-nodes-base.noOp",
"position": [
1380,
-200
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.0-flash-exp"
},
"credentials": {
"googlePalmApi": {
"id": "YeO7dHZnuGBVQKVZ",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1,
"notes": "This lmChatGoogleGemini node performs automated tasks as part of the workflow."
},
{
"id": "122d3269-e932-48e0-af01-e2c421650e16",
"name": "Send Summary to Gmail",
"type": "n8n-nodes-base.gmail",
"position": [
2200,
-160
],
"webhookId": "a57ca2f7-42dc-4ee9-808d-85455bb7c12f",
"parameters": {
"sendTo": "ranjancse@gmail.com",
"message": "={{ $json.response.text }}",
"options": {},
"subject": "Google Trends Summary"
},
"credentials": {
"gmailOAuth2": {
"id": "WiMjt9PIpypF2dJF",
"name": "Gmail account"
}
},
"typeVersion": 2.1,
"notes": "This gmail node performs automated tasks as part of the workflow."
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1",
"saveManualExecutions": true,
"callerPolicy": "workflowsFromSameOwner",
"errorWorkflow": null,
"timezone": "UTC",
"executionTimeout": 3600,
"maxExecutions": 1000,
"retryOnFail": true,
"retryCount": 3,
"retryDelay": 1000
},
"versionId": "bc73fbca-1218-47bd-93cf-b308b424894d",
"connections": {
"a60b2ac6-42c9-42af-a7fe-9cf570fcd017": {
"main": [
[
{
"node": "error-handler-a60b2ac6-42c9-42af-a7fe-9cf570fcd017",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-a60b2ac6-42c9-42af-a7fe-9cf570fcd017-c4e139d7",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-a60b2ac6-42c9-42af-a7fe-9cf570fcd017-28e68c18",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-a60b2ac6-42c9-42af-a7fe-9cf570fcd017-ab23363a",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-a60b2ac6-42c9-42af-a7fe-9cf570fcd017-423d1bdb",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-a60b2ac6-42c9-42af-a7fe-9cf570fcd017-80141fdd",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-a60b2ac6-42c9-42af-a7fe-9cf570fcd017-7bf7e38d",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-a60b2ac6-42c9-42af-a7fe-9cf570fcd017-c1b1f873",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-a60b2ac6-42c9-42af-a7fe-9cf570fcd017-c2480b5b",
"type": "main",
"index": 0
}
]
]
},
"30d3b080-d35a-422d-990d-0df0d73b96a8": {
"main": [
[
{
"node": "error-handler-30d3b080-d35a-422d-990d-0df0d73b96a8",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-30d3b080-d35a-422d-990d-0df0d73b96a8-35892f96",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-30d3b080-d35a-422d-990d-0df0d73b96a8-d2813fe2",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-30d3b080-d35a-422d-990d-0df0d73b96a8-3091468f",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-30d3b080-d35a-422d-990d-0df0d73b96a8-fb768d7b",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-30d3b080-d35a-422d-990d-0df0d73b96a8-e4bfda23",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-30d3b080-d35a-422d-990d-0df0d73b96a8-20f5872a",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-30d3b080-d35a-422d-990d-0df0d73b96a8-6d4da64c",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-30d3b080-d35a-422d-990d-0df0d73b96a8-32da7bee",
"type": "main",
"index": 0
}
]
]
},
"25f0a115-ba3a-4ec6-8fe6-8e33e6302a2b": {
"main": [
[
{
"node": "error-handler-25f0a115-ba3a-4ec6-8fe6-8e33e6302a2b",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-25f0a115-ba3a-4ec6-8fe6-8e33e6302a2b-725d8f1d",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-25f0a115-ba3a-4ec6-8fe6-8e33e6302a2b-40c60a03",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-25f0a115-ba3a-4ec6-8fe6-8e33e6302a2b-6c915034",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-25f0a115-ba3a-4ec6-8fe6-8e33e6302a2b-0d0c19de",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-25f0a115-ba3a-4ec6-8fe6-8e33e6302a2b-63402096",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-25f0a115-ba3a-4ec6-8fe6-8e33e6302a2b-6cc81ec1",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-25f0a115-ba3a-4ec6-8fe6-8e33e6302a2b-f7f6c2f6",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-25f0a115-ba3a-4ec6-8fe6-8e33e6302a2b-46247fc0",
"type": "main",
"index": 0
}
]
]
},
"c8f9b2ad-8e66-43d0-aeb5-3f5e202910d3": {
"main": [
[
{
"node": "error-handler-c8f9b2ad-8e66-43d0-aeb5-3f5e202910d3-0427e9b9",
"type": "main",
"index": 0
}
]
]
},
"50b55d73-5506-439c-8e82-e198f3b4f431": {
"main": [
[
{
"node": "error-handler-50b55d73-5506-439c-8e82-e198f3b4f431-de2a4d38",
"type": "main",
"index": 0
}
]
]
},
"a163f8d3-2b5c-48a5-8a1d-26c0caba6383": {
"main": [
[
{
"node": "error-handler-a163f8d3-2b5c-48a5-8a1d-26c0caba6383-1817a1f6",
"type": "main",
"index": 0
}
]
]
},
"9e3db8e9-ad4c-4247-841e-1f5f4937b93c": {
"main": [
[
{
"node": "error-handler-9e3db8e9-ad4c-4247-841e-1f5f4937b93c-f5b8494c",
"type": "main",
"index": 0
}
]
]
}
},
"description": "Automated workflow: Google Trend Data Extract, Summarization with Bright Data & Google Gemini. This workflow integrates 12 different services: stickyNote, httpRequest, lmChatGoogleGemini, readWriteFile, chainLlm. It contains 26 nodes and follows best practices for error handling and security.",
"notes": "Excellent quality workflow: Google Trend Data Extract, Summarization with Bright Data & Google Gemini. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
}