💬 💥🛠️Build a web search chatbot with GPT-4o and MCP Brave Search

24,578 views · 💬 Support Chatbots

Description

Disclaimer: This workflow only works with local installations of n8n because it uses a community MCP node

image.png

Who is this for?

This workflow is ideal for developers, automation enthusiasts, and businesses looking to integrate AI-powered chat capabilities into their workflows. It’s particularly useful for those leveraging Brave Search and MCP tools to enhance user interactions and streamline data retrieval.

What problem is this workflow solving?

This workflow addresses the challenge of creating an intelligent chatbot that can process user queries, execute searches using Brave Search, and provide responses enriched by AI. It simplifies the integration of multiple tools into a cohesive system, saving time and effort for users who need a robust conversational AI solution.

What this workflow does

Setup

  1. Prerequisites:

    • Access to an n8n instance (self-hosted).
    • API credentials for OpenAI and MCP Client Tools.
    • Brave Search API key.
  2. Steps:

    • Import the workflow JSON into your n8n instance.
    • Configure the API credentials for OpenAI and MCP Client Tools in their respective nodes.
    • Set up your Brave Search API key in the MCP nodes. https://brave.com/search/api/
  3. Testing:

    • Use the built-in chat interface to send test messages.
    • Verify that the chatbot processes queries and returns results as expected.

How to customize this workflow to your needs

🔗 Nodes Used

AI Agent, OpenAI Chat Model, Simple Memory, Chat Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup