Loading image 1...
n8n Automation That Summarises WhatsApp Group Conversations Nightly, Released Open Source

n8n Automation That Summarises WhatsApp Group Conversations Nightly, Released Open Source
An in-house Javapixa tool that was subsequently released as open source. The n8n automation collects a WhatsApp group's messages through the day via the go-whatsapp-web-multidevice gateway, stores them in PostgreSQL, then each night has Google Gemini produce a structured summary of topics discussed, action items and statistics, and posts it back to a nominated WhatsApp number. One workflow handles many groups at once.
Summarising a conversation with a language model is easy to run and hard to trust. The riskiest part is the numbers: message counts and who was active are exactly what a model is most likely to invent, and one wrong figure discredits the whole summary. The second problem is resilience, since one failing group must not take the other groups' summaries down with it.
Statistics are computed from the database rather than asked of the model, so message counts and active members are always exact. Gemini is constrained by a JSON schema to return `topics[]` and `action_items[]`, and the message is rendered deterministically instead of parsed out of free text. Ingestion and the nightly summary are decoupled through PostgreSQL tables, with `message_id` unique so webhook retries never double-count. Each group is processed in isolation, and a dedicated error workflow reports failures over WhatsApp.
Project Showcase
Loading image 1...
Project visualization and interface design
Workflow Orchestration
Language Model
Database
WhatsApp Gateway
Message counts and active members are computed by query rather than asked of the model, so the figures can be trusted.
Gemini is forced to return topics[] and action_items[] through a JSON schema, and the message is rendered locally, so the format is identical every night.
One workflow summarises any number of groups, and adding a group is done through a form rather than by editing the workflow.
message_id is unique, so a repeated webhook delivery never counts the same message twice.
A failure on one group does not halt the rest, and an Error Trigger workflow sends an alert over WhatsApp.
The whole thing is exported n8n workflow JSON imported into your own instance, so there is no application code and no build step.
A detailed look at how we brought this project from concept to reality through our proven methodology.
Separated real-time ingestion from the nightly summary, then designed the PostgreSQL tables that connect the two.
Built the summary workflow with a JSON schema for Gemini and query-computed statistics, so output stays consistent and the numbers stay exact.
Added per-group fault isolation, the alert workflow and the Quick Setup form, then wrote the documentation and released it as open source.
05 Outcomes delivered
Related Services
These are the Javapixa services behind this project.