Need Help Building a WhatsApp Group Bot with n8n

Hi everyone,
I’m Mohamed, and I’m working on a small project to build a WhatsApp bot for a group using n8n. I’d love to get some help or advice from this awesome community! Here’s what I’m trying to do:

Goal: Create a self-hosted WhatsApp bot to manage a group.
Features I want:

  • Answer group questions using an AI model (e.g., a self-hosted Mistral or LLaMA).

  • Detect inappropriate behavior (like insults) and send private warnings to users.

  • Track warnings in a database and ban users after 3 strikes.

Tools I’m planning to use:

  • n8n for the workflow automation.

  • Evolution API for WhatsApp integration (self-hosted).

  • PostgreSQL (or any simple database) to store user warnings.

I’m aiming to keep everything open-source and self-hosted for full control. Has anyone here built something similar with n8n? I’d really appreciate any tips, example workflows, or advice on:

  • Connecting Evolution API with n8n.

  • Setting up the AI part for answering questions.

  • Handling the warning/ban logic in a workflow.

  • Any challenges I should watch out for.

Thanks in advance for any help or pointers! Excited to hear your thoughts.

Best,

@mkhaled - I am interested in this as well! have you been able to figure this out?

From Solomon:
"
Officially I don’t think it’s possible.

But the alternative is very good and it’s called EvolutionAPI.

EvolutionAPI is a self-hosted solution you have to install on your server. It is an unofficial API for WhatsApp Web.

The community node is also very well built and is the most downloaded n8n community node in the world.

If you are using n8n Cloud, I’m not sure if you already have access to community nodes, but you will soon.
:point_right: If my reply answers your question, please remember to mark it as a solution.
"

You can refer to: Whatsapp bot listening messages in group - #2 by n8n