> For the complete documentation index, see [llms.txt](https://docs.dapta.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dapta.ai/dapta-docs-es/agentes-de-texto/conecta-tu-base-de-conocimiento-a-un-agente-de-texto.md).

# Conecta tu Base de Conocimiento a un Agente de Texto

Crea un Brain como base de conocimiento para tu agente de texto, añade hasta 25 fuentes entre páginas web, archivos y texto, y actívalo al procesarse.

#### **Brains para Agentes de Texto**

En los agentes de Dapta las bases de conocimiento son denominados Brains, porque son el cerebro de tu agente de inteligencia artificial.

En la Pestaña de Configuración, ve hacia la sección Brains,

<figure><img src="https://365551146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMUYDYzjmxpzlYaw0gcaZ%2Fuploads%2Fc81RM5wc4DP9ZaaNk55Q%2FCaptura%20de%20pantalla%202026-02-03%20a%20las%208.44.10%E2%80%AFp.%E2%80%AFm..png?alt=media&amp;token=73b2f6b2-d9f0-4e01-8db7-0a6b206ec573" alt="" width="375"><figcaption></figcaption></figure>

Si tienes Brains creados los puedes seleccionar aquí

<figure><img src="https://365551146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMUYDYzjmxpzlYaw0gcaZ%2Fuploads%2FL4cC63aIyLGFoOtzWWFr%2FCaptura%20de%20pantalla%202026-02-03%20a%20las%208.47.57%E2%80%AFp.%E2%80%AFm..png?alt=media&amp;token=6b2cf6cc-7b68-43eb-8263-6353cb3f450e" alt="" width="375"><figcaption></figcaption></figure>

Si no tienes Brains, puedes crear un Nuevo Brain como una base de conocimiento

#### Crear un Nuevo Brain

1. Click en el botón Create Brain
2. Dale un nombre a tu Brain
3. Añade una ó más fuentes, haciendo click en la opción "+ Add Source"\ <br>

   <figure><img src="https://365551146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMUYDYzjmxpzlYaw0gcaZ%2Fuploads%2FK1BZ2kFqTjdrb0HMEMOw%2FCaptura%20de%20pantalla%202026-02-03%20a%20las%208.52.19%E2%80%AFp.%E2%80%AFm..png?alt=media&amp;token=c0ecf1e0-e619-41b9-aeab-98036357a11c" alt="" width="375"><figcaption></figcaption></figure>

Puedes añadir hasta 25 fuentes en un sólo Brain, puedes escoger entre:<br>

* **Páginas Web:**\
  \
  Ingresa la URL que te gustaría añadir como base de conocimiento.\
  Puedes hacer click en Descubrir, para encontrar las páginas asociadas a esa URL.<br>

  Puedes agregar páginas web de dos maneras:<br>

  * **Descubrir Páginas asociadas a la URL**<br>

    <figure><img src="https://365551146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMUYDYzjmxpzlYaw0gcaZ%2Fuploads%2FfTe3KuSoRsYAbDEi6iZU%2FCaptura%20de%20pantalla%202026-02-03%20a%20las%209.06.54%E2%80%AFp.%E2%80%AFm..png?alt=media&amp;token=27497dd6-0fbb-483c-a055-e0879110aed5" alt="" width="375"><figcaption></figcaption></figure>

    * Haz clic en "Add Source" y selecciona "Add Web Pages".
      * Ingresa el dominio del sitio web (ej. Example.com).
      * Haz clic en "Discover Pages".
      * Si se encuentran páginas asociadas a ese sitio web, aparecerá un árbol de URLs organizado por subdominio.
      * Selecciona las páginas que quieres incluir usando las casillas de verificación.
      * Usa Select All / Deselect All para una selección rápida.
      * Expande los subdominios para seleccionar páginas individuales.
      * Haz clic en "Add x URLs" para confirmar tu selección.<br>

<figure><img src="https://365551146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMUYDYzjmxpzlYaw0gcaZ%2Fuploads%2FhOVCxRbIqdrazoEmPC7T%2Fimage.png?alt=media&amp;token=9db901f9-9fe0-4b7e-81ab-4f9e92058cda" alt="" width="375"><figcaption></figcaption></figure>

* **Escribir URL manualmente**\ <br>

  <figure><img src="https://365551146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMUYDYzjmxpzlYaw0gcaZ%2Fuploads%2FsY2lEV0qzbtVDVGaIOPg%2FCaptura%20de%20pantalla%202026-02-03%20a%20las%209.10.39%E2%80%AFp.%E2%80%AFm..png?alt=media&amp;token=e38fe8c6-dadc-4794-b6d9-b83ab8585c0d" alt="" width="375"><figcaption></figcaption></figure>

  * Si no se encuentra un sitemap o prefieres agregar URLs individualmente:
  * Haz clic en el enlace "Add URL manually"
  * Ingresa la URL completa (ej. <https://example.com/page>).
  * Haz clic en "Save".
* **Archivos:**\
  \
  Sirve para seleccionar documentos desde tu computadora, hasta 25 archivos a la vez\
  Puedes procesar documentos, presentaciones y archivos de texto.\
  \
  Extensiones soportadas: `.pdf`, `.doc`, `.docx`, `.ppt`, `.pptx`, `.txt`, `.md`, `.markdown`, `.csv`, `.json`. Las hojas de cálculo (`.xls`, `.xlsx`) y las imágenes todavía no son compatibles: exporta la hoja a CSV o Markdown antes de subirla.<br>

<figure><img src="https://365551146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMUYDYzjmxpzlYaw0gcaZ%2Fuploads%2Fc8AixCOGYpbTrNI5h2MS%2FCaptura%20de%20pantalla%202026-02-03%20a%20las%209.11.40%E2%80%AFp.%E2%80%AFm..png?alt=media&amp;token=c8af24a1-e29a-4032-af8d-fec1cabf43df" alt="" width="375"><figcaption></figcaption></figure>

\
Si un archivo no se puede usar, se rechaza de inmediato con un mensaje que nombra el archivo y explica el motivo (por ejemplo, un PDF dañado o un formato que todavía no es compatible). Los demás archivos se agregan igual.

* **Texto:**<br>
  * Escribe o pega texto directamente
  * Dale Click a "Save"\ <br>

    <figure><img src="https://365551146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMUYDYzjmxpzlYaw0gcaZ%2Fuploads%2F3siyecxOfnH54aS45x5c%2Fimage.png?alt=media&amp;token=c78b8f0e-5944-4699-ba50-b8e4940bf012" alt="" width="375"><figcaption></figcaption></figure>

Una vez creado el brain pasa por tres estados:

<figure><img src="https://365551146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMUYDYzjmxpzlYaw0gcaZ%2Fuploads%2FK5aIUMtlXAjuaFcNG57C%2FCaptura%20de%20pantalla%202026-02-03%20a%20las%209.14.35%E2%80%AFp.%E2%80%AFm..png?alt=media&amp;token=98ac508b-4a25-4d8c-b381-ce9b47f957c0" alt="" width="375"><figcaption></figcaption></figure>

* **Pendiente:** La base de conocimiento esta pendiente de ser procesada
* **En Proceso:** La base de conocimiento esta siendo indexada
* **Completado:** La base de conocimiento esta disponible para ser consultada
* **Error:** Falló el procesamiento.

Una fuente con **Error** muestra el motivo debajo de su nombre. **Reintentar** solo aparece cuando el problema fue temporal; si no, elimina la fuente, corrige el archivo y vuelve a subirlo. Una etiqueta **Parcial** en un archivo completado significa que menos de la mitad de sus páginas tienen texto legible, por ejemplo páginas escaneadas: el texto dentro de imágenes todavía no se indexa.

<figure><img src="https://365551146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMUYDYzjmxpzlYaw0gcaZ%2Fuploads%2FFDwJb7E9ZMT5eQfMKQvl%2FCaptura%20de%20pantalla%202026-02-03%20a%20las%209.15.58%E2%80%AFp.%E2%80%AFm..png?alt=media&amp;token=26ddc4fd-fc2d-4c16-9136-70cbbbffaaf7" alt="" width="375"><figcaption></figcaption></figure>

Luego que la fuente que necesitas para tu base de conocimiento esté en completado,\
Selecciona las que necesitas añadir y dale click a "Save"\
\
Con esto tu agente ya responderá según las bases de conocimiento que creaste.


---

# 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.dapta.ai/dapta-docs-es/agentes-de-texto/conecta-tu-base-de-conocimiento-a-un-agente-de-texto.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.
