Agent setup guide
NetSuite Overdue Invoice Follow-Up
Every weekday, your open NetSuite invoices past their due date get a polite reminder email with the invoice number, due date and amount from NetSuite, after your approval.
What it does
Every weekday, your open NetSuite invoices past their due date get a polite reminder email with the invoice number, due date and amount from NetSuite, after your approval.
- Every weekday, a SuiteQL query lists your open invoices past their due date with the customer's name and email.
- AI writes one polite reminder text without any amounts; you approve it once per run.
- Each customer gets their own email from Gmail with the invoice number, due date and amount due copied from NetSuite in code.
- Who was emailed and skipped is counted in code.
What it needs
- A paid plan (agents run live on paid plans).
- An AI provider key (Settings → AI Providers).
- NetSuite (token-based authentication) and Gmail, connected in Settings → Integrations.
What it doesn't do
- It never changes invoices or records payments in NetSuite.
- Customers without a valid email in NetSuite are skipped.
- Up to 100 invoices per run; adjust the SuiteQL for your account (e.g. a subsidiary filter).
Availability and plans
Available
Its workflow is built and tested, and every app it needs is live. You can get it and set it up now.
Included free on the Enterprise plan; on other paid plans it's a one-time purchase per workspace (the price is on the Agents page). The Agents page in the app always shows its current status.
Before you start
- A paid plan: agents run live, and the Free plan only runs Dry Runs.
- An AI provider key (OpenAI, Anthropic, Google and more) in Settings → AI Providers. AI usage is billed by your provider.
- These apps, connected in Settings → Integrations: NetSuite and Gmail.
- Nothing to send: the agent runs on a schedule.
- About 15 minutes.
Set it up step by step
Get the agent first (buy it, or it's already yours when your plan includes it), then in Agents → My agents press “Set up this agent”. That creates the agent's workflow in your workspace (it counts towards your plan's workflow limit) and opens the canvas with a setup checklist above it. Each item links to the exact place to go and ticks itself off when it's done.
1. Connect your AI provider
The AI steps run on your own key (OpenAI, Anthropic, Google and more). Add one in Settings → AI Providers.
2. Connect NetSuite
Connect NetSuite with token-based authentication: account ID, the integration record's consumer key / secret and an access token (Settings → Integrations → NetSuite lists the features and role permissions to turn on).
3. Connect Gmail
Connect the Gmail account the reminders go out from (Settings → Integrations → Gmail).
4. Pick the NetSuite account
Open “Find overdue invoices” and pick your NetSuite connection. Edit the SuiteQL if your invoices need another filter (e.g. one subsidiary).
| Setting | What to enter | In step |
|---|---|---|
| NetSuite account | Your NetSuite connection (a role that can view invoices and customers). Pick your connected NetSuite account. | “Find overdue invoices” |
5. Describe your reminders
Open “Write the reminder” and replace the placeholder.
| Setting | What to enter | In step |
|---|---|---|
| How customers pay, your tone | Replace the placeholder with how customers can pay, who to contact, your tone and your sign-off. It starts as “[YOUR BUSINESS, YOUR TONE WITH CUSTOMERS, HOW THEY CAN PAY (E.G. THE PAYMENT LINK OR BANK DETAILS ON THE INVOICE), WHO TO CONTACT WITH QUESTIONS AND HOW YOU SIGN EMAILS]” until you replace it. | “Write the reminder” |
6. Pick the Gmail account
Open “Email the customer” and pick the Gmail account.
| Setting | What to enter | In step |
|---|---|---|
| Gmail account | The Gmail or Google Workspace account the reminders go out from. Pick your connected Gmail account. | “Email the customer” |
7. Test it with Dry Run
Press Dry Run: the agent runs on sample data with no messages sent and nothing written to your apps.
8. Switch the trigger on
Open the trigger, set your time zone and switch the schedule on. It runs every weekday at 9:00.
How it works
The agent is a normal workflow with 16 steps (1 AI step, with a person approving in Reviews). You can open, edit and monitor it like any other workflow.
- Weekdays at 9:00 — Runs on a schedule (cron 0 9 * * 1-5, UTC — change it in the trigger's settings). Runs every weekday morning. Set your time zone on the trigger.
- Find overdue invoices — NetSuite: Run a SuiteQL query. SuiteQL lists your open invoices past their due date with the customer's company name and email, straight from NetSuite (up to 100).
- Anything overdue? — Decision: picks the branch to follow. No overdue invoices: nothing is drafted.
- Nothing overdue — Kept in the run history. Branch: None. No open invoice is past its due date.
- Write the reminder — AI step (runs on your AI provider key). Branch: Overdue. AI writes one short, polite reminder for all overdue invoices. The invoice number, due date and amount are added for each customer in code, from NetSuite.
- Approve the reminders — A person approves or rejects it in Reviews (the run waits). The reminder waits in Reviews with the list of overdue invoices: edit it, approve to email each customer, or reject.
- Check the reminder — Step. Branch: Approved. In code: a subject and body, under the length limit and no leftover placeholders.
- Passed the checks? — Decision: picks the branch to follow. Passed: one email per invoice. Otherwise nothing is sent.
- Held: nothing sent — Kept in the run history. Branch: Held. The reminder was blank, too long or had a placeholder.
- Each overdue invoice — Repeats the steps below for each item (up to 100 per run). Branch: Send. Sends one email per overdue invoice (up to 100).
- [For each item — “Each overdue invoice”] Valid email? — Step. In code: the customer on the invoice has one valid email address.
- [For each item — “Each overdue invoice”] Email them? — Decision: picks the branch to follow. No valid email on the customer: skipped (listed in the count).
- [For each item — “Each overdue invoice”] Skipped: no valid email — Kept in the run history. Branch: Skip. This customer has no valid email in NetSuite.
- [For each item — “Each overdue invoice”] Email the customer — Gmail: Send an email. Branch: Valid. Sends the approved reminder from your Gmail with the invoice number, due date and amount due copied from NetSuite.
- Count what was sent — Step. In code: which customers were emailed and which were skipped.
- Reminders sent — Kept in the run history. The run history keeps the count and each email.
Test it with Dry Run
Press Dry Run in the canvas. The agent runs on the sample data stored on its trigger (the “Sample data for Dry Run” box), so you can check every step's output before anything is live.
- Nothing is sent or written: app actions, emails and Slack posts are simulated, and AI steps don't call your AI provider.
- Approval steps use the Dry Run decision you pick in the step's settings (approved, rejected or timeout), so you can try each branch.
- For-each loops repeat only the first 3 items.
Go live
- Open the trigger, set your time zone and switch the schedule on. It runs every weekday at 9:00.
- Scheduled runs start only once the schedule is activated, and can't repeat faster than your plan's minimum interval.
- The setup checklist adds a “paid plan” item before activation: live runs need a paid plan (the Free plan only runs Dry Runs).
- When every checklist item is done and the trigger is on, the checklist says “Live — this agent is running”. Follow its runs in the workflow's History tab and in Analytics → Agents.
Questions
Can the AI get an amount wrong?
The AI never writes amounts: the invoice number, due date and amount due are copied from NetSuite into each email in code.
Will a customer get a reminder every day?
Each weekday run lists what is overdue that day, and you approve the reminders each time. Reject a run, or switch the schedule to weekly, if you prefer fewer reminders.
Which NetSuite permissions does it need?
The token's role needs view access to transactions and customers (for SuiteQL), plus Log in using Access Tokens and REST Web Services.
Troubleshooting
- “No AI provider connected” or a rejected key: connect or fix the key in Settings → AI Providers, then press Test there.
- A checklist item stays unticked: the setting is still empty or still contains its placeholder text. Open the step from the checklist and fill it in.
- An app step fails with “Needs reconnect”: the account's access was revoked or expired. Reconnect it in Settings → Integrations.
- It didn't run at the expected time: the schedule must be activated, and its time is in the trigger's timezone.
- A run shows as paused: it's waiting for someone in Reviews to approve or reject it.
- A step failed: open the run in History and check that step in the Trace tab for the error and what it received.
Generated from the agent's own workflow, so it always matches what the agent does. Last updated .