gws-modelarmor-sanitize-response

Sanitize AI model responses using Google Model Armor templates.

30.3k|1.8k|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/googleworkspace/cli --skill gws-modelarmor-sanitize-response-googleworkspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-modelarmor-sanitize-response
Source: https://github.com/googleworkspace/cli/tree/main/skills/gws-modelarmor-sanitize-response
Command: npx skills add https://github.com/googleworkspace/cli --skill gws-modelarmor-sanitize-response-googleworkspace

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps ensure that responses generated by AI models are safe and appropriate for end-users by sanitizing them through a defined Model Armor template.

Core Features & Use Cases

  • Outbound Safety: Applies safety filters to model outputs before they are shown to users.
  • Template-Based Sanitization: Uses pre-configured Model Armor templates to define sanitization rules.
  • Use Case: A customer service chatbot generates a response that might contain sensitive information or inappropriate language. This Skill can sanitize the response using a 'customer-facing' template to remove or mask such content before it's sent to the customer.

Quick Start

Sanitize the model's output using the specified template.

Frequently Asked Questions about gws-modelarmor-sanitize-response

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sanitize AI model responses for outbound safety?

To sanitize AI model responses for outbound safety, you apply predefined Google Model Armor templates to filter user-facing content. This process removes or masks sensitive information and inappropriate language from the outputs before they reach end-users.

What is response sanitization in AI safety?

Response sanitization in AI safety is the process of filtering model outputs using predefined security and content policies. It ensures that AI-generated text is safe and appropriate for end-users by applying rules from a configured Model Armor template.

How do I apply a Model Armor template to filter chatbot content?

To apply a Model Armor template to filter chatbot content, you specify the full template resource name during the sanitization process. The template defines the security rules that automatically remove or mask inappropriate language from the response.

When do I need to use a template for content filtering?

You need to use a template for content filtering when your application requires outbound safety for user-facing content. It is necessary when AI models might generate responses containing sensitive information or inappropriate language that must be masked.

Does response sanitization require a specific template resource name?

Yes, response sanitization requires specifying a full template resource name. This pre-configured Model Armor template defines the exact security and content policies applied to filter sensitive or inappropriate information from the model outputs.

What is the best way to ensure outbound safety for generated text?

The best way to ensure outbound safety for generated text is template-based sanitization. By using pre-configured Model Armor templates, you consistently apply predefined security and content policies to filter user-facing content before it is sent.