Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(n8n): fix message.received payload field (id, not messageId) + restore trailing newline

rmyndharisc67cd2b8ed1f
diff --git a/docs/22-n8n-integration.md b/docs/22-n8n-integration.md
index 472e62656..dc86bc11a 100644
--- a/docs/22-n8n-integration.md
+++ b/docs/22-n8n-integration.md
@@ -95,7 +95,7 @@ Start workflows when WhatsApp events occur.
"timestamp": "2024-01-15T10:30:00Z",
"sessionId": "default",
"data": {
- "messageId": "3EB0F5A2B4C...",
+ "id": "3EB0F5A2B4C...",
"chatId": "[email protected]",
"from": "[email protected]",
"body": "Hello!",
@@ -299,4 +299,4 @@ docker run -it --rm \
[← 21 - Glossary](./21-glossary.md) · [Documentation Index](./README.md)
-</div>
\ No newline at end of file
+</div>
diff --git a/docs/examples/n8n-appointment-booking.md b/docs/examples/n8n-appointment-booking.md
index 5b44f2df7..f1be6fd6a 100644
--- a/docs/examples/n8n-appointment-booking.md
+++ b/docs/examples/n8n-appointment-booking.md
@@ -130,7 +130,7 @@ Reply with 1 or 2 to confirm one of these options.
## Operational Notes
- Store booking state outside WhatsApp, for example in your scheduling system, CRM, or database.
-- Add an idempotency key based on the incoming `messageId` to avoid duplicate bookings if a workflow is retried.
+- Add an idempotency key based on the incoming `id` (the message ID in the `message.received` payload) to avoid duplicate bookings if a workflow is retried.
- Confirm the booking only after the external system accepts the slot.
- Add a fallback path for unsupported messages or missing required fields.
- Respect applicable messaging rules and avoid unsolicited or high-volume messages.