> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/topicos/inteligencia-artificial/agentes-de-ia/agentes-de-i.a.-salvar-dados.md).

# Agentes de I.A. - Salvar Dados

## Definindo os campos visíveis para a I.A.

A I.A. terá permissão de leitura para todos os campos informados em "**Informações do Lead**" na aba Contextualização, ou seja, poderá utilizá-los durante a conversa com o lead. É fundamental que os campos que ela pode editar também estejam disponíveis para leitura.

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

## Permitindo a alteração de campos

Para permitir que ele salve dados durante a conversação, é necessário habilitar essa funcionalidade conforme mostrado abaixo, selecionando os campos que poderão ser alterados.

Se você quer que o agente também consiga modificar campos que já estão preenchidos, é preciso habilitar a opção "**Permitir sobrescrita de dados?**".

<figure><img src="/files/0bly4lBAkq5AHWVF96pp" alt=""><figcaption><p><em>Tela de edição do agente.</em></p></figcaption></figure>

<figure><img src="/files/K1dYhGKqrurO98qNoZzx" alt=""><figcaption><p><em>Selecionando campos que podem ser alterados.</em></p></figcaption></figure>

## Configurando regras para salvar os campos

É importante deixar explicitamente claro em que momento o agente poderá salvar os campos. Idealmente, isso deve ser feito na seção "Regras Adicionais". Caso esteja trabalhando com campos customizados do lead, você pode referenciá-los tanto pelo alias quanto pelo nome de exibição.

<figure><img src="/files/3fECo0IVW9CejM3SRYq4" alt=""><figcaption><p><em>Regras Adicionais para alterar os campos.</em></p></figcaption></figure>


---

# 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.sprinthub.com/topicos/inteligencia-artificial/agentes-de-ia/agentes-de-i.a.-salvar-dados.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.
