LemuAIDocs

Recipes · 2 min read · For everyone

EMI or payment reminder from a Google Sheet

Keep due dates in a Google Sheet, remind each customer on WhatsApp 3 days before the due date, call those who don't respond, and write the result back to the sheet.

Open in ChatGPTOpen in ClaudeMarkdown

At the end you'll have reminders going out automatically 3 days before each customer's EMI or payment due date: a WhatsApp message first, a call from an AI agent if they don't react, and the outcome written back to your Google Sheet.

There are two ways to keep due dates in LemuAI. This recipe uses custom records (one record per loan or invoice, with its due date), because a customer can have several. The sheet feeds the records; journeys run on the record's date.

Before you start#

  • A Google Sheet with one row per loan or invoice, with columns like: loan_id, phone, name, emi_amount, due_date (as 2026-12-05 or 05/12/2026), status.
  • Google Sheets connected under Settings → Integrations (see Google Sheets).
  • WhatsApp connected with an approved Utility template, for example: "Hi {{1}}, your EMI of ₹{{2}} is due on {{3}}. Reply PAID if you've already paid."
  • For the call: a voice agent like the one in Agent Node (payment reminder), telephony and Voice minutes.

Steps#

  1. Create the record type

    Audience → Custom records → New record type named Loans, from the spreadsheet: fields loan_id (the identifier), emi_amount (Number), due_date (Date), status (Choice: active, paid, overdue). The owner is matched by phone. See Custom Records.

  2. Load the rows

    Import the sheet (or a CSV export of it) into Loans, mapping each column. Re-import when the sheet changes, or send changes with the records API.

  3. Create the journey

    Engage → Journeys → New Journey, trigger Record date: record type Loans, date field due_date, 3 days before, start at 10:00 in Asia/Kolkata, with the filter status is active. Each record starts one run per due date; changing the date sets it up again.

  4. WhatsApp reminder

    Add a WhatsApp step with the template. {{1}} = first name, {{2}} = {{context.object.emi_amount}}, {{3}} = {{context.object.due_date}}.

  5. Wait for a reply

    Add Wait for reply (24 hours).

    • text → AI step in Classify mode with labels paid, will_pay, problem. On paid: Update record status = paid, then End.
    • timeout → next step.
  6. Call

    Add a Call step with your payment reminder agent (pass emi_amount and due_date; bring back promised_date).

  7. Write back to the sheet

    Add Update Google Sheet: columns last_reminder = now(), promised_date = {{context.promised_date}}. The row is found by the contact's phone.

  8. Go live

    Set Allowed hours (calls 10:00 to 19:00 are typical for collections), then Go live.

Check it worked#

  1. Add a test row with your phone and a due date 3 days from today, and load it.
  2. At the start time (10:00) on the day 3 days before the due date, you get the WhatsApp message. Record date journeys check every 15 minutes after the start time; a record added later that day still starts.
  3. Don't reply: after 24 hours your phone rings. Promise a date.
  4. The sheet row now has last_reminder and promised_date, and Journey Runs shows each step.

Common problems#

What you seeFix
Import errors like "isn't a date (YYYY-MM-DD or DD/MM/YYYY)"Fix the date format in the sheet. See Contacts and data
"No contact {phone} in this organization"The phone is missing or wrong in the row
Update Google Sheet failsThe column headers must already exist in the sheet, spelled exactly
Calls go out at nightSet Allowed hours for calls in Workflow Settings