{
  "id": "ZCAkUSpaxzoRPbse",
  "meta": {
    "instanceId": "workflow-9db9a768",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:50.056978",
    "updatedAt": "2025-09-29T07:07:50.056999",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "Search & Summarize Web Data with Perplexity, Gemini AI & Bright Data to Webhooks",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "674c6b61-76fa-4ac0-ab32-3f48ed5cba39",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1140,
        400
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This manualTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "f6066e4c-4f6f-48fd-b19f-2c25fdc5b8b2",
      "name": "Google Gemini Chat Model",
      "type": "n8n-nodes-base.noOp",
      "notes": "Gemini Experimental Model",
      "position": [
        760,
        580
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-2.0-flash-thinking-exp-01-21"
      },
      "credentials": {
        "googlePalmApi": {
          "id": "YeO7dHZnuGBVQKVZ",
          "name": "Google Gemini(PaLM) Api account"
        }
      },
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "e16a1442-924a-4558-90cb-1c9ddc606532",
      "name": "Default Data Loader",
      "type": "n8n-nodes-base.noOp",
      "position": [
        940,
        580
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1,
      "notes": "This documentDefaultDataLoader node performs automated tasks as part of the workflow."
    },
    {
      "id": "a8d9bc8e-c5f6-4d66-af60-9eecb9f6569c",
      "name": "Recursive Character Text Splitter",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1040,
        800
      ],
      "parameters": {
        "options": {},
        "chunkOverlap": 100
      },
      "typeVersion": 1,
      "notes": "This textSplitterRecursiveCharacterTextSplitter node performs automated tasks as part of the workflow."
    },
    {
      "id": "4ba96504-4ca5-43cf-962c-87320a683b09",
      "name": "If Node",
      "type": "n8n-nodes-base.if",
      "position": [
        -200,
        400
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "6a7e5360-4cb5-4806-892e-5c85037fa71c",
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "ready"
            }
          ]
        }
      },
      "typeVersion": 2.2,
      "notes": "This if node performs automated tasks as part of the workflow."
    },
    {
      "id": "11fbf88d-99f7-453c-946d-65c886bd50b8",
      "name": "Set Snapshot Id",
      "type": "n8n-nodes-base.set",
      "position": [
        -740,
        400
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "2c3369c6-9206-45d7-9349-f577baeaf189",
              "name": "snapshot_id",
              "type": "string",
              "value": "={{ $json.snapshot_id }}"
            }
          ]
        }
      },
      "typeVersion": 3.4,
      "notes": "This set node performs automated tasks as part of the workflow."
    },
    {
      "id": "2635d7ff-3de9-40af-925e-e391c3fd5f54",
      "name": "Download Snapshot",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        140,
        200
      ],
      "parameters": {
        "url": "{{ $env.BASE_URL }}",
        "options": {
          "timeout": 10000
        },
        "sendQuery": true,
        "authentication": "{{ $credentials.genericCredentialType }}",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "format",
              "value": "json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "kdbqXuxIR8qIxF7y",
          "name": "Header Auth account"
        }
      },
      "typeVersion": 4.2,
      "notes": "This httpRequest node performs automated tasks as part of the workflow."
    },
    {
      "id": "fe5bff52-4745-4c8f-a5e8-b9b48d421ffe",
      "name": "Google Gemini Chat Model1",
      "type": "n8n-nodes-base.noOp",
      "position": [
        380,
        380
      ],
      "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": "8124f050-ad7f-4478-8edf-c4d02193f54c",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -200,
        620
      ],
      "webhookId": "631cd5de-36b3-4264-88ae-45b30e2c2ccc",
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1,
      "notes": "This wait node performs automated tasks as part of the workflow."
    },
    {
      "id": "1926f22c-e269-40e8-a55d-3945810d13e2",
      "name": "Check on the errors",
      "type": "n8n-nodes-base.if",
      "position": [
        -80,
        40
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "b267071c-7102-407b-a98d-f613bcb1a106",
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.errors.toString() }}",
              "rightValue": "0"
            }
          ]
        }
      },
      "typeVersion": 2.2,
      "notes": "This if node performs automated tasks as part of the workflow."
    },
    {
      "id": "50a8f7ac-bf66-493e-956e-7278ea7702c1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1140,
        40
      ],
      "parameters": {
        "width": 400,
        "height": 240,
        "content": "## Note\n\nDeals with the Perplexity Search using the Bright Data Web Scrapper API.\n\nThe information extraction and summarization are done to demonstrate the usage of the N8N AI capabilities.\n\n**Please make sure to update the Webhook Notification URL**"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "4906478c-6f10-4f47-94cc-78e36939e929",
      "name": "Webhook Notifier",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1140,
        200
      ],
      "parameters": {
        "url": "{{ $env.WEBHOOK_URL }}",
        "options": {},
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "response",
              "value": "={{ $json.output }}"
            }
          ]
        }
      },
      "typeVersion": 4.2,
      "notes": "This httpRequest node performs automated tasks as part of the workflow."
    },
    {
      "id": "dd5dcbf3-bc3e-4676-af64-8a41807ba970",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        40
      ],
      "parameters": {
        "width": 420,
        "height": 240,
        "content": "## LLM Usages\n\nGoogle Gemini Flash Exp model is being used.\n\nInformation extraction is being used for formatting the html to text\n\nSummarization Chain is being used for summarization of the content"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "4cc0e400-5722-4eaf-ac95-10b0c9592345",
      "name": "Perplexity Search Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -920,
        400
      ],
      "parameters": {
        "url": "{{ $env.API_BASE_URL }}",
        "method": "POST",
        "options": {},
        "jsonBody": "[\n  {\n    \"url\": \"{{ $env.WEBHOOK_URL }}\",\n    \"prompt\": \"tell me about BrightData\",\n    \"country\": \"US\"\n  }\n]",
        "sendBody": true,
        "sendQuery": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "{{ $credentials.genericCredentialType }}",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "dataset_id",
              "value": "gd_m7dhdot1vw9a7gc1n"
            },
            {
              "name": "include_errors",
              "value": "true"
            }
          ]
        },
        "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": "be9cc310-8f0d-4065-8246-aeddde697953",
      "name": "Check Snapshot Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -460,
        400
      ],
      "parameters": {
        "url": "{{ $env.BASE_URL }}",
        "options": {},
        "sendHeaders": true,
        "authentication": "{{ $credentials.genericCredentialType }}",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "kdbqXuxIR8qIxF7y",
          "name": "Header Auth account"
        }
      },
      "typeVersion": 4.2,
      "notes": "This httpRequest node performs automated tasks as part of the workflow."
    },
    {
      "id": "66efd680-1d4d-4930-9712-ba9fd1b3a3be",
      "name": "Readable Data Extractor",
      "type": "n8n-nodes-base.noOp",
      "position": [
        360,
        200
      ],
      "parameters": {
        "text": "={{ $json.answer_html }}",
        "options": {},
        "attributes": {
          "attributes": [
            {
              "name": "readable content",
              "description": "Readable Content"
            }
          ]
        }
      },
      "typeVersion": 1,
      "notes": "This informationExtractor node performs automated tasks as part of the workflow."
    },
    {
      "id": "3c5b4744-7475-40a6-a1f5-cce2b700c84a",
      "name": "Summarization of search result",
      "type": "n8n-nodes-base.noOp",
      "position": [
        760,
        200
      ],
      "parameters": {
        "options": {},
        "operationMode": "documentLoader"
      },
      "typeVersion": 2,
      "notes": "This chainSummarization 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": "4628ec64-b023-4185-b38f-a74e2de76ec5",
  "connections": {
    "2635d7ff-3de9-40af-925e-e391c3fd5f54": {
      "main": [
        [
          {
            "node": "error-handler-2635d7ff-3de9-40af-925e-e391c3fd5f54",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-2635d7ff-3de9-40af-925e-e391c3fd5f54-0b5ccf58",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-2635d7ff-3de9-40af-925e-e391c3fd5f54-4a5362fa",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-2635d7ff-3de9-40af-925e-e391c3fd5f54-4a7bc00a",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-2635d7ff-3de9-40af-925e-e391c3fd5f54-2891258b",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-2635d7ff-3de9-40af-925e-e391c3fd5f54-3462b3f0",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-2635d7ff-3de9-40af-925e-e391c3fd5f54-be722c8c",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-2635d7ff-3de9-40af-925e-e391c3fd5f54-ae2ce87a",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-2635d7ff-3de9-40af-925e-e391c3fd5f54-ecf72b67",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4906478c-6f10-4f47-94cc-78e36939e929": {
      "main": [
        [
          {
            "node": "error-handler-4906478c-6f10-4f47-94cc-78e36939e929",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4906478c-6f10-4f47-94cc-78e36939e929-d2b3d8e4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4906478c-6f10-4f47-94cc-78e36939e929-1e2ffe9e",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4906478c-6f10-4f47-94cc-78e36939e929-33ee5d79",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4906478c-6f10-4f47-94cc-78e36939e929-214744da",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4906478c-6f10-4f47-94cc-78e36939e929-0afab4e5",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4906478c-6f10-4f47-94cc-78e36939e929-afeecd37",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4906478c-6f10-4f47-94cc-78e36939e929-bd35df6f",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4906478c-6f10-4f47-94cc-78e36939e929-26e5a8e1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4cc0e400-5722-4eaf-ac95-10b0c9592345": {
      "main": [
        [
          {
            "node": "error-handler-4cc0e400-5722-4eaf-ac95-10b0c9592345",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4cc0e400-5722-4eaf-ac95-10b0c9592345-74ea5dce",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4cc0e400-5722-4eaf-ac95-10b0c9592345-c92c8fe2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4cc0e400-5722-4eaf-ac95-10b0c9592345-1d2358ca",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4cc0e400-5722-4eaf-ac95-10b0c9592345-bac7daa8",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4cc0e400-5722-4eaf-ac95-10b0c9592345-291c3d51",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4cc0e400-5722-4eaf-ac95-10b0c9592345-45751df8",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4cc0e400-5722-4eaf-ac95-10b0c9592345-f6633f86",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-4cc0e400-5722-4eaf-ac95-10b0c9592345-ab8a26df",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "be9cc310-8f0d-4065-8246-aeddde697953": {
      "main": [
        [
          {
            "node": "error-handler-be9cc310-8f0d-4065-8246-aeddde697953",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-be9cc310-8f0d-4065-8246-aeddde697953-d2b2ddd1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-be9cc310-8f0d-4065-8246-aeddde697953-b7360398",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-be9cc310-8f0d-4065-8246-aeddde697953-3150afe9",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-be9cc310-8f0d-4065-8246-aeddde697953-7c24b010",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-be9cc310-8f0d-4065-8246-aeddde697953-0a7d437f",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-be9cc310-8f0d-4065-8246-aeddde697953-394ad4bc",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-be9cc310-8f0d-4065-8246-aeddde697953-2538409b",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-be9cc310-8f0d-4065-8246-aeddde697953-b7be3fe3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f6066e4c-4f6f-48fd-b19f-2c25fdc5b8b2": {
      "main": [
        [
          {
            "node": "error-handler-f6066e4c-4f6f-48fd-b19f-2c25fdc5b8b2-d495ccfe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fe5bff52-4745-4c8f-a5e8-b9b48d421ffe": {
      "main": [
        [
          {
            "node": "error-handler-fe5bff52-4745-4c8f-a5e8-b9b48d421ffe-af2c93ee",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "description": "Automated workflow: Search & Summarize Web Data with Perplexity, Gemini AI & Bright Data to Webhooks. This workflow integrates 12 different services: stickyNote, httpRequest, wait, textSplitterRecursiveCharacterTextSplitter, lmChatGoogleGemini. It contains 27 nodes and follows best practices for error handling and security.",
  "notes": "Excellent quality workflow: Search & Summarize Web Data with Perplexity, Gemini AI & Bright Data to Webhooks. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
}