Chat con agente
El endpoint principal para enviar mensajes:Request
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
query | string | Sí | Mensaje del usuario |
conversationId | string | No | Para mantener contexto |
visitorId | string | No | ID único del usuario |
streaming | boolean | No | Respuesta en tiempo real |
contact | object | No | Datos del contacto |
Response
Conversaciones
Listar conversaciones
agentId- Filtrar por agentestatus-open,resolved,unresolvedlimit- Cantidad (default: 20)
Obtener conversación
Obtener mensajes
Cambiar estado
Agentes
Listar agentes
Obtener agente
Crear agente
Actualizar agente
Datastores
Listar datastores
Buscar en datastore
Agregar fuente (archivo)
multipart/form-data:
Agregar fuente (URL)
Agregar fuente (texto)
Respuestas de error
| Código | Significado |
|---|---|
| 400 | Parámetros inválidos |
| 401 | API key inválida |
| 403 | Sin permisos |
| 404 | Recurso no existe |
| 429 | Rate limit excedido |
| 500 | Error del servidor |
Streaming
Para recibir la respuesta token por token:token- Cada token de la respuestasource- Fuente encontradadone- Respuesta completa
