Bibliothek / RAG & Wissensdatenbanken
RAG & Wissensdatenbanken
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.
Was sie bewirkt
## 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
Die Schritte
- 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
Insgesamt 50 Schritte.
Ähnliche Automatisierungen
KI-Agenten & AssistentenWetter und Wikipedia mit einem Ollama-KI-Agenten abfragen6 SchritteRAG & WissensdatenbankenBuild a Google Drive document similarity database with Ollama and Postgres56 SchritteRAG & WissensdatenbankenGmail-E-Mails mit Ollama in PGVector einbetten16 SchritteRAG & WissensdatenbankenReply to Facebook comments using RAG with Google Drive, Supabase, OpenAI and Postgres33 Schritte