# Split and track WhatsApp restaurant bills with WAHA, Gemini and Sheets

> Quick overview This workflow runs a WhatsApp bill-splitting bot using WAHA, Google Gemini for receipt OCR, OpenRouter for funny bill and reminder messages, and Google Sheets to track sessions, contacts, bills, payment status, and automated daily reminders. How it works 1. Receives an incoming WhatsApp message via a WAHA webhook and ignores messages from numbers that are not on the whitelist. 2. If the message includes receipt media, it downloads the image via WAHA, extracts items/tax/total with Google Gemini, asks the group to reply with “Name: item1, item2”, and stores the OCR result in a Google Sheets Session tab. 3. If a follow-up message matches the “Name: …” assignment format, it loads the latest saved OCR session and contacts from Google Sheets, matches item keywords to receipt items, and calculates each person’s share including proportional tax. 4. For each person, it uses OpenRouter to generate a short humorous bill message, sends it to their WhatsApp number via WAHA, and logs 

- **Domain**: `n8n-workflow-20449.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/20449
- Page (HTML): https://agenstry.com/agents/n8n-workflow-20449.n8n.io
- Documentation: https://n8n.io/workflows/20449
