Group automation
Moderate WhatsApp groups with n8n in South Africa
Use events, rules and n8n workflows to organise WhatsApp group moderation in South Africa with the Wafly API.
Direct answer
Group automation is best for deterministic tasks: welcome messages, rules, alerts and event classification. Start by notifying a moderator; delete or remove automatically only when the rule is unambiguous and the connected number is an administrator.
Group events can feed a workflow that classifies messages, alerts moderators and performs permitted actions. Automation should support clear rules, with human judgement for sensitive cases.
What you can automate
- Detect defined words, links or patterns
- Notify moderators with the right context
- Log incidents and decisions for review
Before you start
- The connected number is a group administrator
- A webhook for group events
- Administrator and allowed-domain lists
- A test group separate from the main community
A production-ready approach
Centralise the rules
Keep administrators, allowed domains and welcome text in one configuration node. Daily operation should not require editing several expressions.
Classify before acting
Use a Switch to separate joins, messages, participant changes and other events. Moderation actions should receive only the event type they expect.
Retain human review
Log the original event, matched rule and action. For ambiguous patterns, send context to moderators instead of acting automatically.
Minimum rule configuration
{
"adminPhones": ["27821234567"],
"allowedDomains": ["mycompany.co.za"],
"actionForUnknownLinks": "alert"
}Production checklist
- Test in a separate group
- Ignore administrator messages where appropriate
- Log the rule that triggered an action
- Do not use AI as the only removal decision
- Publish the rules for members
How to build the workflow
- Connect an administrator number and configure webhooks.
- Define explicit rules, exceptions and severity levels in n8n.
- Test in a controlled group before enabling automatic actions.
QR connection, not the official Meta API. Use opt-in contacts and increase volume gradually.
Frequently asked questions
Can the API work with groups?
Yes. Wafly exposes group resources and related events; check the documentation for available endpoints.
Should messages be removed automatically?
Start with alerts and human review. Automate an action only when both the rule and context are unambiguous.
Should members know about the automation?
It is good practice to explain the group rules and how moderation data is used.