π¬ Route secure AI customer support chats with OpenAI and SoterAI
β‘ 1 views Β· π¬ Support Chatbots
Description
Quick overview
Autonomous enterprise AI customer support copilot protected end-to-end by SoterAI. Features zero-trust prompt injection firewall, multi-turn memory, verified live ERP tools (order lookup & calculator), and real-time output DLP data redaction. Native dual-branch routing blocks attacks instantly while saving 100% of LLM compute costs.
How it works
- Receives a customer message from the interactive chat trigger, a POST webhook endpoint, or a manual test run.
- Normalizes the incoming payload into a consistent structure with message text, session ID, email, and channel metadata.
- Sends the message to SoterAI Input Threat Shield to allow only support-related topics and block or route prompt-injection, sensitive-data, or off-policy content.
- For safe messages, uses an OpenAI chat modelβbacked agent with conversation memory plus an order lookup tool and calculator tool to generate a concise support reply.
- Scans the AI reply with SoterAI Output Guardrail (DLP) and redacts detected sensitive data before delivery.
- Returns the sanitized reply (and security metadata) to the caller via webhook/chat, and when a threat is flagged it sends an incident payload to a configurable HTTP endpoint and returns a rejection message to the customer.
Setup
- Install the community node package
n8n-nodes-soteraiand add a SoterAI API credential. - Add an OpenAI API credential for the OpenAI Chat Model node (or replace it with your preferred compatible model node).
- If using the production endpoint, copy the POST webhook URL for
/webhook/soterai-secure-agentand configure your support channel to send requests with amessage/promptfield (and optionallysessionId). - Replace the SecOps alert HTTP request URL (currently
https://httpbin.org/post) with your Slack/Teams/SIEM webhook or incident intake endpoint. - Update the order lookup tool implementation to query your real order/ERP system instead of the included mock database.
Requirements
- β’ n8n version 0.8.7 or higher (v2.x recommended)
- β’ n8n-nodes-soterai community node installed
- β’ OpenAI, Groq, or compatible Chat Model credentials (optional for offline testing)
Customization
- β’ Tool Customization: Edit the JavaScript in the Order Lookup Tool to connect directly to your real PostgreSQL, MySQL, Shopify, or ERP database.
- β’ Topic Scope: Customize the allowedTopics parameter in SoterAI Input Threat Shield to fit your specific industry (e.g. FinTech, Healthcare, E-Commerce).
- β’ SecOps Alerts: Point the Dispatch SecOps Alert node to your internal Slack, Discord, Microsoft Teams, or PagerDuty webhook.
Additional info
β’ Tested with 100% pass rate in real Docker production environments across prompt injection attacks, legitimate customer support queries, and sensitive data leakage scenarios. β’ OWASP for LLMs Compliance: Defends against LLM01 (Prompt Injection), LLM02 (Sensitive Information Disclosure), and LLM06 (Insecure Tool Execution).
π Nodes Used
HTTP Request, Webhook, AI Agent, OpenAI Chat Model, Simple Memory, Calculator
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File