Agent setup guide
ServiceM8 Unpaid Job Follow-up
Every weekday, completed ServiceM8 jobs still not paid in full after 7+ days, oldest first, with who to chase first.
What it does
Every weekday, completed ServiceM8 jobs still not paid in full after 7+ days, oldest first, with who to chase first.
- Every weekday, reads completed ServiceM8 jobs that aren't paid in full.
- Keeps in code the jobs completed 7+ days ago and lists the 25 oldest with number, total and days waiting.
- AI suggests who to chase first from your collection routine.
- Emails the list to you; no client is contacted.
- Dates are worked out in code, never by the AI: days until or since each date, the window and business days are computed in your workflow's time zone, and records outside the window are skipped before the AI sees them.
What it needs
- A paid plan (agents run live on paid plans).
- An AI provider key (Settings → AI Providers).
- ServiceM8, connected with a full-access API key (Settings → API Keys).
What it doesn't do
- It never contacts clients or changes jobs.
- Up to 200 unpaid jobs are read per run (most recently changed first).
- It reads ServiceM8's “paid in full” flag, not your accounting software.
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: ServiceM8.
- Nothing to send: the agent runs on a schedule.
- About 5 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 ServiceM8
Connect ServiceM8 with an API key (Settings → Integrations → ServiceM8).
3. Pick your ServiceM8 account
Open “Read unpaid completed jobs” and pick your ServiceM8 connection.
| Setting | What to enter | In step |
|---|---|---|
| ServiceM8 account | The ServiceM8 connection whose jobs are checked. Pick your connected ServiceM8 account. | “Read unpaid completed jobs” |
4. Your collection routine
Open “Suggest who to chase first” and replace the placeholder.
| Setting | What to enter | In step |
|---|---|---|
| Your collection routine | Replace the placeholder with your payment terms and how the office chases unpaid jobs. It starts as “[YOUR BUSINESS, YOUR PAYMENT TERMS AND HOW THE OFFICE CHASES UNPAID JOBS (E.G. CALL AFTER 7 DAYS, OWNER CALLS BIG ONES)]” until you replace it. | “Suggest who to chase first” |
5. Where to send it
Open “Email the list” and enter the email address.
| Setting | What to enter | In step |
|---|---|---|
| Send the list to | You or the office. Replace the example address. It starts as “office@your-business.example” until you replace it. | “Email the list” |
6. Test it with Dry Run
Press Dry Run: the agent runs on sample data with no messages sent and nothing written to your apps.
7. Switch the trigger on
Open the trigger, set your time zone and switch the schedule on. It runs every weekday at 8:00.
How it works
The agent is a normal workflow with 12 steps (1 AI step). You can open, edit and monitor it like any other workflow.
- Weekdays at 8:00 — Runs on a schedule (cron 0 8 * * 1-5, UTC — change it in the trigger's settings). Runs Monday to Friday. Set your time zone on the trigger.
- Read unpaid completed jobs — ServiceM8: List jobs. Reads up to 200 completed ServiceM8 jobs that aren't paid in full, most recently changed first.
- Completed 7+ days ago — Step. In code, not AI: keeps the jobs completed 7 days ago or more (change the number in this step's settings).
- The 25 oldest — Step. In code: the 25 jobs completed the longest ago.
- Anything unpaid? — Decision: picks the branch to follow. Nothing unpaid: the run ends quietly.
- All paid — Kept in the run history. Branch: All paid. No completed job has been waiting 7+ days for payment.
- Each unpaid job — Repeats the steps below for each item (up to 25 per run). Branch: Unpaid ones. Lists each one with its number, invoice total and days since completion (computed in code).
- [For each item — “Each unpaid job”] Listed — Kept in the run history. Nothing is changed in ServiceM8.
- List the unpaid jobs — Step. In code: one line per job with its number, total and days since completion.
- Suggest who to chase first — AI step (runs on your AI provider key). AI reads the list and your collection routine and suggests the order to call, without typing numbers.
- Email the list — Sends an email from your workspace's sender. Emails the list (from code) and the suggested order to the office.
- List sent — Kept in the run history. The run history keeps every list.
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.
- 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 8: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
How does it know a job is unpaid?
From ServiceM8's own “paid in full” flag on completed jobs, read in code. The AI never decides what's paid.
Does it email my clients?
No. The list goes only to you; you decide who to call.
Can I change the 7 days?
Yes: open “Completed 7+ days ago” and change the number.
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 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 .