Library / Documents, PDF & OCR
Documents, PDF & OCR
Split and track WhatsApp restaurant bills with WAHA, Gemini and Sheets
When something happens in a connected app, it reads and extracts data from documents with Google Gemini and OpenRouter using WAHA, Waha, Google Sheets.
What it does
## Bill Roaster - WhatsApp (WAHA) ### How it works This workflow manages shared bills over WhatsApp using WAHA. It accepts whitelisted WhatsApp messages, OCRs receipt photos with Gemini, stores the extracted receipt context, then lets users assign splits by message and sends generated payment requests to the relevant contacts while logging bills in Google Sheets. It also handles payment confirmations by matching WhatsApp senders to bill rows and updating paid status, and runs a daily reminder job for unpaid bills. ### Setup steps - Configure WAHA credentials, session details, and the webhook/trigger so incoming WhatsApp messages and outgoing replies work correctly. - Set up Google Sheets credentials and create/configure the expected sheets for contacts, temporary OCR sessions, bill logs, unpaid bill lookups, and reminder metadata. - Configure Gemini credentials for receipt/document analysis and OpenRouter credentials for the LLM chains that generate bill and reminder text. - Update the whitelist logic with allowed WhatsApp numbers and verify the Config/Config1 nodes have the correct currency code and symbol. - Check the scheduled reminder trigger timezone and daily run time, then test the receipt, assignment, payment confirmation, and reminder paths end to end. ### Customization You can adjust the split-parsing code, LLM prompts, reminder frequency/anti-spam rules, currency settings, whitelist, and Google Sheets schema to match your household or team billing process.
The steps
- When Message Received (WAHA)
- Normalize WAHA Payload
- IF Has Photo (Receipt)?
- IF Assignment Format (contains ':')?
- IF Payment Confirmation?
- Download Receipt Media (WAHA)
- Save Session (temp OCR)
- Get Session (saved OCR)
- Parse Assignment & Calculate Split
- Compose Final Message
- Find Contact (waNumber)
- Log Bill to Sheet
- Cron - Check Reminders (Daily 7PM)
- Get Unpaid Bills
35 steps in total.
Similar automations
Reports, Analytics & DashboardsCreate Weekly Animal Rights Briefings from U.S. House Bills18 stepsChatbots & Messaging BotsAnswer Restaurant Questions and Book Tables on WhatsApp8 stepsChatbots & Messaging BotsRestaurant Ordering Assistant on WhatsApp with Gemini RAG18 stepsLead Generation & EnrichmentMarket and Book Restaurant Orders by VAPI Voice9 steps