Templates / Track retail layaway plans and payment reminders with gpt-6-luna and Google Sheets

Track retail layaway plans and payment reminders with gpt-6-luna and Google Sheets

Ready for 3.0

by Khairul Muhtadin ✓ · 0 views · created 2026-10-05 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (9)

Google SheetsGmailAI AgentOpenAI Chat Model

What it does

Layaway plans are easy to start and easy to lose track of, which is where the money quietly walks out of the store. This workflow logs each new plan to Google Sheets, emails the customer their payment schedule, chases due and overdue payments every morning, and has gpt-6-luna write the owner a monthly review of what is still owed. Last updated: October 2026. Quick Overview Three flows share one Google Sheets tracker. A webhook takes each new layaway plan, validates it, appends it to the "Plans" tab and emails the customer their schedule. Every morning at 08:00 it reads all open plans, finds payments due within three days and payments already overdue, reminds those customers and logs each alert to "Alerts". Overdue plans also roll into one escalation email to the store, and on the 1st at 09:00 gpt-6-luna drafts the owner's monthly review. How it works 1. "When Layaway Plan Created" receives the new plan on a POST webhook (path layaway-intake-0927) that your POS or a form can call. 2. "Normalize Plan" builds the record: planid as LAY-YYYYMMDD-1234, the customer name, email and phone, item, pricetotal, depositpaid, installmentamount, installmentstotal, intervaldays, paymentsmade, status, officeemail, createdat, balancedue and nextduedate. 3. "Validate Plan" checks that customername, item and nextduedate are filled in, otherwise "Email Reject Notice" tells the store office what was posted. 4. Valid plans are appended to the "Plans" tab in Google Sheets across 15 columns, from planid through createdat. 5. "Email Plan Confirmation" sends the customer the price, deposit, balance, next installment and due date, plus the payment counter and plan reference. 6. "Daily Payment Sweep" runs every day at 08:00, reads the "Plans" tab, and "Compute Payment State" works out daysuntildue for every row. 7. Each plan is tagged overdue, duesoon (0 to 3 days out) or ok, plus a needsreminder flag. COMPLETE or CANCELLED plans are skipped. 8. Overdue rows go to "Prepare Overdue Pack", then "Log Overdue Alert" appends the record to "Alerts" and "Email Overdue Reminder" emails the customer. 9. "Aggregate Office Escalations" folds that run's overdue plans into one body dated in Asia/Pontianak, and "Email Office Escalation" sends it as "Overdue layaway plans: <count" for the office to call. 10. Due-soon rows go to "Prepare Reminder Pack", then "Log Reminder Alert" appends the record to "Alerts" and "Email Payment Reminder" sends the reminder. 11. On the 1st at 09:00 "Monthly Plan Review" reads "Plans" again and "Compute Month Stats" reduces it to active plans, total balance, overdue count and value, due-soon count and the top 8 overdue customers. 12. "AI Write Review" passes those stats to gpt-6-luna through "Monthly Review Model", which drafts a plain text body under 180 words, and "Email Monthly Review" sends it to the store. Setup 1. Create a Google Sheets file with a "Plans" tab using these columns: planid, customername, customeremail, customerphone, item, pricetotal, depositpaid, balancedue, installmentamount, installmentstotal, intervaldays, nextduedate, paymentsmade, status, createdat. 2. Add an "Alerts" tab using these columns: alertid, planid, customername, item, alerttype, sentto, sentat, customeremail, officeemail. 3. Add credentials for Google Sheets OAuth2, Gmail OAuth2 and an OI chat model, then pick your spreadsheet in the Google Sheets nodes (Log Plan, Read Plans, Log Overdue Alert, Log Reminder Alert, Read Plans Monthly). 4. Point your POS or form at the webhook URL for path layaway-intake-0927, posting customername, customeremail, item, pricetotal, depositpaid, installmentamount and intervaldays. 5. Set the store email in the officeemail field of the payload, or change the fallback in "Normalize Plan". 6. Confirm both schedules match your timezone, daily at 08:00 and on the 1st at 09:00, then activate the workflow. 7. Optional: change the 3 day reminder window in "Compute Payment State" or the 30 day interval default in "Normalize Plan".

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.