Disclosure: this workflow uses Wafly, our managed WhatsApp API. The template is free; the API, AI usage and n8n hosting are separate services/costs.
We published an inbound lead-triage workflow for self-hosted n8n. It filters group messages and echoes, keeps conversation memory per sender, classifies hot/warm/cold, replies and passes hot leads to a configured sales number.
Two implementation choices worth reviewing:
- A defensive JSON parser: malformed model output falls back to a warm classification and neutral reply instead of silently dropping the contact.
- Human handoff stays explicit. The classification is triage, not proof that someone will buy; thresholds must be adapted to the business.
Template and setup: Qualify inbound WhatsApp leads with Wafly and OpenAI GPT-4o-mini | n8n workflow template
Portuguese setup guide: Qualificar leads do WhatsApp com IA e n8n | Wafly
Requirements: self-hosted n8n, n8n-nodes-wafly, your own Wafly and AI credentials, and your own test numbers. This version does not run on n8n Cloud. It uses QR-connected, non-official WhatsApp, not Meta Cloud API; it does not remove restriction risks. Use opt-in/inbound conversations, not cold blasting.
What failure cases would you add to the parser and handoff logic before using this in your own workflow?