Build custom workflows automatically with GPT-4o, RAG, and web search
Needs changesWhat 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).
- Set URL (Edit Fields (Set)): sets 1 field: URL
- AI Agent: runs an AI agent, with model: OpenRouter Chat Model; 2 tools (SerpAPI, Pinecone Vector Store)
- Extract (HTTP Request): calls an HTTP API
- OpenAI: uses OpenAI
- 30 Secs (Wait): pauses before continuing
- Code: runs custom JavaScript code
- Get Results (HTTP Request): calls an HTTP API
- Extract JSON (Edit Fields (Set)): sets or maps fields
- If: checks a condition and branches into true / false
- 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
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.0 | Replace 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)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - SerpApi (Google Search)
@n8n/n8n-nodes-langchain.toolSerpApi - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Convert to File
n8n-nodes-base.convertToFile - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter
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…