Back to Templates
This workflow systematically ensures you never miss sending an invoice reminder:
InvoiceID
, ClientName
, ClientEmail
, Amount
, DueDate
, and Status
.DueDate
with the current date.Follow these steps carefully to get your "Automated Invoice Reminder" workflow up and running:
Import Workflow JSON:
Configure Daily Schedule Trigger:
Configure Read Invoice Data (Google Sheets):
YOUR_GOOGLE_SHEETS_CREDENTIAL_ID
with the actual ID or name of your credential from your n8n credentials.YOUR_GOOGLE_SHEET_ID
with the actual ID of your Google Sheet where invoice data is stored.Invoices!A:F
) correctly covers all your invoice data. Crucially, ensure your Google Sheet has columns with exact names: InvoiceID
, ClientName
, ClientEmail
, Amount
, DueDate
(in a parsable date format like YYYY-MM-DD), and Status
(e.g., 'Pending', 'Paid').Configure Filter & Prepare Reminders (Function):
functionCode
inside the node. Adjust the variable names (e.g., invoice.InvoiceID
, invoice.DueDate
) if your Google Sheet uses different column headers than the defaults assumed in the code.remindBeforeDays
(e.g., 3 days before) and remindAfterDays
(e.g., 7 days after) to adjust how many days before/after the due date reminders are sent.subjectPrefix
and bodyText
within the code to customize the reminder message for 'due soon' and 'overdue' invoices.Configure Send Invoice Reminder (Gmail):
YOUR_GMAIL_CREDENTIAL_ID
with the actual ID or name of your credential from your n8n credentials.[email protected]
with the email address you want the reminders to be sent from.={{ $json.subject }}
and ={{ $json.body }}
). You can further customize the HTML email template here if needed.Review and Activate:
YOUR_...
) are replaced and settings are correct.Troubleshooting Tips: 💡
Function
node is the place to debug. Use the 'Test Workflow' feature to inspect the data flowing into and out of this node.