Invoice Automation
The invoice workflow runs automatically each morning and processes eligible HubSpot deals based on their stage, doctor, and appointment type.
The system:
- Retrieves qualifying deals from HubSpot
- Collects patient and appointment information
- Identifies the appointment type
- Calculates the correct invoice amount
- Selects the appropriate invoice configuration
- Generates a Swiss QR payment code
- Creates the invoice PDF through PDFMonkey
- Uploads the invoice and QR code to Google Drive
- Generates shareable document links
- Records invoice details in Google Sheets
- Maintains unique invoice numbering



