Answer business FAQs with Claude, Supabase pgvector and OpenAI embeddings
Ready for 3.0What this workflow does
This workflow has 8 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.openai.com and api.anthropic.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set Search Configuration (Edit Fields (Set)): sets 8 fields: question, sessionId, supabaseUrl…
- Generate Question Embedding (HTTP Request): calls api.openai.com (POST)
- Search Supabase pgvector (HTTP Request): calls an HTTP API (POST)
- Build Context from Matches (Code): runs custom JavaScript code
- Generate Answer with Claude (HTTP Request): calls api.anthropic.com (POST)
- Parse and Format Answer (Code): runs custom JavaScript code
- Respond with Answer (Respond to Webhook): sends the response back to the webhook caller
Other OpenAI + Anthropic templates (115)
HTTP calls to: api.openai.com, api.anthropic.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick Overview This workflow exposes a webhook-based FAQ endpoint that embeds incoming questions with OpenAI, retrieves relevant knowledge base chunks from Supabase pgvector, and asks Anthropic Claude to answer strictly from that context with citations,…