> 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/otimizacao-do-agente/objectives-and-tone.md).

# Como definir os objetivos e o tom do agente

A página Objetivos e Tom é onde você escreve o prompt completo de comportamento do seu agente. Tudo que seu agente diz e faz em uma conversa vem do que você escreve aqui.

No menu lateral, acesse Agente > Geral e clique na aba Objetivos e Tom.

![Aba Objetivos e Tom](/files/B0wrz5SvEe8f0yszqQLp)

A página tem um único editor de código com o prompt do agente. É um campo de texto livre. Não há campos separados. Tudo é escrito em um só lugar como um prompt estruturado.

## Como editar seu prompt

1. Clique em qualquer lugar no editor para começar a editar.
2. Escreva ou atualize o prompt do agente diretamente no editor.
3. Use o toggle Modo Escuro se preferir fundo escuro durante a edição.
4. Clique em Salvar quando terminar.

Para visualizar como seu agente responde antes de salvar, clique no ícone de painel ao lado de Salvar. Isso abre um painel de Prévia do Agente onde você pode enviar mensagens de teste.

{% hint style="warning" %}
Não há salvamento automático. Se fechar a aba ou navegar para outra página antes de clicar em Salvar, suas alterações serão perdidas.
{% 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/otimizacao-do-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.
