> ## Documentation Index
> Fetch the complete documentation index at: https://docs.braviloai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent - Universal Processor

Procesa archivos multimedia (imagen, audio, video, PDF) y devuelve el texto extraído o el análisis. Útil para construir pipelines de IA sobre documentos.

### Formatos soportados

| Tipo      | Extensiones                                 |
| --------- | ------------------------------------------- |
| Imagen    | `jpg`, `jpeg`, `png`, `webp`, `gif`, `tiff` |
| Audio     | `mp3`, `wav`, `m4a`, `ogg`, `webm`          |
| Video     | `mp4`, `avi`, `mov`, `wmv`                  |
| Documento | `pdf`, `doc`, `docx`, `txt`                 |

### Ejemplo

```bash theme={null}
curl -X POST https://app.braviloai.com/api/agents/${agentId}/universal \
-H "Content-Type: application/json" \
-d '{
"fileBuffer": "<base64-encoded-content>",
"fileType": "pdf",
"fileName": "contrato.pdf",
"userQuery": "Resumí los puntos clave"
}'
```


## OpenAPI

````yaml POST /agents/{id}/universal
openapi: 3.0.1
info:
  title: Bravilo AI.ai - API OpenAPI specifications
  description: ''
  termsOfService: http://braviloai.com/terms
  contact:
    email: support@braviloai.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
servers:
  - url: https://app.braviloai.com/api
security:
  - bearerAuth: []
tags:
  - name: agents
  - name: datastores
  - name: datasources
paths:
  /agents/{id}/universal:
    post:
      tags:
        - agents
      summary: Procesador universal de archivos multimedia
      parameters:
        - in: path
          name: id
          schema:
            type: string
          required: true
          description: ID del agente
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                fileBuffer:
                  type: string
                  description: Contenido del archivo en base64 o buffer
                fileType:
                  type: string
                  description: Extensión del archivo (pdf, jpg, mp3, mp4, etc.)
                fileName:
                  type: string
                userQuery:
                  type: string
                  description: Prompt adicional para el procesamiento
              required:
                - fileBuffer
                - fileType
                - fileName
      responses:
        '200':
          description: Archivo procesado exitosamente
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  messageText:
                    type: string
                  context:
                    type: object
        '400':
          description: Error de procesamiento
        '404':
          description: Agente no encontrado
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````