Quick Answer
You can automate your entire job pipeline, from booking to invoice to customer notification, by connecting ServiceM8, Xero, and WhatsApp through n8n. This guide gives you three ready-to-use workflows you can download and import today. Self-hosted n8n is completely free, replacing tools like Zapier that cost upwards of 200 pounds per month. Scroll down for interactive workflow previews and one-click JSON downloads.
Table of Contents
- Why automate your job pipeline
- The four tools you need
- How the full pipeline works
- Workflow 1: Completed job to Xero invoice
- Workflow 2: New lead to WhatsApp notification
- Workflow 3: AI-powered full pipeline
- How much does this actually cost
- Setting up n8n step by step
- n8n vs Zapier vs Make
- YouTube tutorials worth watching
- What the community is saying
- Frequently asked questions
- The verdict
Why automate your job pipeline
If you are running a trades business, you already know the pain: finish a job, get back to the van, scribble down the details, remember to raise the invoice later, then chase the customer when they do not pay on time. Every manual step is a chance for something to fall through the cracks.
Multiply that across 20 or 30 jobs a week and you are losing hours on admin that should be running itself. A 2025 survey by Simply Business found that the average UK tradesperson spends over 15 hours per week on paperwork. That is nearly two full working days gone, not on the tools, but on chasing invoices and sending confirmations.
The good news: you can connect ServiceM8, Xero, and WhatsApp into a single automated pipeline using n8n, and it will not cost you a penny in software fees.
If you have not already identified where your business is losing time to manual processes, our automation audit playbook walks you through a simple method to find and fix the biggest time sinks.
The four tools you need
This pipeline uses four pieces of software that work together seamlessly. You likely already use at least two of them.
n8n
ServiceM8
Xero
WhatsAppn8n is the automation engine that ties everything together. It is open source, self-hostable, and has a visual workflow builder that makes connecting APIs as simple as dragging lines between boxes. Unlike Zapier, which charges per task, n8n self-hosted has no usage limits whatsoever.
ServiceM8 handles your job management: bookings, scheduling, job notes, photos, and completion status. It won Xero's Small Business App of the Year, and its webhook system makes it ideal for triggering automations.
Xero is the UK's most popular cloud accounting platform for small businesses, handling invoicing, bank reconciliation, and VAT returns. Its API is well documented and integrates cleanly with n8n through HTTP request nodes.
WhatsApp Business API lets you send automated messages to customers and your team. With a 98% open rate compared to email's 20%, WhatsApp is far more likely to actually reach your customers.
Cost breakdown at a glance
n8n self-hosted is free. ServiceM8 starts at 8 pounds per month. Xero starts at 29 pounds per month. WhatsApp Business API messages cost roughly 1.8 pence each. Your total automation stack can run for under 40 pounds per month, replacing manual processes that would otherwise eat up 15+ hours of your week.
How the full pipeline works
The pipeline follows a simple three-stage flow: job management feeds into accounting, which feeds into customer communication. Every stage runs automatically once configured.

Here is how data flows through the system:
- ServiceM8 fires a webhook whenever a job status changes, a new booking comes in, or a job is marked complete. This is the trigger for everything that follows.
- n8n receives the webhook and fetches the full job details, customer information, and any materials or notes from ServiceM8's API.
- n8n processes the data by determining what action to take: create an invoice, send a notification, or flag something urgent.
- Xero receives the invoice data with correct line items, VAT codes, and customer details. The invoice is created and optionally emailed automatically.
- WhatsApp sends confirmation to the customer and a summary to your team, so everyone knows the job status without a single phone call.
We have built three workflows that cover the most common scenarios. You can use them individually or chain them together for full coverage.
Workflow 1: Completed job to Xero invoice
This is the workflow most trades businesses set up first. When a job is marked as completed in ServiceM8, n8n automatically creates a fully itemised invoice in Xero and emails it to the customer. No more sitting in the van after a job tapping out invoices on your phone.

What this workflow does
- Listens for completed jobs: A ServiceM8 webhook fires when any job status changes. The workflow filters for jobs marked as "Completed".
- Fetches job and customer details: Pulls the full job record, materials list, and customer contact information from ServiceM8's API.
- Builds the invoice: A code node assembles the Xero invoice payload with line items from the job materials, correct account codes, and OUTPUT2 VAT tax type.
- Creates the invoice in Xero: Sends the payload to Xero's Invoices API endpoint. The invoice is created as AUTHORISED, meaning it is ready to send immediately.
- Emails the invoice: Triggers Xero's built-in email function to send the invoice directly to the customer's email address on file.
Here is the full workflow. Click anywhere on it to explore the nodes and see exactly how each one is configured:
Setting up ServiceM8 webhooks
In your ServiceM8 account, go to Settings, then Webhooks, and add a new webhook pointing to your n8n webhook URL. Select "Job" as the object type and tick the "Updated" event. n8n will receive a POST request every time a job changes status, and the workflow filters for completed jobs only.
If you are already using Make.com for your ServiceM8 to Xero connection, our zero-touch invoice pipeline guide covers that setup. The n8n version here gives you more flexibility and zero ongoing costs.
Workflow 2: New lead to WhatsApp notification
When a new job or enquiry comes into ServiceM8, this workflow immediately sends a WhatsApp confirmation to the customer and alerts your team. No more missed leads sitting unread in an inbox.

