Dynamic website assistant with DeepSeek AI, Pinecone Vectorstore & site-based routing
DISCOUNT 20%
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
🚀 Overview
This workflow enables a powerful AI-driven virtual assistant that dynamically responds to website queries using webhook input, Pinecone vector search, and OpenAI agents — all smartly routed based on the source website.
🔧 How It Works
Webhook Trigger
The workflow starts with aWebhooknode that receives query parameters:query: The user's questionuserId: Unique user identifiersite: Website identifier (e.g., test_site)page: Page identifier (e.g., homepage, pricing)
Smart Routing
ASwitchnode directs the request to the correct AI agent based on thesitevalue. Each AI agent uses:- OpenAI GPT-4/3.5 model
- Pinecone vector store for context-aware answers
- SQL-based memory for consistent multi-turn conversation
Contextual AI Agent
Each agent is customized per website using:- Site-specific Pinecone namespaces
- Predefined system prompts to stay in scope
- Webhook context including
page,site, anduserId
Final Response
The response is sent back to the originating website using theRespond to Webhooknode.
🧠 Use Case
Ideal for multi-site platforms that want to serve tailored AI chat experiences per domain or page — whether it’s support, content discovery, or interactive agents.
✅ Highlights
- 🧠 Vector search using Pinecone for contextual responses
- 🔀 Website-aware logic with
Switchnode routing - 🔐 No hardcoded API keys
- 🧩 Modular agents for scalable multi-site support