Library / Building Blocks & Utilities
Building Blocks & Utilities
Moderate WhatsApp groups, block link spam, and auto-welcome members with Wafly
When an API call/webhook arrives, it provides a reusable building block using Wafly.
What it does
[](https://wafly.io/signup?utm_source=n8n&utm_medium=workflow_template&utm_campaign=group_moderation&utm_content=workflow_preview) ## Protect WhatsApp groups with deduplication, allowlists and repeat-offender strikes > Community node - self-hosted n8n only. This template uses n8n-nodes-wafly, which cannot be installed on n8n Cloud. ### Who's it for Paid communities, customer groups and class cohorts where admins need more than a one-rule link filter. The workflow is designed for noisy webhook delivery and applies the same policy consistently across join requests, welcome events and group messages. ### What makes it production-oriented - Rejects malformed events and suppresses webhook retries for a configurable window. - Normalizes phone numbers and domains before comparing them. - Exempts admins and exact or subdomain matches from moderation. - Deletes disallowed links, explains the action and records time-bounded strikes. - Can remove repeat offenders after a configurable threshold; escalation is disabled by default for safety. - Keeps every policy value in one Config node. ### Safety model Start with removeRepeatOffenders = false. Verify the allowlist and admin list with real group events, inspect n8n executions, and only then enable automatic removal. Duplicate suppression and strikes use workflow static data, so test them with an active workflow rather than manual executions. ### Requirements Self-hosted n8n, n8n-nodes-wafly 1.5.5+, a Wafly account, and the connected number promoted to group admin.
The steps
- Wafly Group Events
- Config
- Validate and deduplicate event
- Process this event?
- Ignored duplicate or invalid event
- Which event is it?
- Approve join request
- Welcome the new member
- Detect link spam
- Moderate?
- Record time-bounded strike
- Delete blocked message
- Tell the group why
- Remove repeat offender?
17 steps in total.
Similar automations
AI Agents & AssistantsQualify inbound WhatsApp leads with Wafly and OpenAI GPT-4o-mini12 stepsContent Writing & GenerationClassify held WordPress comments with OpenAI and mark confident spam13 stepsLead Generation & EnrichmentSend Welcome WhatsApp Messages to New Vtiger Leads6 stepsAlerts & NotificationsWelcome New WhatsApp Group Members with Evolution API6 steps