What this workflow does
- Catches new leads: A separate ServiceM8 webhook fires when a new job record is created, regardless of status.
- Extracts customer contact details: Fetches the customer's phone number, name, and job description from ServiceM8.
- Checks for a valid phone number: The workflow skips WhatsApp if no phone number is on file, preventing failed API calls.
- Sends customer confirmation: Uses the WhatsApp Business API to send a template message confirming the booking with the job description and date.
- Notifies your team: Sends a plain text summary to your business WhatsApp number so you and your team see every new lead instantly.
WhatsApp template approval required
The WhatsApp Business API requires you to submit message templates for approval before you can send them. Template approval typically takes 24 to 48 hours. You will need to set up a Meta Business account, verify your business, and register a phone number through the WhatsApp Business Platform. The workflow uses a template called "job_booking_confirmation" which you will need to create and get approved first.
Workflow 3: AI-powered full pipeline
This is the advanced version that combines invoicing, notifications, and intelligent routing into a single workflow. An AI classification node analyses each incoming job and automatically decides whether to create an invoice, send a welcome message to a new lead, or flag an urgent job for immediate attention.
How the AI classification works
The workflow uses n8n's built-in AI agent node with an OpenAI language model to classify each job based on its status, description, date, and customer history. The classifier follows three simple rules:
- If the job status is "Completed", it routes to the invoice branch
- If the job is a quote or work order with a date today or tomorrow, it flags it as urgent
- Everything else is treated as a new lead and gets a welcome message
The AI node also has access to the customer's job history via a tool node, so it can factor in repeat customers and job frequency when making decisions. A code node parses the AI's JSON response and feeds it into a switch node that routes to the correct branch.
AI node configuration
The AI agent node uses an OpenAI chat model with the temperature set to 0.1 for consistent, predictable classifications. A window buffer memory node stores the last 10 interactions, helping the model maintain context across rapid-fire webhook events. You will need an OpenAI API key, which costs roughly 0.50 pounds per 1,000 classifications at current pricing.
For a deeper look at what else n8n's AI nodes can do for a trades business, check out our guide to seven n8n workflows that replace a full-time admin.
How much does this actually cost
One of the biggest advantages of this stack is cost. While Zapier charges per task and costs escalate quickly with volume, n8n self-hosted is genuinely free with no usage caps.

