curl --request POST \
--url https://gateway.jelou.ai/jelouapi/v1/external-support/{projectId}/conversations/start \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"botId": "<string>",
"userId": "<string>",
"initialMessage": "<string>",
"metadata": {},
"assignment": {
"type": "<string>",
"target": "<string>"
}
}
'{
"message": "<string>",
"statusMessage": "<string>",
"status": 123,
"error": {
"code": "<string>",
"key": "<string>",
"description": "<string>",
"developerMessages": {},
"clientMessages": {}
},
"validationError": {}
}Inicia una nueva conversación con un usuario final
curl --request POST \
--url https://gateway.jelou.ai/jelouapi/v1/external-support/{projectId}/conversations/start \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"botId": "<string>",
"userId": "<string>",
"initialMessage": "<string>",
"metadata": {},
"assignment": {
"type": "<string>",
"target": "<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.start hacia el webhook configurado en la integración.
POST https://gateway.jelou.ai/jelouapi/v1/external-support/{projectId}/conversations/start
{ "ticketId": "T-12345" }type — Tipo de asignación: queue (cola), operator (operador) o team (equipo).target — Nombre de la cola o identificador del agente destino.x-api-key con la API key del proyecto de Jelou.
x-api-key: API_KEY
SOPORTE e incluye metadata de ticket:
curl --request POST \
--url https://gateway.jelou.ai/jelouapi/v1/external-support/PROJECT_ID/conversations/start \
--header 'x-api-key: API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"botId": "BOT_ID",
"userId": "USER_ID",
"initialMessage": "Hola, necesito ayuda",
"metadata": { "ticketId": "T-12345" },
"assignment": { "type": "queue", "target": "SOPORTE" }
}'
| Código | Estado | Descripción |
|---|---|---|
| 200 | OK | Conversación iniciada exitosamente. |
| 401 | Unauthorized | Credenciales de autenticación inválidas o faltantes. |
| 404 | Not Found | Bot o usuario no encontrado. |
| 422 | Bad Request | Faltan campos requeridos o el formato es inválido. |
| 500 | Internal Server Error | Error interno del servidor. |
{
"message": [
"Conversation started successfully"
],
"statusMessage": "success",
"status": 1,
"data": {
"conversationId": "CONVERSATION_ID",
"botId": "BOT_ID",
"userId": "USER_ID",
"status": "active"
}
}
conversation.startconversation.start al webhook configurado en la integración. El payload varía según los campos enviados en la solicitud.
{
"event": "conversation.start",
"timestamp": 1776133797422,
"field": "conversation",
"object": "conversation_event",
"event_type": "start",
"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": {}
}
{
"event": "conversation.start",
"timestamp": 1776134145523,
"field": "conversation",
"object": "conversation_event",
"event_type": "start",
"project_id": "PROJECT_ID",
"room_id": "ROOM_ID",
"contact": {
"id": "USER_ID",
"name": "USER_NAME"
},
"conversation": {
"id": "CONVERSATION_ID",
"assignment": {
"type": "queue",
"target": "SOPORTE"
}
},
"bot": {
"id": "BOT_ID",
"name": "BOT_NAME"
},
"value": {
"initial_message": "Hola buenos días",
"metadata": {
"ticketId": "T-12345"
}
}
}
| Campo | Tipo | Descripción |
|---|---|---|
event | string | Nombre del evento: conversation.start |
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 iniciada. |
conversation.assignment.type | string | Tipo de asignación: queue o direct. |
conversation.assignment.target | string | Nombre de la cola o ID del agente destino. |
bot.id | string | Identificador del bot asignado. |
bot.name | string | Nombre del bot asignado. |
value.initial_message | string | Mensaje inicial enviado al arrancar la conversación (opcional). |
value.metadata | object | Metadata adicional de la conversación (opcional). |
Basic authentication using Base64 encoded clientId:clientSecret
Unique identifier of the Jelou project
Conversation started successfully
¿Esta página le ayudó?