← All N8N workflows
AI & researchChain LLMCodeDate TimeHTTP RequestAnthropic Chat Model

Intelligent Web Query and Semantic Re-Ranking Flow

Configured with Chain LLM, Date Time, HTTP Request, Anthropic Chat Model, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TransformDate & TimeDate TimeTriggerWebhookWebhookTransformAuto-fixing OutputParser6Output Parser AutofixingTransformAuto-fixing OutputParserOutput Parser AutofixingTransformStructured OutputParser1Output Parser StructuredCodeQuery-1 CombinedCodeWeb / APIRespond to WebhookRespond To WebhookAI & modelsSemantic Search -Result Re-RankerChain LLMWeb / APIQueryHTTP RequestWeb / APIWebhook CallHTTP RequestAI & modelsSemantic Search -QueryMakerChain LLMAI & modelsAnthropic Chat ModelAnthropic Chat ModelAI & modelsOpenAI Chat ModelOpenAI Chat ModelTransformStructured OutputParser2Output Parser StructuredAI & modelsParser ModelLM Chat Google GeminiAI & modelsAgent ModelLM Chat Google Gemini

Node categories in this workflow

  • Transform
  • Trigger
  • Code
  • Web / API
  • AI & models

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Date & TimeTransformDate TimeSee node parameters
WebhookTriggerWebhookSee node parameters
Auto-fixing Output Parser6TransformOutput Parser AutofixingSee node parameters
Auto-fixing Output ParserTransformOutput Parser AutofixingSee node parameters
Structured Output Parser1TransformOutput Parser StructuredSee node parameters
Query-1 CombinedCodeCodeSee node parameters
Respond to WebhookWeb / APIRespond To WebhookSee node parameters
Semantic Search - Result Re-RankerAI & modelsChain LLMSee node parameters
QueryWeb / APIHTTP RequestSee node parameters
Webhook CallWeb / APIHTTP RequestSee node parameters
Semantic Search -Query MakerAI & modelsChain LLMSee node parameters
Anthropic Chat ModelAI & modelsAnthropic Chat ModelSee node parameters
OpenAI Chat ModelAI & modelsOpenAI Chat ModelSee node parameters
Structured Output Parser2TransformOutput Parser StructuredSee node parameters
Parser ModelAI & modelsLM Chat Google GeminiSee node parameters
Agent ModelAI & modelsLM Chat Google GeminiSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • anthropicApi
  • googlePalmApi
  • openAiApi

Workflow notes

Step 1. Set Up a Free Brave Web Search Query API Key

Step 1. Set Up a Free Brave Web Search Query API Key

To attain the free web search API tier from Brave, follow these steps:

  1. Visit api.search.brave.com
  2. Create an account
  3. Subscribe to the free plan (no charge)
  4. Navigate to the API Keys section
  5. Generate an API key. For the subscription type, choose "Free".
  6. Go to the "Query" Nodes and change the "X-Subscription-Token" value to your API Key.
If you require to change this Node to Webhook Or any Other Item:

If you require to change this Node to Webhook Or any Other Item:

  • In case you want to change the input type from Webhook to any other item, Make sure to go to the Query 1 and Query 1 Ranker and replace the Webhook Input to your Node's input.
Step 2. Setup the Webhook Call Node

Step 2. Setup the Webhook Call Node

Instructions for Setting Up the Webhook Call and Using It in Your Workflow

This node is designed to send a web search query to the workflow (partly built in this chart) and return the results. Follow these steps to correctly configure and use it:

  1. Locate the "Webhook" Node in the Workflow:

    • Navigate to the workflow above, the first item, the "Webhook" node.
    • In the "Webhook" node, change the Webhook URL option from "Test URL" to "Production URL."
    • Copy the generated Production URL.
  2. Paste the Webhook URL in the HTTP Node:

    • In your target workflow, locate the HTTP Request node.
    • Paste the copied Production URL into the URL field of the HTTP Request node. This connects the two workflows.
  3. Send the Research Request:

    • When sending the request to this workflow, make sure to include your web search query in the "Research Question" parameter of the HTTP Request node.
  4. Move the Webhook Call Node:

    • Move this Webhook Call Node into the workflow where you need the research results. Ensure that it’s correctly connected and configured to send the data to the main workflow.
Customized Models to Replace

Customized Models to Replace

In case you rather to use another LLM Model to Perform the Semantic Search and Re-Ranking, These nodes below are Optimized based on the LLM Structure of OpenAI GPT4o & Anthropic Claude.

Intelligent Web Query and Semantic Re-Ranking Flow

Intelligent Web Query and Semantic Re-Ranking Flow

Purpose and structure

This folder contains the Intelligent Web Query and Semantic Re-Ranking Flow workflow. Its executable nodes use chainLlm, code, dateTime, httpRequest, lmChatAnthropic, lmChatGoogleGemini, lmChatOpenAi, outputParserAutofixing, outputParserStructured, respondToWebhook, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Webhook

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Datetime/2003_Datetime_Code_Automation_Webhook.json MIT; preserve source notices.

More in AI & research