> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# On New Message

> A trigger that activates workflows when a new WhatsApp message is received

A trigger that activates workflows when a new WhatsApp message is received

| | |
| - | - |
| **App** | WhatsApp |
| **Operation ID** | `whatsapp_on_new_message` |
| **Type** | Trigger |
| **Connection** | `whatsapp` (required) |
| **Credits per run** | 1 |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `message` | object | No | - | The message event data that triggered this workflow. This field is automatically populated when a new WhatsApp message is received and contains information like: - message: The actual message text - from\_number: Sender's phone number - contact\_name: Sender's WhatsApp profile name - message\_type: Type of message (text, image, etc.) - today\_date: Current date when the message was received  This data can be referenced in downstream nodes using \{\{nodeId\_\_data.message}}, \{\{nodeId\_\_data.from\_number}}, etc. |

## Output

**Type**: `Dict`

Returns the incoming WhatsApp message details.

**Fields**: `message`, `from_number`, `contact_name`, `message_type`, `today_date`


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