# Guardrails

{% hint style="danger" %}
This API is available only on the Paid Plans.
{% endhint %}

## Introduction

The **Guardrails tab** provides a robust control interface to define your character’s ethical and topical boundaries, preventing off-topic or inappropriate responses. By entering specific constraints in the Instructions field and toggling custom guardrails on, you ensure your AI character responds in a safe and professional manner, and is strictly aligned with your intended brand voice.

<figure><img src="/files/wdkpaJDy5hBWTz2x1fE6" alt=""><figcaption></figcaption></figure>

## Main Features and Sections

### 1. Custom Guardrails Toggle

This toggle acts as the master switch to activate or deactivate your character's safety oversight. When enabled, it forces the AI character to prioritize your specific behavioral rules over its general conversational logic.

### 2. Guardrails Instruction

This text field allows you to define explicit safety rules and response boundaries using up to 7,500 words. It is where you input constraints like "Do not talk about politics" to ensure the character remains professional and on-topic.

## Examples

This example shows how you can implement guardrails for your AI character in Convai Playground

{% embed url="<https://youtu.be/dfosB0XYiOo>" %}

***

## Conclusion

The Guardrails tab is an essential safety tool that empowers creators to enforce strict behavioral boundaries and content restrictions on their AI characters. By combining custom instructions with real-time testing, it ensures that interactions remain secure, on-brand, and free from undesirable topics or hallucinations.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.convai.com/api-docs/convai-playground/character-customization/guardrails.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
