Eventos de callback de Webhook

Conversación creada

Cuando un usuario crea correctamente una nueva conversación llamando a la API, la URL de webhook configurada para el canal API recibirá un evento de callback de creación de conversación.

{ "account": { "id": 17629000001207, "name": "1112" }, "additional_attributes": {}, "can_reply": true, "channel": "Channel::Api", "contact_inbox": { "id": 42213404, "contact_id": 42218348, "inbox_id": 523, "source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588", "created_at": "2026-01-21T03:26:49.012Z", "updated_at": "2026-01-21T03:26:49.012Z", "hmac_verified": false, "pubsub_token": "4Urn7N5A974k6C2H7Xeva8Ni" }, "id": 89, "inbox_id": 523, "messages": [], "labels": [], "meta": { "sender": { "additional_attributes": {}, "custom_attributes": {}, "email": "alice@acme.inc", "id": 42218348, "identifier": null, "name": "Test", "phone_number": "+123456789", "thumbnail": "", "blocked": false, "type": "contact" }, "assignee": null, "team": null, "hmac_verified": false, "channel": "Channel::Api" }, "status": "open", "custom_attributes": {}, "snoozed_until": null, "unread_count": 0, "first_reply_created_at": null, "priority": null, "waiting_since": 1768967324, "conversation_category": "chat", "chat_mode": "private_chat", "ticket_info": null, "agent_last_seen_at": 0, "contact_last_seen_at": 0, "last_activity_at": 1768967324, "timestamp": 1768967324, "created_at": 1768967324, "updated_at": 1768967324.268219, "event": "conversation_created" }
              
              {
  "account": {
    "id": 17629000001207,
    "name": "1112"
  },
  "additional_attributes": {},
  "can_reply": true,
  "channel": "Channel::Api",
  "contact_inbox": {
    "id": 42213404,
    "contact_id": 42218348,
    "inbox_id": 523,
    "source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588",
    "created_at": "2026-01-21T03:26:49.012Z",
    "updated_at": "2026-01-21T03:26:49.012Z",
    "hmac_verified": false,
    "pubsub_token": "4Urn7N5A974k6C2H7Xeva8Ni"
  },
  "id": 89,
  "inbox_id": 523,
  "messages": [],
  "labels": [],
  "meta": {
    "sender": {
      "additional_attributes": {},
      "custom_attributes": {},
      "email": "alice@acme.inc",
      "id": 42218348,
      "identifier": null,
      "name": "Test",
      "phone_number": "+123456789",
      "thumbnail": "",
      "blocked": false,
      "type": "contact"
    },
    "assignee": null,
    "team": null,
    "hmac_verified": false,
    "channel": "Channel::Api"
  },
  "status": "open",
  "custom_attributes": {},
  "snoozed_until": null,
  "unread_count": 0,
  "first_reply_created_at": null,
  "priority": null,
  "waiting_since": 1768967324,
  "conversation_category": "chat",
  "chat_mode": "private_chat",
  "ticket_info": null,
  "agent_last_seen_at": 0,
  "contact_last_seen_at": 0,
  "last_activity_at": 1768967324,
  "timestamp": 1768967324,
  "created_at": 1768967324,
  "updated_at": 1768967324.268219,
  "event": "conversation_created"
}

            
Este bloque de código se muestra en una ventana flotante

Parámetros del evento de creación de conversación

Field Type Required Description
account Object No Información del proyecto de cuenta
id Number No ID del proyecto
name String No Nombre del proyecto
additional_attributes Object No Atributos adicionales
can_reply Boolean No Indica si se puede responder
channel String No Tipo de canal, como api, email, etc.
contact_inbox Object No Información de contacto
id Number No ID de la tabla contact_inbox, que registra la relación entre el contacto y el canal
contact_id Number No ID del contacto
inbox_id Number No ID del canal
source_id String No ID de origen de la conversación, como el user_id de Telegram
created_at String No Hora de creación
updated_at String No Hora de actualización
hmac_verified Boolean No Estado de verificación HMAC
pubsub_token String No Token de publicación-suscripción
id Number No ID de la conversación
inbox_id Number No ID del canal
messages Array No Lista de mensajes
labels Array No Lista de etiquetas
meta Object No Metainformación
sender Object No Información del remitente
additional_attributes Object No Atributos adicionales del remitente
custom_attributes Object No Atributos personalizados del remitente
email String No Correo electrónico del remitente
id Number No ID interno del remitente en liveDesk
identifier String No Identificador del remitente
name String No Nombre del remitente
phone_number String No Número de teléfono del remitente
thumbnail String No Avatar del remitente
blocked Boolean No Indica si el remitente está bloqueado
type String No Tipo de remitente
assignee Object No Información del agente de atención al cliente asignado
team Object No Información del equipo de atención al cliente asignado
hmac_verified Boolean No Estado de verificación HMAC
channel String No Tipo de canal
status String No Estado de la conversación, como open, closed, etc.
custom_attributes Object No Atributos personalizados
snoozed_until String No Pospuesta hasta una hora determinada
unread_count Number No Número de mensajes no leídos
first_reply_created_at String No Hora de creación de la primera respuesta
priority String No Prioridad
waiting_since Number No Hora de inicio de la espera
conversation_category String No Categoría de la conversación
chat_mode String No Modo de chat
ticket_info Object No Información del ticket
agent_last_seen_at Number No Última vez que se vio al agente
contact_last_seen_at Number No Última vez que se vio al contacto
last_activity_at Number No Hora de la última actividad
timestamp Number No Marca de tiempo
created_at Number No Hora de creación
updated_at Number No Hora de actualización
event String No Tipo de evento

