La integración con Chatwoot se realiza a través del microservicio RyzeIntegrations (bridge). RyzeAPI no se comunica directamente con Chatwoot, toda la comunicación pasa por el bridge, que crea el inbox en Chatwoot y mantiene una conexión WebSocket persistente con RyzeAPI.Documentation Index
Fetch the complete documentation index at: https://docs.ryzeapi.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Cuando el servidor no tiene
BRIDGE_URL o BRIDGE_TOKEN configurados, todos los endpoints del módulo devuelven 503 con el mensaje integration gateway not configured (set BRIDGE_URL and BRIDGE_TOKEN). Además, la ruta interna /ws/chatwoot/:instance no se registra (responde 404).Cómo funciona
Endpoints de gestión
Activar
POST /api/chatwoot/set/:instance, provisiona la integración (crea el inbox + abre el WS).Estado / Información
GET /api/chatwoot/list/:instance, lectura local enriquecida con datos en vivo del bridge.Desactivar
DELETE /api/chatwoot/delete/:instance, elimina la integración y borra el inbox en Chatwoot.Activación inline al crear la instancia
La integración puede activarse junto con la creación de la instancia, sin una llamadaset separada. Solo incluye el bloque chatwoot* en el cuerpo de POST /api/instance/new:
chatwoot regresa con status: "error" y error: "<mensaje>". Luego puedes llamar a POST /api/chatwoot/set/:instance para corregir las credenciales sin recrear la instancia.
Variables de entorno del servidor
Quien opera la plataforma debe configurar estas variables para habilitar el módulo:| Variable | Descripción |
|---|---|
BRIDGE_URL | URL base de RyzeIntegrations (p. ej., https://bridge.example.com). |
BRIDGE_TOKEN | Token Bearer de servicio a servicio. |
BRIDGE_INTERNAL_RYZEAPI_URL | URL que el bridge utiliza para llamar a RyzeAPI (útil en despliegues contenedor a contenedor). Predeterminado: BASE_URL. |
Detectar si el bridge está habilitado
Ruta interna /ws/chatwoot/:instance
Modelo de datos
El servidor persiste cada integración en la tablachatwoot_integrations. El chatwootApiToken se cifra en reposo con AES-256-GCM y nunca se devuelve por la API.
| Campo | Descripción |
|---|---|
bridge_integration_id | ID devuelto por RyzeIntegrations. |
chatwoot_base_url | URL de la instalación de Chatwoot. |
chatwoot_account_id | ID numérico de la cuenta de Chatwoot. |
chatwoot_inbox_id / chatwoot_inbox_name | Inbox creado por el bridge. |
status | active / paused / error. |
last_error | Último mensaje de error reportado por el bridge. |
Próximos pasos
Activar integración
Provisiona la integración con
POST /api/chatwoot/set/:instance.Errores de Chatwoot
Tabla de mapeo de códigos de estado HTTP y mensajes del bridge.