> For the complete documentation index, see [llms.txt](https://docs.patagon.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patagon.ai/es/optimizacion-del-agente/objectives-and-tone.md).

# Cómo definir los objetivos y el tono del agente

La página Objetivos y Tono es donde escribes el prompt completo de comportamiento de tu agente. Todo lo que tu agente dice y hace en una conversación viene de lo que escribes aquí.

En el menú lateral, ve a Agente > General y haz clic en la pestaña Objetivos y Tono.

![Pestaña Objetivos y Tono](/files/PxB4CnITOM5fNLHnIZvn)

La página tiene un único editor de código con el prompt del agente. Es un campo de texto libre; no hay campos separados. Todo se escribe en un solo lugar como un prompt estructurado.

## Cómo editar tu prompt

1. Haz clic en cualquier lugar del editor para comenzar a editar.
2. Escribe o actualiza el prompt del agente directamente en el editor.
3. Usa el toggle Modo Oscuro si prefieres fondo oscuro mientras editas.
4. Haz clic en Guardar cuando termines.

Para previsualizar cómo responde tu agente antes de guardar, haz clic en el ícono de panel junto a Guardar. Esto abre un panel de Vista Previa del Agente donde puedes enviar mensajes de prueba.

{% hint style="warning" %}
Cada vez que guardes cambios en tu prompt, crea una versión Borrador desde la pestaña Versiones para mantener un registro de tu trabajo. Consulta Cómo gestionar versiones del agente. No hay guardado automático. Si cierras la pestaña o navegas a otra página antes de hacer clic en Guardar, tus cambios se perderán.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.patagon.ai/es/optimizacion-del-agente/objectives-and-tone.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
