{
  "name": "Verify service providers via Telegram using BrowserAct and Google Gemini",
  "nodes": [
    {
      "id": "e639d2f7-1486-473f-b0bc-50b8d905ebd9",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -640,
        400
      ]
    },
    {
      "id": "1489a24b-4a92-4e3f-acda-3658d2ed6484",
      "name": "Validate user inputs",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -768,
        208
      ]
    },
    {
      "id": "98e514a8-48fe-4321-abdb-2f9ed3fc4622",
      "name": "Validation bot",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -768,
        400
      ]
    },
    {
      "id": "f2f89193-2846-4b12-bd9b-7f4168f04dd1",
      "name": "Human verification Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        352,
        160
      ]
    },
    {
      "id": "56b11eac-c995-4cac-ac79-06b8feee4de6",
      "name": "Verify Data",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1568,
        336
      ]
    },
    {
      "id": "6289d449-c5fc-4fb5-93b7-1d8be5ea8ee5",
      "name": "Ask For human verification",
      "type": "n8n-nodes-base.telegram",
      "position": [
        576,
        224
      ]
    },
    {
      "id": "852ed90b-51c9-4a01-9e1a-b0095249fb1b",
      "name": "User Sends Message to Bot",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -944,
        208
      ]
    },
    {
      "id": "4bbb6003-7a52-4459-93de-249e44091858",
      "name": "Get Vendor Data & Stats",
      "type": "n8n-nodes-browseract.browserAct",
      "position": [
        80,
        176
      ]
    },
    {
      "id": "f1a90fff-e216-40c9-bd14-5c5120dfd3dc",
      "name": "Process Initialization Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        80,
        32
      ]
    },
    {
      "id": "ba0a5c1d-b3bf-47a6-ab40-283456183f93",
      "name": "Give Time to Complete Verification",
      "type": "n8n-nodes-base.wait",
      "position": [
        800,
        224
      ]
    },
    {
      "id": "dad70b7c-70e1-4333-b8a1-05dfa75df3f7",
      "name": "Analyze Data & Verify Providers",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1568,
        144
      ]
    },
    {
      "id": "90b6c7ea-e976-4b07-a035-832f5a9f5aff",
      "name": "Get Data From BrowserAct",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1024,
        224
      ]
    },
    {
      "id": "5a0c9320-4b13-436c-a6d8-a3403f12348b",
      "name": "Send Failure Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        576,
        384
      ]
    },
    {
      "id": "d91455f4-9ad9-4d83-85f5-b94f37ae7a00",
      "name": "Result Post Delivery",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1952,
        144
      ]
    },
    {
      "id": "aaf16d2a-a59c-4086-aeb8-bd7defcfd948",
      "name": "Answer the User",
      "type": "n8n-nodes-base.telegram",
      "position": [
        160,
        432
      ]
    },
    {
      "id": "536e1897-f467-465e-b2cb-4511a355e8fa",
      "name": "Chat bot Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -144,
        432
      ]
    },
    {
      "id": "bd5b897f-ae62-4bff-965c-da8cfcff5386",
      "name": "Chat bot",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -144,
        576
      ]
    },
    {
      "id": "e33cce1b-6e27-4c67-ade3-8250ee0dabad",
      "name": "Validation Type Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -416,
        192
      ]
    },
    {
      "id": "16d690c9-f604-49be-8730-aac1d0148e2e",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        -352
      ],
      "parameters": {
        "width": 380,
        "height": 504,
        "content": "## ⚡ Workflow Overview & Setup\n\n**Summary:** This automation verifies service providers by cross-referencing local business listings from Google against official corporate registries via OpenCorporate"
      }
    },
    {
      "id": "d2e37ea4-f948-4b51-a163-06b38dcb0a83",
      "name": "Step 1 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -928,
        48
      ],
      "parameters": {
        "width": 636,
        "height": 108,
        "content": "### 🔍 Step 1: Input Validation\n\nThe workflow analyzes incoming Telegram messages to extract the service provider name and geographic location. If essential data is missing or the input is casual chat,"
      }
    },
    {
      "id": "434583d3-f86c-4817-a48c-524c9bf93954",
      "name": "Step 2 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        -96
      ],
      "parameters": {
        "width": 1132,
        "height": 108,
        "content": "### 🌐 Step 2: Automated Data Extraction\n\nBrowserAct performs a dual search, scraping market presence data (reviews/ratings) from Google and corporate registry status from OpenCorporates. It handles hu"
      }
    },
    {
      "id": "2f800a74-f127-4368-829b-ba888e2dadfb",
      "name": "Step 3 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        -32
      ],
      "parameters": {
        "width": 732,
        "height": 108,
        "content": "### 📊 Step 3: Analysis & Verification\n\nAn AI agent cross-references the local map listings with official corporate data. It calculates branch ratings, review volumes, and issues a final verification s"
      }
    },
    {
      "id": "051ee6c6-a5d5-4282-8da8-a737ac418614",
      "name": "Step 4 Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        688
      ],
      "parameters": {
        "width": 580,
        "height": 120,
        "content": "### 💬 Step 2-2: Conversational Fallback\n\nIf no location is present in the user's message, this branch engages the user in natural conversation or prompts them to provide a location for processing."
      }
    },
    {
      "id": "04112fa9-322c-4087-b100-7da9d0e31213",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -928,
        -352
      ],
      "parameters": {
        "width": 624,
        "height": 368,
        "content": "@[youtube](OS3pWKptxDw)"
      }
    }
  ],
  "connections": {
    "Chat bot": {
      "ai_languageModel": [
        [
          {
            "node": "Chat bot Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Verify Data": {
      "ai_languageModel": [
        [
          {
            "node": "Analyze Data & Verify Providers",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Chat bot Agent": {
      "main": [
        [
          {
            "node": "Answer the User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validation bot": {
      "ai_languageModel": [
        [
          {
            "node": "Validate user inputs",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Validate user inputs": {
      "main": [
        [
          {
            "node": "Validation Type Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validation Type Switch": {
      "main": [
        [
          {
            "node": "Process Initialization Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Vendor Data & Stats",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Chat bot Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Chat bot Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Vendor Data & Stats": {
      "main": [
        [
          {
            "node": "Human verification Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Data From BrowserAct": {
      "main": [
        [
          {
            "node": "Analyze Data & Verify Providers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Validate user inputs",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Human verification Switch": {
      "main": [
        [
          {
            "node": "Analyze Data & Verify Providers",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Ask For human verification",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Failure Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "User Sends Message to Bot": {
      "main": [
        [
          {
            "node": "Validate user inputs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ask For human verification": {
      "main": [
        [
          {
            "node": "Give Time to Complete Verification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Data & Verify Providers": {
      "main": [
        [
          {
            "node": "Result Post Delivery",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Give Time to Complete Verification": {
      "main": [
        [
          {
            "node": "Get Data From BrowserAct",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}