Skip to main content
Ensure AI-generated responses are safe, appropriate, and compliant by adding guardrail scanners to your workflows.

Overview

Guardrails are scanners that evaluate user inputs and model outputs to maintain safe, responsible AI interactions. Deploy the scanners you need, then add them to individual workflows as input or output scanners.

Available Scanners

Deploy Guardrails

Before adding scanners to a workflow, you must deploy them. A deployed scanner is available across all your workflows on the platform. To deploy a scanner:
  1. Click Settings on the top navigation bar.
  2. Click Manage Guardrails on the left menu.
  3. On the Manage guardrail models page, click Deploy next to the scanner you want to deploy. The status changes to Deploying. Once deployed, the scanner is available when you add scanners to a workflow.
    To remove a scanner from the platform, click Undeploy next to the scanner.

Add Scanners

After deploying the required scanners, add them to a workflow. Input scanners evaluate prompts sent to the LLM node; output scanners evaluate responses returned from the LLM. Add input and output scanners separately based on your requirements. To add a scanner:
  1. In the Workflows section, open the workflow where you want to add the scanner.
  2. In the left navigation pane, click Guardrails.
  3. In the Input Scanners section, click Add Scanner, select the scanners you need, then click Done. The selected scanners appear in the list.
  4. Click a scanner to configure its settings. Available options vary by scanner. For example, Toxicity has Threshold and End the flow if the risk score is above settings; Regex has Enter patterns to ban, End the flow if the risk score is above, and Match type settings.
  5. To add more scanners, click the Add Scanner (+) icon. To remove a scanner, click the Remove Scanner (−) icon.

Test Scanners

After adding and configuring scanners, verify that they perform as expected. You can test an individual scanner or all scanners together, then adjust settings as needed. To test guardrails:
  1. On the Guardrails page, click Test.
  2. In the Prompt input box, enter a prompt or select Input template to choose a template. Prompt to Test a Scanner
  3. Click Test. Under Scores and Results, review the output.
  4. Based on the results, adjust scanner settings and retest as needed.