{
  "name": "Search the web with MCP-based Brave Search Engine on Telegram",
  "nodes": [
    {
      "id": "af9b297d-0f8f-408f-a4d6-7545a94e8a38",
      "name": "List Brave Tools",
      "type": "n8n-nodes-mcp.mcpClient",
      "position": [
        560,
        -40
      ]
    },
    {
      "id": "c3265586-a376-4d02-8f33-828bbba6d221",
      "name": "Exec Brave tool",
      "type": "n8n-nodes-mcp.mcpClient",
      "position": [
        800,
        -40
      ]
    },
    {
      "id": "adbfe84e-ab4a-4640-bb52-fcb06f9d1450",
      "name": "Clean query",
      "type": "n8n-nodes-base.code",
      "position": [
        300,
        -40
      ]
    },
    {
      "id": "9905cad4-e847-44be-8cc4-69fd427ce8a1",
      "name": "Send message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1040,
        -40
      ]
    },
    {
      "id": "bf0e7c48-bbc8-4efd-9083-2fa965902453",
      "name": "Get Message",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -440,
        -20
      ]
    },
    {
      "id": "b37c6f84-bceb-476c-9a7c-5682a4e69f8d",
      "name": "Search with Brave?",
      "type": "n8n-nodes-base.if",
      "position": [
        -180,
        -20
      ]
    },
    {
      "id": "e879ea50-83f9-4a87-856c-a06a628ae31c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        -860
      ],
      "parameters": {
        "width": 480,
        "height": null,
        "content": "## PRELIMINARY STEPS\n- Access to an n8n self-hosted instance and install the Community node \"n8n-nodes-mcp\". Please see this [easy guide](https://github.com/nerding-io/n8n-nodes-mcp)\n- Get your Brave "
      }
    },
    {
      "id": "754e62d1-efdb-460d-bdb1-2369d633a804",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        -660
      ],
      "parameters": {
        "width": 480,
        "height": 420,
        "content": "## SET MCP BRAVE TOOL\nIn \"List Brave Tools\" create new credential as shown in  this image\n![image](https://github.com/nerding-io/n8n-nodes-mcp/raw/main/assets/credentials-envs.png)\n\nIn Environment fie"
      }
    },
    {
      "id": "073eb8d2-9026-4031-af01-850342a5c5ca",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -120
      ],
      "parameters": {
        "width": null,
        "height": 260,
        "content": "the search only occurs when the command \"/brave\" is present in the message"
      }
    },
    {
      "id": "eb76fbed-0ba0-4a56-a1fe-65e4bfb38ea8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -120
      ],
      "parameters": {
        "width": 220,
        "height": 260,
        "content": "I clean the message by removing the \"/brave\" command"
      }
    },
    {
      "id": "980bf4e1-15cf-4276-b746-343850ec4b6f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        -120
      ],
      "parameters": {
        "width": 180,
        "height": 260,
        "content": "Get all available Brave search tools"
      }
    },
    {
      "id": "2c712ec4-2184-4136-bd21-f17e19fb029e",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        -120
      ],
      "parameters": {
        "width": 180,
        "height": 260,
        "content": "I get the search results"
      }
    },
    {
      "id": "226a396a-e152-422d-b4e2-670a39117f57",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        -1180
      ],
      "parameters": {
        "width": 480,
        "height": 280,
        "content": "## MCP-based Brave Search Engine on Telegram \n\nThis workflow is a powerful tool for automating interactions with Brave tools through Telegram, providing users with quick and easy access to information"
      }
    },
    {
      "id": "7c526a9e-f3a2-433c-aeb1-ced2e5af6a12",
      "name": "Get Text",
      "type": "n8n-nodes-base.set",
      "position": [
        80,
        -40
      ]
    }
  ],
  "connections": {
    "Get Text": {
      "main": [
        [
          {
            "node": "Clean query",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean query": {
      "main": [
        [
          {
            "node": "List Brave Tools",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Message": {
      "main": [
        [
          {
            "node": "Search with Brave?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Exec Brave tool": {
      "main": [
        [
          {
            "node": "Send message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List Brave Tools": {
      "main": [
        [
          {
            "node": "Exec Brave tool",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search with Brave?": {
      "main": [
        [
          {
            "node": "Get Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}