Monthly automation platform costs
The only cost for self-hosted n8n is the server itself. A basic VPS from providers like Hetzner or DigitalOcean runs between 4 and 7 pounds per month, which is a fraction of what you would pay for Zapier at similar volumes.
Annual savings calculation
A typical trades business running 50 automations per day would pay roughly 65 pounds per month on Zapier Professional, or 780 pounds per year. With self-hosted n8n on a 5 pound per month VPS, the same workload costs just 60 pounds per year. That is a saving of 720 pounds annually, and the gap widens as your volume grows because n8n has no per-execution charges.
Setting up n8n step by step
Getting n8n running on your own server takes about 30 minutes. Here is the process from start to finish.
Installing n8n with Docker
- Get a VPS: Sign up with a provider like Hetzner, DigitalOcean, or Vultr. A 2 GB RAM instance is more than enough. Choose Ubuntu 22.04 as the operating system.
- Install Docker: Connect via SSH and run the official Docker install script. This gives you Docker and Docker Compose in one step.
- Create a docker-compose file: Set up a docker-compose.yml that defines the n8n service with persistent volume storage, environment variables for your timezone and webhook URL, and automatic restart on failure.
- Start n8n: Run
docker compose up -dto launch n8n in the background. It will be accessible on port 5678. - Set up a reverse proxy: Use Caddy or Nginx to add HTTPS and a custom domain. Caddy handles SSL certificates automatically, which is the easiest option.
- Configure credentials: Log into n8n at your domain, then add your ServiceM8 OAuth credentials, Xero API keys, and WhatsApp Business API token through the credentials manager.
Docker Compose quick start
Create a file called docker-compose.yml in your home directory. Set the N8N_HOST environment variable to your domain name, WEBHOOK_URL to your full HTTPS URL, and GENERIC_TIMEZONE to Europe/London. Map port 5678 to the container and create a named volume called n8n_data for persistent storage. Add restart: always so n8n comes back up automatically after server reboots.
Connecting ServiceM8
ServiceM8 uses OAuth 2.0 for API authentication. In n8n, create a new OAuth2 credential with the authorisation URL https://go.servicem8.com/oauth/authorize and the token URL https://go.servicem8.com/oauth/access_token. You will need to register an app in your ServiceM8 developer account to get a client ID and secret.
Connecting Xero
Xero also uses OAuth 2.0. Register an app at developer.xero.com, set the redirect URI to your n8n OAuth callback URL, and configure the credential in n8n. Make sure to include the accounting.transactions and accounting.contacts scopes so n8n can create invoices and look up customer details.
Keep your credentials safe
n8n stores all credentials encrypted on your server. Never commit API keys or OAuth secrets to version control. For production deployments, use n8n's built-in encryption key and store it separately from the database volume.
n8n vs Zapier vs Make
All three platforms can connect ServiceM8, Xero, and WhatsApp. The difference comes down to cost, flexibility, and where your data lives.
| Feature | n8n | Zapier | Make |
|---|---|---|---|
| Self-hosted option | Yes | No | No |
| Free tier (unlimited) | Yes | 100 tasks/mo | 1,000 ops/mo |
| AI nodes built in | Yes | No | No |
| Open source | Yes | No | No |
| Visual workflow builder | Yes | Yes | Yes |
| ServiceM8 integration | Webhook + API | Native connector | Native connector |
| Xero integration | OAuth2 + API | Native | Native |
| WhatsApp integration | Business API | Limited | Business API |
| Data privacy | Your server | US cloud | EU cloud |
| Monthly cost (high volume) | £0 - £5 | £65+ | £27+ |
Zapier's strength is its library of native connectors, which makes simple two-step automations very quick to set up. Make offers a good middle ground with visual scenarios and reasonable pricing. But for a trades business that wants full control, unlimited usage, and AI-powered routing, n8n is the clear winner.
YouTube tutorials worth watching
These creators have produced excellent walkthroughs covering n8n, ServiceM8, Xero integrations, and WhatsApp Business API setup. Start with the beginner tutorials if you are new to n8n, then move to the integration-specific videos.
18:24n8n Tutorial for Beginners: Full Walkthrough
The Swarm
42:15n8n Crash Course for Beginners
Leon van Zyl
25:37Automate Your Business with n8n
All About AI
31:08n8n AI Agents: Complete Tutorial
Cole Medin
12:45ServiceM8 to Xero Integration Guide
ServiceM8 Official
19:52n8n: The BEST Free Automation Tool
Income Stream Surfers
14:33WhatsApp Business API Setup Tutorial
The Social Guide
16:20n8n Webhooks Explained Step by Step
n8n Official
What the community is saying
n8n, ServiceM8, and Xero all have active communities sharing real results. Here is what people are saying about automating their job pipelines.
Frequently asked questions
Yes. n8n Community Edition is completely free and open source under a sustainable use licence. You can self-host it on any server, VPS, or even a Raspberry Pi. There are no limits on workflows, executions, or connected services. n8n also offers a paid cloud version starting at around 20 EUR per month if you prefer not to manage hosting yourself.
Not at all. n8n uses a visual drag-and-drop workflow builder. You connect nodes together and configure them using forms and dropdown menus. The workflows in this guide are provided as downloadable JSON files you can import directly. That said, if you want to customise the logic further, basic JavaScript knowledge is helpful but not required.
Very reliable when set up properly. Running n8n in Docker with automatic restarts means it recovers from crashes on its own. For added resilience, use a process manager and set up email alerts for failed workflows. Many businesses run hundreds of automations daily on self-hosted n8n without issues.
Yes. The workflows use webhooks and API calls, so you can adapt them for any job management platform that has an API or supports webhooks. Tradify, Fergus, Jobber, and most modern field service apps offer these capabilities. You would just need to adjust the API endpoints and data mapping in the relevant n8n nodes.
n8n has built-in error handling. You can add error trigger nodes that send you a notification (email, WhatsApp, Slack) whenever a workflow fails. The execution log shows exactly which node failed and why, making debugging straightforward. Failed executions can be retried manually or automatically.
Safer than with most cloud platforms. When you self-host n8n, your data never leaves your server. No third party can access your customer details, invoices, or phone numbers. Just make sure your VPS provider uses encrypted storage and you keep your server updated with security patches.
The verdict
Our recommendation
If you are running a trades business on ServiceM8 and Xero, connecting them through n8n is one of the highest-value automations you can set up. The three workflows in this guide cover the most common scenarios, and they are completely free to run on a self-hosted server.
Zero ongoing software cost for n8n self-hosted, replacing 780+ pounds per year in Zapier fees
Instant invoicing means you get paid faster, with invoices going out the moment a job is complete
WhatsApp confirmations keep customers informed with a 98% open rate, far better than email
AI-powered routing intelligently classifies jobs and takes the right action without manual intervention
Download the workflow JSON files above, import them into your n8n instance, and you can have your pipeline running by the end of today.

