Zum Inhalt springen
NEULerne Alaaddin kennen, deinen KI-Flaschengeist mit Stimme. trig8n startet am 1. Januar 2027. Neuigkeiten ansehen

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

  1. Receive Support Request
  2. Validate API Key
  3. Return 401 Unauthorized
  4. Normalise Request
  5. Log Request Timestamp
  6. Count Recent Requests
  7. Check Rate Limit
  8. Return 429 Too Many Requests
  9. Check Message Body
  10. Return 400 Empty Message
  11. Look Up Message ID
  12. Check If Already Processed
  13. Return 200 Already Processed
  14. Register Message ID

Insgesamt 50 Schritte.

Ähnliche Automatisierungen