> For the complete documentation index, see [llms.txt](https://assertchat.gitbook.io/manual-assertchat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://assertchat.gitbook.io/manual-assertchat/pagina-inicial/ia.md).

# IA

A área **Inteligência Artificial** permite configurar a integração do AssertChat com o modelo de IA utilizado pela empresa.

Atualmente, o provedor utilizado é o **Gemini**, apresentado automaticamente pela plataforma. Esse campo não pode ser alterado pelo usuário.

### Configuração da integração

Para configurar a integração, preencha ou confira as seguintes informações:

* **Modelo padrão:** modelo do Gemini que será utilizado;
* **Conexão WhatsApp:** conexão na qual a integração será aplicada;
* **LLM API Key:** chave de acesso fornecida pelo provedor;
* **Prompt base:** instruções que definem como a IA deverá se comportar;
* **Segmento:** área de atuação da empresa;
* **Contato de suporte:** canal indicado para encaminhamentos ou atendimento humano;
* **Temperatura:** controla o nível de variação das respostas;
* **Máximo de tokens:** limita o tamanho das respostas geradas.

<figure><img src="https://3085621881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVVHN1dURTl9HbzaB2XEv%2Fuploads%2F7b4rR9ghNTrxP10dr3SE%2Fimage.png?alt=media&amp;token=9254f00e-f137-4c95-a459-a6af695abecf" alt=""><figcaption></figcaption></figure>

### API Key do AssertChat

A integração utiliza uma API Key dedicada do AssertChat, vinculada à conexão selecionada.

Nos ambientes em que essa chave já estiver configurada, o usuário poderá seguir diretamente com o preenchimento das demais informações.

> Caso a tela apresente o status **Pendente**, selecione uma conexão e clique em **Criar API Key** antes de concluir o cadastro.

### Salvar e ativar

Após preencher as informações:

1. Salve o cadastro ou as alterações;
2. Clique em **Testar integração**;
3. Verifique se o teste foi concluído com sucesso;
4. Clique em **Ativar integração**.

> Recomenda-se testar a integração sempre que a chave, o modelo ou o prompt base forem alterados.

{% embed url="<https://app.supademo.com/demo/cmsdo6c25088mqm25daquqps9?utm_source=link>" %}


---

# 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://assertchat.gitbook.io/manual-assertchat/pagina-inicial/ia.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.
