{"workflow":{"id":13271,"name":"Chat Hub Web Search Agent with Tavily Search","views":2244,"recentViews":6,"totalViews":2244,"createdAt":"2026-02-10T00:28:32.609Z","description":"A blazing fast research agent that works nativly in n8n's [Chat Hub](https://www.youtube.com/watch?v=s_GHteEnHc4).\n\nThis agent is preconfigured with an optional system prompt for both Chat Hub and to use the Tavily search tool.\n\n### Setup Steps\n1. Sign up for the generous Tavily [Free Tier](https://www.tavily.com/pricing)\n2. Add your Tavily API key in the credentials in the tool\n3. Never use a search engine again!","workflow":{"meta":{"instanceId":"8b2425319537dba5a3f3f6bd0c9a64e19c8e987187f834687b2771d8254cc309","templateCredsSetupCompleted":true},"nodes":[{"id":"4adb1e88-535b-4b6b-8f97-cee2e40770a0","name":"AI Agent","type":"@n8n/n8n-nodes-langchain.agent","position":[544,0],"parameters":{"text":"={{ $('When chat message received in Chat Hub').item.json.chatInput }}","options":{"maxIterations":50,"systemMessage":"You are a general-purpose search assistant in n8n Chat Hub. You process information, help think through problems, and return accurate results.\n\n## Chat Hub Output\nYou are responding in n8n Chat Hub. Standard markdown works: **bold**, *italic*, `code`, lists, headers.\n\n### Links\nUse standard markdown links:\n`[domain.com](https://full-url-here)`\n\n### Images\nChat Hub does not auto-render images. Use full URLs with markdown:\n`![description](https://example.com/image.jpg)`\n\n## Search Rules\n\n### Search-before-answering\nFor any factual/verifiable question, do not answer from memory. Use the Search tool first. This includes:\n- prices, specs, availability\n- benchmarks or performance claims\n- dates, policies, anything that changes\n- anything you could reasonably source\n\n### Citations (mandatory)\nEvery factual claim needs an inline citation immediately after it, using this exact format:\n`... [_[domain.com](https://full-url)_]`\n\nRules:\n- Link to the real source URL (not a search wrapper).\n- Prefer primary sources (official docs, .gov, vendor pages).\n- If no source exists, do not claim it. Say: “I could not find a source for X.”\n\n### What doesn’t need citations\nPurely conceptual reasoning, frameworks, and clearly-labeled opinions. Anything that looks like a fact still needs a citation.\n\n## Tool Usage (one tool)\n\n### Search\nUse the Search tool for all factual/verifiable questions. Use it to:\n- find primary sources\n- verify numbers, specs, prices, dates, and “current” claims\n- pull multiple viewpoints for comparisons or “what do people think”\n\n### Process\n- Plan what you need to verify, then run required searches in parallel (batch queries).\n- Synthesize only what you can cite. If you cannot source a claim, do not make it.\n- Ask a clarifying question only if you are blocked:\n  - “Your question could mean X or Y — which are you asking about?”\n  - “To answer this I need: [specific missing detail]”"},"promptType":"define"},"executeOnce":false,"typeVersion":3.1},{"id":"89e7a80a-cf16-4e62-90c6-0f65be69f5e3","name":"Sticky Note2","type":"n8n-nodes-base.stickyNote","position":[768,288],"parameters":{"color":7,"width":192,"height":240,"content":"Quickly returns results with Tavily Search"},"typeVersion":1},{"id":"b3b49fc8-feb6-4f2a-8f7b-db4eb60d7c38","name":"Simple Memory","type":"@n8n/n8n-nodes-langchain.memoryBufferWindow","position":[640,384],"parameters":{},"typeVersion":1.3},{"id":"b0c8c61d-c3db-41d2-9381-1c49d70c2c95","name":"Chat Model","type":"@n8n/n8n-nodes-langchain.lmChatOpenRouter","position":[432,384],"parameters":{"model":"google/gemini-3-flash-preview","options":{"temperature":0.1}},"credentials":{"openRouterApi":{"id":"A5tnKaYbV9QNRMl8","name":"n8n-general-use-mcgarrigle"}},"typeVersion":1},{"id":"d82a8196-4f7f-417f-b5ef-e0b697476847","name":"Sticky Note","type":"n8n-nodes-base.stickyNote","position":[128,-128],"parameters":{"color":7,"height":288,"content":"## Chat in Chat Hub\nGo to `{your-n8n-url}/home/chat` to use this agent!"},"typeVersion":1},{"id":"4130e490-b5d5-485e-a586-d04e09dcb9af","name":"Sticky Note4","type":"n8n-nodes-base.stickyNote","position":[480,-128],"parameters":{"color":7,"width":384,"height":288,"content":"## Just a Regular Ol Agent\nYou can build up from here! Add any other tool you want or add to the system prompt to fit your needs!"},"typeVersion":1},{"id":"96984713-4a82-4a0a-9999-06b65298c0e5","name":"Sticky Note7","type":"n8n-nodes-base.stickyNote","position":[368,192],"parameters":{"width":224,"height":320,"content":"## Replace Me\nIf you want, replace me with the provider and model you prefer!\n\nMaybe pick one out on our [AI Benchmark](https://n8n.io/ai-benchmark)"},"typeVersion":1},{"id":"98d198d3-9c34-4a7b-8647-f559fdc83897","name":"When chat message received in Chat Hub","type":"@n8n/n8n-nodes-langchain.chatTrigger","position":[192,0],"webhookId":"6b892f5e-3691-4b89-8f53-cf88bee4f811","parameters":{"options":{"responseMode":"streaming"},"agentIcon":{"type":"emoji","value":"🌎"},"agentName":"Search Agent","availableInChat":true,"agentDescription":"An agent that can search quickly for fast answers as well as do deep research"},"typeVersion":1.4},{"id":"b8482b2a-7169-4abe-b260-0630db5b447a","name":"Search","type":"@tavily/n8n-nodes-tavily.tavilyTool","position":[816,384],"parameters":{"query":"={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Query', ``, 'string') }}","options":{"search_depth":"advanced"}},"credentials":{"tavilyApi":{"id":"VKmAztCAh7yFgGw0","name":"Tavily account"}},"typeVersion":1}],"pinData":{},"connections":{"Search":{"ai_tool":[[{"node":"AI Agent","type":"ai_tool","index":0}]]},"Chat Model":{"ai_languageModel":[[{"node":"AI Agent","type":"ai_languageModel","index":0}]]},"Simple Memory":{"ai_memory":[[{"node":"AI Agent","type":"ai_memory","index":0}]]},"When chat message received in Chat Hub":{"main":[[{"node":"AI Agent","type":"main","index":0}]]}}},"lastUpdatedBy":51,"workflowInfo":{"nodeCount":9,"nodeTypes":{"n8n-nodes-base.stickyNote":{"count":4},"@n8n/n8n-nodes-langchain.agent":{"count":1},"@tavily/n8n-nodes-tavily.tavilyTool":{"count":1},"@n8n/n8n-nodes-langchain.chatTrigger":{"count":1},"@n8n/n8n-nodes-langchain.lmChatOpenRouter":{"count":1},"@n8n/n8n-nodes-langchain.memoryBufferWindow":{"count":1}}},"status":"published","readyToDemo":null,"user":{"name":"Liam McGarrigle","username":"liammcgarrigle","bio":"Long time n8n power user. \nCurrently, a developer advocate at n8n. ","verified":true,"links":["https://liammc.gg/links"],"avatar":"https://gravatar.com/avatar/9de8a66d9ac1323749387abfd66d066b6203ff2968fc17cf53aaaa96ffd5226a?r=pg&d=retro&size=200"},"nodes":[{"id":565,"icon":"fa:sticky-note","name":"n8n-nodes-base.stickyNote","codex":{"data":{"alias":["Comments","Notes","Sticky"],"categories":["Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Helpers"]}}},"group":"[\"input\"]","defaults":{"name":"Sticky Note","color":"#FFD233"},"iconData":{"icon":"sticky-note","type":"icon"},"displayName":"Sticky Note","typeVersion":1,"nodeCategories":[{"id":9,"name":"Core Nodes"}]},{"id":1119,"icon":"fa:robot","name":"@n8n/n8n-nodes-langchain.agent","codex":{"data":{"alias":["LangChain","Chat","Conversational","Plan and Execute","ReAct","Tools"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/"}]},"categories":["AI","Langchain"],"subcategories":{"AI":["Agents","Root Nodes"]}}},"group":"[\"transform\"]","defaults":{"name":"AI Agent","color":"#404040"},"iconData":{"icon":"robot","type":"icon"},"displayName":"AI Agent","typeVersion":3,"nodeCategories":[{"id":25,"name":"AI"},{"id":26,"name":"Langchain"}]},{"id":1163,"icon":"fa:database","name":"@n8n/n8n-nodes-langchain.memoryBufferWindow","codex":{"data":{"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorybufferwindow/"}]},"categories":["AI","Langchain"],"subcategories":{"AI":["Memory"],"Memory":["For beginners"]}}},"group":"[\"transform\"]","defaults":{"name":"Simple Memory"},"iconData":{"icon":"database","type":"icon"},"displayName":"Simple Memory","typeVersion":1,"nodeCategories":[{"id":25,"name":"AI"},{"id":26,"name":"Langchain"}]},{"id":1247,"icon":"fa:comments","name":"@n8n/n8n-nodes-langchain.chatTrigger","codex":{"data":{"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/"}]},"categories":["Core Nodes","Langchain"]}},"group":"[\"trigger\"]","defaults":{"name":"When chat message received"},"iconData":{"icon":"comments","type":"icon"},"displayName":"Chat Trigger","typeVersion":1,"nodeCategories":[{"id":9,"name":"Core Nodes"},{"id":26,"name":"Langchain"}]},{"id":1281,"icon":"file:openrouter.svg","name":"@n8n/n8n-nodes-langchain.lmChatOpenRouter","codex":{"data":{"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenrouter/"}]},"categories":["AI","Langchain"],"subcategories":{"AI":["Language Models","Root Nodes"],"Language Models":["Chat Models (Recommended)"]}}},"group":"[\"transform\"]","defaults":{"name":"OpenRouter Chat Model"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjOTRBM0I4IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDI0IDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjx0aXRsZT5PcGVuUm91dGVyPC90aXRsZT48cGF0aCBkPSJNMTYuODA0IDEuOTU3bDcuMjIgNC4xMDV2LjA4N0wxNi43MyAxMC4yMWwuMDE3LTIuMTE3LS44MjEtLjAzYy0xLjA1OS0uMDI4LTEuNjExLjAwMi0yLjI2OC4xMS0xLjA2NC4xNzUtMi4wMzguNTc3LTMuMTQ3IDEuMzUyTDguMzQ1IDExLjAzYy0uMjg0LjE5NS0uNDk1LjMzNi0uNjguNDU1bC0uNTE1LjMyMi0uMzk3LjIzNC4zODUuMjMuNTMuMzM4Yy40NzYuMzE0IDEuMTcuNzk2IDIuNzAxIDEuODY2IDEuMTEuNzc1IDIuMDgzIDEuMTc3IDMuMTQ3IDEuMzUybC4zLjA0NWMuNjk0LjA5MSAxLjM3NS4wOTQgMi44MjUuMDMzbC4wMjItMi4xNTkgNy4yMiA0LjEwNXYuMDg3TDE2LjU4OSAyMmwuMDE0LTEuODYyLS42MzUuMDIyYy0xLjM4Ni4wNDItMi4xMzcuMDAyLTMuMTM4LS4xNjItMS42OTQtLjI4LTMuMjYtLjkyNi00Ljg4MS0yLjA1OWwtMi4xNTgtMS41YTIxLjk5NyAyMS45OTcgMCAwMC0uNzU1LS40OThsLS40NjctLjI4YTU1LjkyNyA1NS45MjcgMCAwMC0uNzYtLjQzQzIuOTA4IDE0LjczLjU2MyAxNC4xMTYgMCAxNC4xMTZWOS44ODhsLjE0LjAwNGMuNTY0LS4wMDcgMi45MS0uNjIyIDMuODA5LTEuMTI0bDEuMDE2LS41OC40MzgtLjI3NGMuNDI4LS4yOCAxLjA3Mi0uNzI2IDIuNjg2LTEuODUzIDEuNjIxLTEuMTMzIDMuMTg2LTEuNzggNC44ODEtMi4wNTkgMS4xNTItLjE5IDEuOTc0LS4yMTMgMy44MTQtLjEzOGwuMDItMS45MDd6Ij48L3BhdGg+PC9zdmc+Cg=="},"displayName":"OpenRouter Chat Model","typeVersion":1,"nodeCategories":[{"id":25,"name":"AI"},{"id":26,"name":"Langchain"}]}],"categories":[{"id":32,"name":"Market Research"},{"id":47,"name":"AI Chatbot"}],"image":[]}}