> For the complete documentation index, see [llms.txt](https://docs.chatlayer.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatlayer.ai/chatlayer-documentation-pt-br/comece-rapido/bot-templates/knowledge-base-ai-template.md).

# Modelo de IA para base de conhecimento

## Visão geral do modelo

Este modelo usa nosso recurso mais recente [IA da base de conhecimento](/chatlayer-documentation-pt-br/navegacao/knowledge-base-ai.md) para gerar respostas com base na sua própria documentação.

{% hint style="warning" %}
Você pode usar a IA da base de conhecimento gratuitamente se fizer menos de 50 perguntas por mês. Se quiser usar mais do que isso, por favor [entre em contato conosco](https://forms.office.com/pages/responsepage.aspx?id=ropROyGJe0qEl2GddWziDpBKj7if3UFHrttkAY_OzkZURUM1Wk4yRFZHM1pJRlJXWjFBWDg1VE0wSS4u).
{% endhint %}

## Como personalizar este modelo

Para personalizar este modelo:

1. [Adicione seu conteúdo ](https://docs.chatlayer.ai/bot-answers/knowledge-base-ai/set-up-your-faq-flow-using-a-generative-knowledge-base-ai#add-content)em **IA da Base de Conhecimento** guia.
2. Teste seu bot perguntando qualquer coisa.
3. Pronto! Toda vez que você fizer uma pergunta, o bot acionará o **Não entendi** bloco que então vasculhará sua base de conhecimento para gerar uma resposta.

<figure><img src="/files/a7e355d4cbbdc49454d796658cd8df1e31ccb2e2" alt=""><figcaption><p>Exemplo de uso do recurso de IA da base de conhecimento.</p></figcaption></figure>

## Bloco: Roteador de origem

O roteador de origem é um bloco de condição que verifica se a origem da resposta foi um documento ou uma URL. Se a origem for uma URL, a resposta será dada junto com um link para a origem. Se a origem for um documento, a resposta não fornecerá um link junto com ela.

<figure><img src="/files/5532cb60e630f4fa473a55fa29bd45486ae370d2" alt=""><figcaption><p>Os blocos do roteador de origem verificam a origem da resposta gerada antes de exibi-la.</p></figcaption></figure>

## Saiba mais

Saiba tudo sobre como o recurso de IA da Base de Conhecimento funciona nesta página da documentação:

{% content-ref url="/pages/096348d73f3ede6cd5c69a60886d1562e19a4b5d" %}
[IA da base de conhecimento](/chatlayer-documentation-pt-br/navegacao/knowledge-base-ai.md)
{% endcontent-ref %}


---

# 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.chatlayer.ai/chatlayer-documentation-pt-br/comece-rapido/bot-templates/knowledge-base-ai-template.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.
