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

# n8n WhatsApp Trigger: Start Workflows From Incoming Messages

> Use the Hypersender Trigger in n8n to start a workflow when a WhatsApp message or SMS arrives, with automatic webhook setup, and build a WhatsApp auto-reply.

The **Hypersender Trigger** starts a workflow when your instance sends an event, such as a new WhatsApp message or an incoming SMS.

## How it works

You don't touch the Hypersender dashboard:

1. When you **activate** the workflow, the node [creates a webhook](https://docs.hypersender.com/v2/api-reference/whatsapp/webhooks/create-webhook.md) on your instance with the workflow's URL and a random secret.
2. Hypersender sends each event with that secret in the `Authorization` header. The node rejects any request that doesn't have it.
3. When you **deactivate** the workflow, the node [deletes the webhook](https://docs.hypersender.com/v2/api-reference/whatsapp/webhooks/delete-webhook.md).

The webhook shows up in the dashboard as `n8n: <workflow name>` and counts toward your plan's webhook limit.

> [!WARNING]
>
> Hypersender must be able to reach your n8n, so use n8n Cloud or a self-hosted n8n with a public URL. An n8n on `localhost` won't receive events.

## Events

The list depends on the credential's instance type. The payloads are the same as regular webhooks: see [WhatsApp webhooks](https://docs.hypersender.com/v2/api-reference/whatsapp-webhooks/whatsapp-webhooks-introduction.md) and [SMS webhooks](https://docs.hypersender.com/v2/api-reference/sms-webhooks/sms-webhooks-introduction.md).

| WhatsApp | SMS |
| - | - |
| `message.any`: incoming and sent messages | `message.phone.received`: SMS received |
| `message.ack`: delivered or read | `message.phone.sent`, `message.phone.delivered` |
| `messages.reaction`, `message.revoked` | `message.send.failed`, `message.send.expired` |
| `poll.vote`, `presence.update` | `phone.heartbeat.online`, `phone.heartbeat.offline` |

**Each event you pick gets its own output**, so you can send new messages and delivery receipts down different branches without a Switch node.

**Ignore My Own Messages** (on by default) skips WhatsApp messages sent from your own number, so an auto-reply doesn't answer itself.

## Example: WhatsApp auto-reply

**1. Add the trigger**

Add a **Hypersender Trigger** with your WhatsApp credential and the event `message.any`.

**2. Add the reply**

Connect a **Hypersender** node: **WhatsApp Message → Send Text**. **Chat ID** already points at the sender, so only type the text, for example `Thanks, we got your message and will reply soon.`

**3. Activate**

Save and activate the workflow, then send your WhatsApp number a message from another phone.

To reply with AI instead, put an **AI Agent** between the two nodes and send its output as the text. The incoming text is in `{{ $json.data.payload.body }}`.


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