Conversación actualizada

Este evento se activa cuando se actualiza cualquier atributo de la conversación.

{ "event": "conversation_updated", "changed_attributes": [ { "updated_at": { "previous_value": "2026-01-21T04:04:56.548Z", "current_value": "2026-01-21T04:04:56.601Z" } }, { "first_reply_created_at": { "previous_value": null, "current_value": "2026-01-21T04:04:56.544Z" } }, { "waiting_since": { "previous_value": "2026-01-21T03:48:44.268Z", "current_value": null } } ] // <...Conversation Attributes> Contenido de los atributos de la conversación }
              
              {
  "event": "conversation_updated",
  "changed_attributes": [
    {
      "updated_at": {
        "previous_value": "2026-01-21T04:04:56.548Z",
        "current_value": "2026-01-21T04:04:56.601Z"
      }
    },
    {
      "first_reply_created_at": {
        "previous_value": null,
        "current_value": "2026-01-21T04:04:56.544Z"
      }
    },
    {
      "waiting_since": {
        "previous_value": "2026-01-21T03:48:44.268Z",
        "current_value": null
      }
    }
  ]
  // <...Conversation Attributes> Contenido de los atributos de la conversación
}

            
Este bloque de código se muestra en una ventana flotante

Parámetros del evento de actualización de conversación

Field Type Required Description
event String No Tipo de evento
changed_attributes Array No Lista de atributos modificados
field_name Object No Nombre del campo modificado
previous_value String No Valor anterior al cambio
current_value String No Valor posterior al cambio

Estado de la conversación cambiado

Este evento se activa cuando cambia el estado de la conversación.

{ "event": "conversation_status_changed" // <...Conversation Attributes> Contenido de los atributos de la conversación }
              
              {
  "event": "conversation_status_changed"
  // <...Conversation Attributes> Contenido de los atributos de la conversación
}

            
Este bloque de código se muestra en una ventana flotante

Mensaje creado

Este evento se activa cuando un usuario o un agente de atención al cliente envía un mensaje.

{ "account": { "id": 17629000001207, "name": "1112" }, "additional_attributes": {}, "content_attributes": {}, "content_type": "text", "content": "Hello, what can I help you with?", "conversation": { "account": { "id": 17629000001207, "name": "1112" }, "additional_attributes": {}, "can_reply": true, "channel": "Channel::Api", "contact_inbox": { "id": 42213404, "contact_id": 42218348, "inbox_id": 523, "source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588", "created_at": "2026-01-21T03:26:49.012Z", "updated_at": "2026-01-21T03:26:49.012Z", "hmac_verified": false, "pubsub_token": "4Urn7N5A974k6C2H7Xeva8Ni" }, "id": 89, "inbox_id": 523, "messages": [ { "id": 2187685, "content": "Hello, what can I help you with?", "account_id": 17629000001207, "inbox_id": 523, "conversation_id": 89, "message_type": 1, "created_at": 1768968296, "updated_at": "2026-01-21T04:04:56.544Z", "private": false, "status": "sent", "source_id": null, "content_type": "text", "content_attributes": {}, "sender_type": "User", "sender_id": 41, "external_source_ids": {}, "additional_attributes": {}, "processed_message_content": "Hello, what can I help you with?", "sentiment": {}, "sorting_id": null, "original_message_id": null, "conversation_topic_id": null, "topic_id": null, "conversation": { "assignee_id": null, "unread_count": 0, "last_activity_at": 1768968296, "contact_inbox": { "source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588" } }, "sender": { "id": 41, "name": "support", "available_name": "support", "avatar_url": "", "type": "user", "availability_status": null, "thumbnail": "" } } ], "labels": [], "meta": { "sender": { "additional_attributes": {}, "custom_attributes": {}, "email": "alice@acme.inc", "id": 42218348, "identifier": null, "name": "Test", "phone_number": "+123456789", "thumbnail": "", "blocked": false, "type": "contact" }, "assignee": null, "team": null, "hmac_verified": false, "channel": "Channel::Api" }, "status": "open", "custom_attributes": {}, "snoozed_until": null, "unread_count": 0, "first_reply_created_at": null, "priority": null, "waiting_since": 1768967324, "conversation_category": "chat", "chat_mode": "private_chat", "ticket_info": null, "agent_last_seen_at": 0, "contact_last_seen_at": 0, "last_activity_at": 1768968296, "timestamp": 1768968296, "created_at": 1768967324, "updated_at": 1768968296.5483441 }, "created_at": "2026-01-21T04:04:56.544Z", "id": 2187685, "inbox": { "id": 523, "name": "Test01" }, "message_type": "outgoing", "conversation_topic_id": null, "private": false, "sender": { "id": 41, "name": "support", "email": "support@jiguang.cn", "type": "user", "availability": "online" }, "source_id": null, "user_id": 42213404, "contact_id": 42218348, "participants": null, "event": "message_created" }
              
              {
  "account": {
    "id": 17629000001207,
    "name": "1112"
  },
  "additional_attributes": {},
  "content_attributes": {},
  "content_type": "text",
  "content": "Hello, what can I help you with?",
  "conversation": {
    "account": {
      "id": 17629000001207,
      "name": "1112"
    },
    "additional_attributes": {},
    "can_reply": true,
    "channel": "Channel::Api",
    "contact_inbox": {
      "id": 42213404,
      "contact_id": 42218348,
      "inbox_id": 523,
      "source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588",
      "created_at": "2026-01-21T03:26:49.012Z",
      "updated_at": "2026-01-21T03:26:49.012Z",
      "hmac_verified": false,
      "pubsub_token": "4Urn7N5A974k6C2H7Xeva8Ni"
    },
    "id": 89,
    "inbox_id": 523,
    "messages": [
      {
        "id": 2187685,
        "content": "Hello, what can I help you with?",
        "account_id": 17629000001207,
        "inbox_id": 523,
        "conversation_id": 89,
        "message_type": 1,
        "created_at": 1768968296,
        "updated_at": "2026-01-21T04:04:56.544Z",
        "private": false,
        "status": "sent",
        "source_id": null,
        "content_type": "text",
        "content_attributes": {},
        "sender_type": "User",
        "sender_id": 41,
        "external_source_ids": {},
        "additional_attributes": {},
        "processed_message_content": "Hello, what can I help you with?",
        "sentiment": {},
        "sorting_id": null,
        "original_message_id": null,
        "conversation_topic_id": null,
        "topic_id": null,
        "conversation": {
          "assignee_id": null,
          "unread_count": 0,
          "last_activity_at": 1768968296,
          "contact_inbox": {
            "source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588"
          }
        },
        "sender": {
          "id": 41,
          "name": "support",
          "available_name": "support",
          "avatar_url": "",
          "type": "user",
          "availability_status": null,
          "thumbnail": ""
        }
      }
    ],
    "labels": [],
    "meta": {
      "sender": {
        "additional_attributes": {},
        "custom_attributes": {},
        "email": "alice@acme.inc",
        "id": 42218348,
        "identifier": null,
        "name": "Test",
        "phone_number": "+123456789",
        "thumbnail": "",
        "blocked": false,
        "type": "contact"
      },
      "assignee": null,
      "team": null,
      "hmac_verified": false,
      "channel": "Channel::Api"
    },
    "status": "open",
    "custom_attributes": {},
    "snoozed_until": null,
    "unread_count": 0,
    "first_reply_created_at": null,
    "priority": null,
    "waiting_since": 1768967324,
    "conversation_category": "chat",
    "chat_mode": "private_chat",
    "ticket_info": null,
    "agent_last_seen_at": 0,
    "contact_last_seen_at": 0,
    "last_activity_at": 1768968296,
    "timestamp": 1768968296,
    "created_at": 1768967324,
    "updated_at": 1768968296.5483441
  },
  "created_at": "2026-01-21T04:04:56.544Z",
  "id": 2187685,
  "inbox": {
    "id": 523,
    "name": "Test01"
  },
  "message_type": "outgoing",
  "conversation_topic_id": null,
  "private": false,
  "sender": {
    "id": 41,
    "name": "support",
    "email": "support@jiguang.cn",
    "type": "user",
    "availability": "online"
  },
  "source_id": null,
  "user_id": 42213404,
  "contact_id": 42218348,
  "participants": null,
  "event": "message_created"
}

            
Este bloque de código se muestra en una ventana flotante

Parámetros del evento de creación de mensaje

Field Type Required Description
account Object No Información de la cuenta
id Number No ID del proyecto
name String No Nombre del proyecto
additional_attributes Object No Atributos adicionales
content_attributes Object No Atributos del contenido
content_type String No Tipo de contenido
content String No Contenido del mensaje
conversation Object No Información de la conversación
created_at String No Hora de creación
id Number No ID del mensaje
inbox Object No Información del canal
id Number No ID del canal
name String No Nombre del canal
message_type String No Tipo de mensaje
conversation_topic_id String No ID del tema de la conversación
private Boolean No Indica si es privado
sender Object No Información del remitente
id Number No ID del remitente
name String No Nombre del remitente
email String No Correo electrónico del remitente
type String No Tipo de remitente
availability String No Estado de disponibilidad del remitente
source_id String No ID de origen
participants Object No Información de los participantes
event String No Tipo de evento

Mensaje actualizado

Este evento se activa cuando se actualiza el contenido del mensaje en la conversación.

{ "event": "message_updated" // <...Message Attributes> Contenido de los atributos del mensaje }
              
              {
  "event": "message_updated"
  // <...Message Attributes> Contenido de los atributos del mensaje
}

            
Este bloque de código se muestra en una ventana flotante
Icon Solid Transparent White Qiyu
Contacto