Custom AI application defense

Custom AI application defense

WAI Docs Wed Aug 19 13:22:37 EDT 2026
List
Quick Start
Welcome
Supported Applications & LLMs
Release Notes
August 18, 2026 WitnessAI Release
August 4, 2026 WitnessAI Release
July 21, 2026 WitnessAI Release
July 14, 2026 WitnessAI Release
July 9, 2026 WitnessAI Release
June 30, 2026 WitnessAI Hotfix
June 23, 2026 WitnessAI Release
June 16, 2026 WitnessAI Release
June 11, 2026 WitnessAI Release
June 4, 2026 WitnessAI Hotfix
June 2, 2026 WitnessAI Update
May 19, 2026 WitnessAI Update
April 30, 2026 WitnessAI Update
April 28, 2026 WitnessAI Update
April 23, 2026 WitnessAI Update
April 16, 2026 WitnessAI Update
April 14, 2026 WitnessAI Update
April 9, 2026 WitnessAI Update
April 9, 2026 WitnessAI Update
April 7, 2026 WitnessAI Update
April 2, 2026 WitnessAI Update
March 31, 2026 WitnessAI Update
March 24, 2026 WitnessAI Update
March 19, 2026 WitnessAI Update
March 17, 2026 WitnessAI Update
March 12, 2026 WitnessAI Update
March 5, 2026 WitnessAI Update
February 26, 2026 WitnessAI Update
February 24, 2026 WitnessAI Update
February 10, 2026 WitnessAI Update
January 27, 2026 WitnessAI Update
January 20, 2026 WitnessAI Update
January 13, 2026 WitnessAI Update
December 18, 2025 WitnessAI Update
December 9, 2025 WitnessAI Update
November 25, 2025 WitnessAI Update
November 18, 2025 WitnessAI Update
November 11, 2025 WitnessAI Update
October 28, 2025 WitnessAI Update
October 23, 2025 WitnessAI Update
October 9, 2025 WitnessAI Update
October 2, 2025 WitnessAI Update
September 30, 2025: WitnessAI Update
September 23, 2025: WitnessAI Update
August 12, 2025: WitnessAI Update
July 31, 2025: WitnessAI Update
July 18, 2025: WitnessAI Update
April 11, 2025: WitnessAI Release v2.0
June 9, 2025: WitnessAI Update
June 23, 2025: WitnessAI Update
TOC Left Sidebar: not active
TOC Left Sidebar: ORIGINAL
User Guide
Policies - GuardRails
Witness Anywhere: Remote Device Security
Witness Attack
Administrator Guide
404

Custom AI application defense

When you build AI into your own products — a chatbot, a copilot, an LLM-backed feature — you inherit the same risks as any AI app: prompt injection, sensitive-data leakage, and harmful or off-brand output. This page explains how WitnessAI lets you apply enterprise-grade guardrails to the AI in your own applications through an API.

The problem

AI features you build yourself sit outside the network controls that govern public AI apps:
  • Prompt injection. Untrusted input can hijack your model's instructions and make it behave in ways you never intended.
  • Data leakage. User prompts and model responses can carry sensitive or regulated data into and out of your application.
  • Harmful or off-policy output. Without screening, your application can return toxic, unsafe, or non-compliant content under your brand.

How WitnessAI solves the problem

WitnessAI exposes its guardrail engine as an API so you can screen prompts and responses inline, from inside your own application. You send the prompt (and optionally the model response) to WitnessAI, the same guardrails you use across the platform evaluate it, and you receive a decision — allow, warn, or block — before the content reaches your model or your user. The protection your organization already trusts becomes a service your applications can call directly.

What capabilities WitnessAI provides

  • An inline protection API. The API reference documents the endpoints for screening AI traffic, including Prompt-Protect for evaluating prompts, and the CompleteInput, and Text-Completion endpoints for integrating screening into your model calls.
  • The same guardrails, applied programmatically. Calls are evaluated against your guardrails, including Data Protection for sensitive content, Harmful Response Prevention for unsafe output, and Model Protection against prompt-injection and model-targeting attacks.
  • Consistent policy everywhere. Because the API uses the same guardrails as the rest of the platform, your custom application is governed by the same rules — and produces the same auditable record — as employee and agent AI use.

How to get started

  1. Review the API. Start with the API reference to see the available endpoints and request/response formats.
  2. Choose your integration point. Use Prompt-Protect to screen prompts before they reach your model, and the Complete or Text-Completion endpoints to fold screening into your model calls.
  3. Configure your guardrails. Set up Data ProtectionHarmful Response Prevention, and Model Protection so the API enforces the protections you need.
  4. Test and roll out. Validate the decisions against representative prompts, then enable screening in your application.