Zscaler AI Guard provides AI-powered security for LLM applications. It enforces Detections Policies to perform security checks such as Data Loss Prevention (DLP) and prompt injection protection on both inbound prompts and outbound model responses.Documentation Index
Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Get Started with Zscaler AI Guard
Using Zscaler AI Guard with Portkey
1. Add Zscaler Credentials to Portkey
- Navigate to the
Pluginspage underAdmin Settings - Click on the edit button for the Zscaler AI Guard integration
- Add your Zscaler AI Guard API Key (the DAS Application Key generated from your Zscaler AI Guard tenant)
2. Add Zscaler AI Guard Check
- Navigate to the
Guardrailspage and click theCreatebutton - Search for “Zscaler AI Guard” and click
Add - Configure your guardrail settings:
- Policy ID: The ID of the Zscaler Detections Policy to execute (Required)
- Timeout: The timeout in milliseconds for the scan (Default:
10000)
- Set any
actionsyou want on your check, and create the Guardrail!
Guardrail Actions allow you to orchestrate your guardrails logic. You can learn more about them here
| Check Name | Description | Parameters | Supported Hooks |
|---|---|---|---|
| Zscaler AI Guard Check | Scans prompts and responses against a Zscaler Detections Policy. Returns ALLOW or BLOCK based on the policy evaluation. | Policy ID (string), Timeout (number) | beforeRequestHook, afterRequestHook |
3. Add Guardrail ID to a Config and Make Your Request
- When you save a Guardrail, you’ll get an associated Guardrail ID - add this ID to the
input_guardrailsoroutput_guardrailsparams in your Portkey Config - Create these Configs in Portkey UI, save them, and get an associated Config ID to attach to your requests. More here.
- NodeJS
- Python
- OpenAI NodeJS
- OpenAI Python
- cURL

