Kütüphane / RAG ve Bilgi Bankaları
RAG ve Bilgi Bankaları
Autonomous AI Customer Support Agent with Multi-KB RAG & Human Escalation
When an API call/webhook arrives, it answers questions from your own knowledge base with Ollama using Ollama, Postgres, Wikipedia, Supabase.
Ne yapar
## Autonomous AI Customer Support Agent with Multi-KB RAG & Human Escalation ### How it works 1. Receive — Webhook accepts requests; API key auth and rate limiting fire before any DB write 2. Guard — Five checks block empty, duplicate, oversized, and handover messages before any AI call 3. Respond — Sends 202 Accepted immediately; agent runs async so callers never time out on Ollama 4. Reason — AI agent searches up to three Supabase knowledge bases; falls back to Wikipedia web search when all KBs miss 5. Route — High/medium confidence → answer delivered via Slack, email, or HTTP callback; low confidence → escalation with business-hours routing ### Setup - [ ] Run the SQL in the Supabase Setup sticky to create all 5 tables and 3 KB tables - [ ] Pull Ollama models: ollama pull qwen2.5:7b && ollama pull nomic-embed-text - [ ] Add credentials: Supabase (x2), Postgres, Slack, Gmail - [ ] Set your API key in the Validate API Key node - [ ] Populate Supabase KB tables with embedded documents ### Customization - Swap model: Replace the Ollama Chat node with OpenAI, Anthropic, or Gemini — no other changes needed - Add KBs: Duplicate any Supabase Vector Store tool node; update queryName and queryDescription - Adjust thresholds: Rate limit (10 requests) and spike alert (5 escalations) — set in the IF nodes - Change trigger: Swap the Webhook node with a Slack Event Trigger or Gmail Trigger; update field mapping in Normalise Request
Adımlar
- Receive Support Request
- Validate API Key
- Return 401 Unauthorized
- Normalise Request
- Log Request Timestamp
- Count Recent Requests
- Check Rate Limit
- Return 429 Too Many Requests
- Check Message Body
- Return 400 Empty Message
- Look Up Message ID
- Check If Already Processed
- Return 200 Already Processed
- Register Message ID
Toplam 50 adım.
Benzer otomasyonlar
Yapay Zekâ Ajanları ve AsistanlarOllama Yapay Zeka Ajanıyla Hava Durumu ve Wikipedia Kontrolü6 adımRAG ve Bilgi BankalarıBuild a Google Drive document similarity database with Ollama and Postgres56 adımRAG ve Bilgi BankalarıGmail e-postalarını Ollama ile PGVector'a göm16 adımRAG ve Bilgi BankalarıReply to Facebook comments using RAG with Google Drive, Supabase, OpenAI and Postgres33 adım