curl --request POST \
--url https://gateway.jelou.ai/jelouapi/v1/external-support/{projectId}/conversations/close \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"botId": "<string>",
"userId": "<string>",
"redirectPayload": {
"type": "<string>",
"text": "<string>"
}
}
'{
"message": "<string>",
"statusMessage": "<string>",
"status": 123,
"error": {
"code": "<string>",
"key": "<string>",
"description": "<string>",
"developerMessages": {},
"clientMessages": {}
},
"validationError": {}
}Cierra una conversación activa con un usuario final
curl --request POST \
--url https://gateway.jelou.ai/jelouapi/v1/external-support/{projectId}/conversations/close \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"botId": "<string>",
"userId": "<string>",
"redirectPayload": {
"type": "<string>",
"text": "<string>"
}
}
'{
"message": "<string>",
"statusMessage": "<string>",
"status": 123,
"error": {
"code": "<string>",
"key": "<string>",
"description": "<string>",
"developerMessages": {},
"clientMessages": {}
},
"validationError": {}
}Documentation Index
Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
Use this file to discover all available pages before exploring further.
conversation.close hacia el webhook configurado en la integración.
POST https://gateway.jelou.ai/jelouapi/v1/external-support/{projectId}/conversations/close
type — Tipo de mensaje: text o edge.text — Texto del mensaje de cierre (cuando type es text).x-api-key con la API key del proyecto de Jelou.
x-api-key: API_KEY
USER_ID e incluye un mensaje de cierre:
curl --request POST \
--url https://gateway.jelou.ai/jelouapi/v1/external-support/PROJECT_ID/conversations/close \
--header 'x-api-key: API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"botId": "BOT_ID",
"userId": "USER_ID",
"redirectPayload": {
"type": "text",
"text": "Mensaje de cierre de conversación"
}
}'
| Código | Estado | Descripción |
|---|---|---|
| 200 | OK | Conversación cerrada exitosamente. |
| 401 | Unauthorized | Credenciales de autenticación inválidas o faltantes. |
| 404 | Not Found | Bot o usuario no encontrado. |
| 422 | Unprocessable Entity | Los campos enviados contienen valores inválidos o no cumplen las validaciones esperadas. |
| 500 | Internal Server Error | Error interno del servidor. |
{
"message": [
"Conversation closed successfully"
],
"statusMessage": "success",
"status": 1,
"data": {
"conversationId": "CONVERSATION_ID",
"status": "closed",
"endedReason": "closed_by_operator"
}
}
conversation.closeconversation.close al webhook configurado en la integración. El payload incluye la razón del cierre y el mensaje enviado al usuario.
{
"event": "conversation.close",
"timestamp": 1777992928697,
"field": "conversation",
"object": "conversation_event",
"event_type": "close",
"project_id": "PROJECT_ID",
"room_id": "ROOM_ID",
"contact": {
"id": "USER_ID",
"name": "USER_NAME"
},
"conversation": {
"id": "CONVERSATION_ID"
},
"bot": {
"id": "BOT_ID",
"name": "BOT_NAME"
},
"value": {
"reason": "closed_by_operator",
"redirectPayload": {
"type": "text",
"text": "Mensaje de cierre de conversación"
}
}
}
| Campo | Tipo | Descripción |
|---|---|---|
event | string | Nombre del evento: conversation.close |
timestamp | number | Marca de tiempo Unix en milisegundos del momento del evento. |
project_id | string | Identificador del proyecto de Jelou. |
room_id | string | Identificador de la sala de conversación. |
contact.id | string | Identificador del usuario final. |
contact.name | string | Nombre del usuario final. |
conversation.id | string | Identificador único de la conversación cerrada. |
bot.id | string | Identificador del bot asociado. |
bot.name | string | Nombre del bot asociado. |
value.reason | string | Razón del cierre: closed_by_operator. |
value.redirectPayload.type | string | Tipo del mensaje de cierre: text o edge. |
value.redirectPayload.text | string | Texto del mensaje enviado al usuario al cerrar (opcional). |
Basic authentication using Base64 encoded clientId:clientSecret
Unique identifier of the Jelou project
Conversation closed successfully
¿Esta página le ayudó?