AI Agents

Intelligent Web Query with Semantic Result Reordering

20 nodes 312 190 Webhook
Download

Workflow Description

An automation flow that receives queries via webhook, processes them through multiple AI models (Anthropic, OpenAI, and Gemini), analyzes responses, and intelligently reorders results by semantic relevance before returning the optimized response.

How it works

  1. 1.Receive query through webhook endpoint and timestamp the request
  2. 2.Send query simultaneously to three AI models for parallel processing
  3. 3.Parse and validate responses using advanced output parsers
  4. 4.Reorder results by semantic meaning using LLM chain analysis
  5. 5.Return optimized and prioritized results via webhook response

Use cases

  • Consolidate search results from multiple AI sources and rank by relevance
  • Improve answer accuracy by comparing outputs from different models
  • Automate semantic processing of complex queries without manual review

Requirements

  • Active API credentials for at least one AI provider (Anthropic, OpenAI, or Google Gemini)
  • Properly configured webhook endpoint for incoming queries
  • Network connectivity to reach external AI model APIs

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Output Parser LLM Chain Anthropic OpenAI Gemini

Details

Trigger Webhook
Nodes 20
Apps 5
Views 312
Downloads 190

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (20)

/

Sticky Note4

Sticky Note

#1

Sticky Note

Sticky Note

#2

Date & Time

Date Time

#3

Webhook

Webhook

#4

Auto-fixing Output Parser6

Output Parser Autofixing

#5

Auto-fixing Output Parser

Output Parser Autofixing

#6

Structured Output Parser1

Output Parser Structured

#7

Query-1 Combined

Code

#8

Respond to Webhook

Webhook

#9

Semantic Search - Result Re-Ranker

LLM Chain

#10

Query

HTTP Request

#11

Webhook Call

HTTP Request

#12

Sticky Note6

Sticky Note

#13

Semantic Search -Query Maker

LLM Chain

#14

Anthropic Chat Model

Lm Chat Anthropic

#15

OpenAI Chat Model

OpenAI

#16

Structured Output Parser2

Output Parser Structured

#17

Parser Model

Gemini Model

#18

Agent Model

Gemini Model

#19

Sticky Note5

Sticky Note

#20