Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / RAG & Knowledge Bases

RAG & Knowledge Bases

Route secure SaaS helpdesk chats with SoterAI, Groq, Pinecone and Cohere

When a chat message arrives, it answers questions from your own knowledge base with OpenAI / ChatGPT and Cohere using Chat, Cohere, Pinecone, Soter Guard.

What it does

## 🛡️ Secure AI SaaS Helpdesk — Prompt Injection Defense & PII Redaction AcmeCloud support chatbot that hardens every AI reply against prompt injection and leaks. SoterAI screens each incoming message (blocking injection / off-topic attacks and redacting PII), the request is routed by intent to an OpenAI-powered agent, and every draft answer is re-scanned by SoterAI before it reaches the customer. ### How it works 1. Input guard — SoterAI inspects each chat message for prompt-injection or policy violations and redacts PII. Unsafe messages are logged and politely blocked. 2. Redact & route — the cleaned text is classified into *Bug report*, *Human handoff*, or *Knowledge-base question*. 3. AI agents — the matching OpenAI agent replies; the KB agent grounds answers in a Pinecone vector store using Cohere embeddings. 4. Output guard — SoterAI re-scans the draft reply and redacts anything unsafe before it is returned to the user. ### Setup - Connect credentials: SoterAI, OpenAI, Pinecone, and Cohere. - Select your Pinecone index and load your help-center docs into it. - Tailor allowedTopics on the input guard and the agent prompts to your product. - Publish the workflow, then open the built-in chat to test. ### Requirements Accounts/API keys for SoterAI, OpenAI, Pinecone, and Cohere. ### Notes - SoterAI node: always install and use the latest version of the SoterAI node (n8n-nodes-soterai) for the input & output guards. - LLM is swappable: OpenAI is the default, but you can replace the *OpenAI Chat Model* node with Groq or Anthropic — just plug in the matching chat-model node and its credential; the rest of the workflow stays the same.

The steps

  1. On Chat Message Received
  2. Guard Input for Threats
  3. Standardize Incoming Request
  4. Determine User Intent
  5. Distribute Based on Intent
  6. Bug Analysis Agent
  7. OpenAI Chat Model
  8. Bug Memory Cache
  9. Generate Bug Ticket
  10. Verify Output for Safety
  11. Reply Success Message
  12. Handoff Communication Agent
  13. Handoff Memory Cache
  14. Generate Handoff Ticket

20 steps in total.

Similar automations