Перейти к содержанию
НОВОЕМаркетплейс и ваша команда: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / Документы, PDF и OCR

Документы, 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.

Что делает

## 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.

Шаги

  1. When Message Received (WAHA)
  2. Normalize WAHA Payload
  3. IF Has Photo (Receipt)?
  4. IF Assignment Format (contains ':')?
  5. IF Payment Confirmation?
  6. Download Receipt Media (WAHA)
  7. Save Session (temp OCR)
  8. Get Session (saved OCR)
  9. Parse Assignment & Calculate Split
  10. Compose Final Message
  11. Find Contact (waNumber)
  12. Log Bill to Sheet
  13. Cron - Check Reminders (Daily 7PM)
  14. Get Unpaid Bills

Всего шагов: 35.

Похожие автоматизации