> ## 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.

# Recibir mensaje del usuario final

> Mensajes de texto y multimedia que el usuario final envía durante una conversación activa

## Descripción

Jelou emite este evento en tu webhook cuando el usuario final envía un mensaje durante una conversación activa. Todos los eventos incluyen el header `X-Jelou-Signature` para verificación.

## Evento webhook `message`

> [tab] Mensaje de texto
>
> ```json theme={null}
> {
>   "field": "messages",
>   "object": "message_event",
>   "event_type": "message",
>   "timestamp": 1776134278574,
>   "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": {
>     "id": "MESSAGE_ID",
>     "type": "text",
>     "content": {
>       "body": "Hola"
>     }
>   }
> }
> ```

> [tab] Mensaje de imagen
>
> ```json theme={null}
> {
>   "field": "messages",
>   "object": "message_event",
>   "event_type": "message",
>   "timestamp": 1776134352163,
>   "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": {
>     "id": "MESSAGE_ID",
>     "type": "image",
>     "content": {
>       "url": "https://storage.example.com/media/image.jpg",
>       "mime_type": "image/jpeg"
>     }
>   }
> }
> ```

## Tipos de mensajes soportados

| Tipo | Campo `value.content` | Campos adicionales |
| - | - | - |
| `text` | `{ "body": "Texto del mensaje" }` | — |
| `image` | `{ "url": "...", "mime_type": "image/jpeg" }` | `caption` (opcional) |
| `video` | `{ "url": "...", "mime_type": "video/mp4" }` | `caption` (opcional) |
| `audio` | `{ "url": "...", "mime_type": "audio/mpeg" }` | — |
| `document` | `{ "url": "...", "mime_type": "application/pdf" }` | `filename` (opcional) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.