> 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

Use IA para extrair seus dados e gerar uma resposta. Tudo isso em um bot modelo pronto para usar.

## 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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FQ2W7Ekf9YGuLyEBraYqg%2FScreenshot%202023-10-17%20at%2010.57.32.png?alt=media&amp;token=6ea64ba8-844c-45a4-89cf-1e5d2216bba6" 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="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FeFNOJO9YLmlL7elyoyr2%2FScreenshot%202024-04-03%20at%2017.35.32.png?alt=media&amp;token=8c919d7c-da79-4f00-8f72-9322af2868aa" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.chatlayer.ai/chatlayer-documentation-pt-br/comece-rapido/bot-templates/knowledge-base-ai-template.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
