WhatsApp group message: alert the team and answer "Received"
When someone posts in a WhatsApp group, your team gets the message in Slack or email, and the group gets a short "Received" that quotes it.
What it does
- Keeps messages from a group, not written by you, with text.
- Posts
[Group name] Sender: textto your alert channel. - Replies in the group with
Received: "the first 80 characters of the message". - Tells a person if that reply did not go out.
The reply quotes the message for a reason. WhatSync refuses the same text to the same group twice within an hour, so a bare "Received" would only go out for the first message of each hour. With the quote, every reply is different, and people see which message was picked up.
Set it up
New to n8n with WhatSync? Do the one-time setup in WhatsApp workflows in n8n first: the API key credential, importing, the webhook and the signing secret. The API key needs Manage groups as well as Read and Send, and the group must be ticked under What's saved.
- Download JSON
n8n: safe send (sub-workflow)
Import and publish this first. Every workflow that sends uses it.
- Download JSON
n8n: group message alert
Built-in nodes only.
- Download JSON
n8n: group message alert (WhatSync node)
Starts from the WhatSync Trigger.
- Import WhatSync: safe send, pick your WhatSync API key credential in it and publish it.
- Import this workflow. In the node that sends, pick WhatSync: safe send from the list.
- Pick your credentials in the nodes with a warning sign and fill in Settings.
- Publish. Copy the Webhook node's Production URL.
- In WhatSync Developers add a webhook with that URL and the event
message.received. Paste its signing secret into Verify signature.
| Settings field | What to put there |
|---|---|
groupId | One group's id, ending in @g.us, from list_groups. Empty means every saved group. |
replyText | The word before the quote. Empty posts nothing in the group and only alerts the team. |
alertUrl | A Slack incoming webhook address works as is: the workflow posts {"text": "..."} to it. For email or Telegram, replace the alert node with that node and map the same text. |
Good to know
- Your own messages arrive as
message.sent, so the workflow's reply never triggers it again. - A personal number sends 5 messages a minute. In a busy group, safe send waits for the limit and then sends, so a "Received" can arrive a minute late.
- Photos and voice notes without text are skipped. Remove the "text is not empty" condition to alert on them too.
- Groups exist on personal WhatsApp only. The Business API has no groups.
Tested on n8n 2.49: a group message produced one alert and one quoted reply, a second message in the same hour got its own reply, one-to-one messages and other groups were ignored, and an empty replyText posted nothing in the group.