This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
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.
Webhook Trigger
The workflow starts with a Webhook
node 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
A Switch
node directs the request to the correct AI agent based on the site
value. Each AI agent uses:
Contextual AI Agent
Each agent is customized per website using:
page
, site
, and userId
Final Response
The response is sent back to the originating website using the Respond to Webhook
node.
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.
Switch
node routing