Templates / Build custom workflows automatically with GPT-4o, RAG, and web search

Build custom workflows automatically with GPT-4o, RAG, and web search

Needs changes

by Franz ✓ · 39,104 views · created 2025-06-18 · Engineering, AI Chatbot

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes), SerpApi (Google Search). 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 23 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Embeddings OpenAI, SerpApi (Google Search), Pinecone Vector Store and OpenRouter Chat Model and 1 more.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Set URL (Edit Fields (Set)): sets 1 field: URL
  2. AI Agent: runs an AI agent, with model: OpenRouter Chat Model; 2 tools (SerpAPI, Pinecone Vector Store)
  3. Extract (HTTP Request): calls an HTTP API
  4. OpenAI: uses OpenAI
  5. 30 Secs (Wait): pauses before continuing
  6. Code: runs custom JavaScript code
  7. Get Results (HTTP Request): calls an HTTP API
  8. Extract JSON (Edit Fields (Set)): sets or maps fields
  9. If: checks a condition and branches into true / false
  10. Convert to JSON File (Convert to File): converts data to a file (to json)

…plus 4 more steps. See the full node list below.

Services it uses

Embeddings OpenAISerpApi (Google Search)Pinecone Vector StoreOpenRouter Chat ModelOpenAI

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • SerpApi (Google Search) in SerpAPI: no direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
SerpApi (Google Search)
SerpAPI
No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node

Nodes used (16)

From the author

🚀 What the “Agent Builder” template does Need to turn a one-line chat request into a fully-wired n8n workflow template—complete with AI agents, RAG, and web-search super-powers—without lifting a finger? That’s exactly what Agent Builder automates: 1. Listens…

Excerpt from Franz's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.