What This Workflow Does
This automation creates an intelligent chatbot that answers customer questions by referencing your company's knowledge base. Unlike generic chatbots, it uses Retrieval-Augmented Generation (RAG) technology to provide accurate, context-aware responses drawn from your actual documentation, policies, and product information.
The system integrates Jotform for collecting customer queries, Supabase for storing and searching your knowledge base, Together AI for specialized responses, and Gemini for general knowledge. This combination ensures answers are both precise and naturally conversational.
How It Works
1. Question Collection
Customers submit questions through a Jotform interface. The form captures the query along with any relevant context like product IDs or account details.
2. Knowledge Retrieval
The system searches your Supabase vector database using semantic similarity. It identifies the most relevant documents from your knowledge base based on the question's meaning, not just keywords.
3. AI Response Generation
Depending on the query type, either Together AI (for specialized knowledge) or Gemini (for general questions) generates a natural-language response incorporating the retrieved information.
4. Response Delivery
The final answer is formatted and returned to the customer through their preferred channel (email, chat interface, etc.), with source references for verification.
Pro tip: Regularly review unanswered or poorly answered questions to identify gaps in your knowledge base. This creates a continuous improvement cycle.
Who This Is For
This solution is ideal for:
- Customer support teams handling repetitive inquiries
- SaaS companies with extensive documentation
- E-commerce stores with complex product catalogs
- HR departments managing employee policy questions
- Education platforms with frequently asked student questions
What You'll Need
- n8n instance (cloud or self-hosted)
- Supabase account with vector extension enabled
- Jotform account with API access
- Together AI or Gemini API keys
- Your existing knowledge base documents (PDFs, FAQs, manuals etc.)
Quick Setup Guide
- Download and import the JSON template into your n8n instance
- Configure your Supabase connection with database credentials
- Connect your Jotform account and customize the question form
- Add your Together AI and/or Gemini API keys
- Upload your knowledge base documents to Supabase
- Test with sample questions and refine response quality
Key Benefits
Reduce support tickets by 40-60% by instantly answering common questions through automated self-service.
Improve answer consistency across all customer interactions by referencing approved documentation.
Scale support capacity instantly without adding staff, handling unlimited concurrent conversations.
Continuous knowledge improvement as the system identifies gaps from unanswered questions.
Multichannel deployment - deploy the same knowledge base across website chat, email, and internal help systems.