Agent setup guide
ServiceM8 Job-Completed Review Request
When a ServiceM8 job is completed, the client's contact gets a thank-you with your review link after you approve it.
What it does
When a ServiceM8 job is completed, the client's contact gets a thank-you with your review link after you approve it.
- Starts when a ServiceM8 job moves to Completed.
- Picks the client's primary contact with an email, in code.
- AI writes a short thank-you with your review link, or flags jobs whose notes show a problem.
- Every email waits for your approval; code checks the recipient and placeholders, then Gmail sends it and the job diary gets a note.
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).
- Gmail, connected in Settings → Integrations.
What it doesn't do
- It never offers anything in return for a review.
- It doesn't text clients; email only.
- Not instant: ServiceM8 is checked every 5 minutes.
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 and Gmail.
- The app it watches, connected in Settings → Integrations (the agent starts from an app event).
- About 6 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. Connect Gmail
Connect the Gmail account the email is sent from.
4. Pick your ServiceM8 account
Open the trigger and pick your ServiceM8 connection (the status is already set to Completed), and the same one on “Find the client's contact”.
| Setting | What to enter | In step |
|---|---|---|
| ServiceM8 account | Your ServiceM8 connection. Pick your connected ServiceM8 account. | “ServiceM8 job completed” |
| ServiceM8 account for contacts | The same ServiceM8 connection, used to read the client's contacts. Pick your connected ServiceM8 account. | “Find the client's contact” |
5. Your review link
Open “Write the thank-you” and replace the placeholder.
| Setting | What to enter | In step |
|---|---|---|
| Your review link and tone | Replace the placeholder with your business name, review link, tone and sign-off. It starts as “[YOUR BUSINESS NAME, YOUR REVIEW LINK (E.G. YOUR GOOGLE REVIEW LINK), YOUR TONE AND YOUR SIGN-OFF. NO DISCOUNTS OR GIFTS FOR REVIEWS]” until you replace it. | “Write the thank-you” |
6. Pick Gmail and ServiceM8
Pick the Gmail account on “Send it from Gmail” and your ServiceM8 connection on “Note it in the job diary”.
| Setting | What to enter | In step |
|---|---|---|
| Gmail account | The Gmail account the email is sent from. Pick your connected Gmail account. | “Send it from Gmail” |
| ServiceM8 account for the note | The same ServiceM8 connection, used to note the request in the job diary. Pick your connected ServiceM8 account. | “Note it in the job diary” |
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 and click “Activate app trigger”: jobs completed from then on start the agent.
How it works
The agent is a normal workflow with 14 steps (1 AI step, with a person approving in Reviews). You can open, edit and monitor it like any other workflow.
- ServiceM8 job completed — Starts on “Job status changed” in ServiceM8 (an app event). Starts when a ServiceM8 job moves to Completed (checked every 5 minutes).
- Find the client's contact — ServiceM8: List a client's contacts. Reads the client's contacts in ServiceM8; the primary contact with an email comes first (in code).
- Has an email? — Step. In code: the client's best contact has one valid email address.
- Ask for a review? — Decision: picks the branch to follow. No contact email: nothing is sent.
- Skipped: no email — Kept in the run history. Branch: No email. The client has no contact with an email address in ServiceM8.
- Write the thank-you — AI step (runs on your AI provider key). Branch: Ask. AI writes a short thank-you with your review link, or flags the job when its notes show a problem. Nothing is sent before your approval.
- Approve the email — A person approves or rejects it in Reviews (the run waits). The email waits in Reviews: edit it, approve to send it from your Gmail, or reject to send nothing.
- Not approved — Kept in the run history. Branch: Rejected. Rejected: nothing was sent.
- Check before sending — Step. Branch: Approved. In code: the recipient is the client contact's own email, not flagged to skip, a subject and body, and no leftover placeholders.
- Passed the checks? — Decision: picks the branch to follow. Passed: the email is sent. Otherwise nothing is sent.
- Held: nothing sent — Kept in the run history. Branch: Held. The email failed a check (recipient, flagged job, blank text or a placeholder).
- Send it from Gmail — Gmail: Send an email. Branch: Send. Sends the approved email from your Gmail.
- Note it in the job diary — ServiceM8: Add a note to a job. Adds a note to the ServiceM8 job diary that the review request went out.
- Sent — Kept in the run history. The run history keeps the job and the 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. The sample has the same shape as a real event from the app.
Sample data fields
uuid, job_number, status, company_uuid, job_address, job_description, work_done_description, total_invoice_amount, payment_received, completion_date, edit_date, url, job.
- 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.
Go live
- Open the trigger and click “Activate app trigger”: jobs completed from then on start the agent.
- Activating the app trigger needs the trigger's connected account. The first check only remembers what's already there, so older items don't start runs; the same item never starts two runs.
- 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
Is the email sent automatically?
No. Every email waits for your approval in Reviews.
Who does it go to?
The client's primary contact with an email in ServiceM8 (or the first contact with one), checked in code.
Does it offer anything for a review?
No. It never offers discounts or gifts for reviews.
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.
- No runs start: activate the app trigger with a connected account. Only items created after activation start runs.
- 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 .