Intelligent web query and semantic re-ranking flow using Brave and Google Gemini
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Anthropic Chat Model, OpenAI Chat Model and Google Gemini Chat Model. It also calls api.search.brave.com and primary-production-8aa4.up.railway.app over HTTP.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Date & Time: formats or calculates dates
- Semantic Search -Query Maker (Basic LLM Chain): sends a prompt to an LLM, with model: Agent Model; output parser: Auto-fixing Output Parser
- Query (HTTP Request): calls api.search.brave.com
- Query-1 Combined (Code): runs custom JavaScript code
- Semantic Search - Result Re-Ranker (Basic LLM Chain): sends a prompt to an LLM, with model: Agent Model; output parser: Auto-fixing Output Parser
- Respond to Webhook: sends the response back to the webhook caller
- Webhook Call (HTTP Request): calls primary-production-8aa4.up.railway.app
- Anthropic Chat Model: uses Anthropic Chat Model
- OpenAI Chat Model: uses OpenAI Chat Model
Services it uses
HTTP calls to: api.search.brave.com, primary-production-8aa4.up.railway.app
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- Date & Time
n8n-nodes-base.dateTime - Webhook
n8n-nodes-base.webhook - Auto-fixing Output Parser
@n8n/n8n-nodes-langchain.outputParserAutofixing - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - HTTP Request
n8n-nodes-base.httpRequest - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
From the author
Workflow Description This workflow is a powerful, fully automated web query and semantic reranking system that allows users to perform precise, detailed searches, intelligently rank search results and provide high-quality, structured output. Built with…