Send dunning emails from Gmail based on invoice status
ProductivitySales EnablementArtificial IntelligenceWorkatoDocument/FileRecipe Tools
What it does
When a new email arrives in Gmail, this automation classifies it as a dunning invoice using AI. It then searches Google Sheets for payment status and sends the appropriate reply.
Who it's for
Finance teams who respond to dunning emails with status-specific replies without manual sorting.
How teams use this
Respond to dunning emails automatically
Classify incoming dunning invoices and reply with a paid or unpaid status message without opening the sheet or composing manually. The team handles repetitive responses in one workflow.
Route dunning emails to Slack
Add a Slack notification step after the classification so the team sees classified dunning emails in one channel. Include the payment status in the notification message.
Filter only unpaid invoices for follow-up
Set a condition to send a reply only when the payment status is Booked - Unpaid, so paid invoices do not receive a response. This prevents unnecessary email volume.
How it works
- Monitor incoming emails. A new email arrives in Gmail from the P2P Emails folder, triggering this automation to begin processing.
- Classify the email type. Open Ai Utility analyzes the email text and categorizes it as a dunning invoice or another type based on predefined categories.
- Look up the payment status. Search Google Sheets for a matching row to find whether the invoice payment status is Paid or Booked - Unpaid.
- Send the matching reply. Gmail sends an email reply with the appropriate message based on the payment status found in the sheet.