Created by LS Prime Group | lsprimegroup.com
In our previous article on AI agents, we covered what they are and why they matter. This one is hands-on: how do you actually build one?
You do not need to code. You do not need a computer science degree. You need to understand the logic of how data moves from one place to another, and you need the right tool. We use n8n for most of our client builds because it is free to self-host, has a generous free cloud tier, and connects to almost everything.
Here is the actual process.
What Is an AI Agent (In Practice)?
Forget the theoretical definition. In practice, an AI agent is a workflow that:
- Receives a trigger (email, form submission, schedule, webhook)
- Collects information (reads emails, queries a database, calls an API)
- Makes a decision (using AI to evaluate the situation)
- Takes action — sends a message, creates a record, updates a spreadsheet, flags someone
The key difference from simple automation (Zapier-style “if this then that”) is the decision step. Instead of following a fixed rule (“if status = paid then email receipt”), an AI agent evaluates context and responds accordingly.
Step 1: Identify a Repeated Decision You Currently Handle Manually
Before you open any software, write down every task you do repeatedly that involves some judgment. Examples from NZ small businesses we work with:
- Reading incoming enquiry emails and deciding: book consult / send quote / not a fit
- Incoming text messages about availability — checking the calendar and responding
- Sorting supplier invoices: approved / needs review / follow up
- Incoming leads from a website form — qualifying by budget and location
Pick one. Your first AI agent should solve one specific problem, not everything at once.
Step 2: Choose Your Automation Platform
| Platform | Best for | Free tier | Learning curve |
|---|---|---|---|
| n8n | Power users, self-hosters, complex logic | Generous cloud tier, free self-host | Medium — node-based |
| Make (Integromat) | Visual thinkers, intermediate | 1,000 operations/month | Medium-low |
| Zapier | Simple workflows, beginners | 100 tasks/month | Low |
| Covelte | NZ-native AI agents, non-technical | Limited free tier | Very low |
For this guide, we use n8n because it gives you AI capabilities without charging per-task once you self-host it (which is free).
Step 3: Set Up Your n8n Workflow
We are going to build an enquiry qualifier — the most common starting point for service businesses.
Trigger: New email to your enquiry address
What the agent does:
- Reads the email (subject + body)
- Sends the content to OpenAI GPT-4o with a prompt
- GPT-4o decides: hot lead / warm / cold / not a fit
- Agent routes accordingly:
- Hot lead → create Google Calendar event + send SMS to you
- Warm → add to Mailchimp nurture sequence
- Cold → auto-reply with useful information
- Not a fit → send a polite decline
Here is the n8n workflow structure:
Email Trigger (Gmail node)
↓
AI Agent (OpenAI node — GPT-4o)
↓
Router (conditional branch)
├→ Hot: Google Calendar + Twilio SMS
├→ Warm: Mailchimp add contact
├→ Cold: Send email (Gmail)
└→ Not fit: Send email (Gmail)
Each box is a “node” in n8n. You connect them by dragging lines between them. No code.
Step 4: Write the AI Prompt
This is where most people get stuck, but it is also where the quality lives. Your prompt needs to tell the AI:
- Who it is (“You are a lead qualifier for a Auckland-based home cleaning business”)
- What information to extract (“Extract: service type, location, urgency, budget signal, any red flags”)
- How to categorise (“Respond with one of: hot | warm | cold | not_fit”)
- Why (“Hot = likely to book within 7 days, budget seems aligned. Not fit = commercial job, out of region, or abusive language”)
Be specific. Vague prompts give vague results.
A good prompt for our enquiry qualifier:
“You are a lead qualifier for Prime Life Home, an Auckland-based home cleaning and maintenance business. Read the enquiry email below and extract: (1) service type requested, (2) suburb/location, (3) urgency, (4) budget signals, (5) red flags. Then categorise the lead as: hot (book within 7 days), warm (interested, timeline unclear), cold (low urgency or budget mismatch), or not_fit (commercial, out of region, or not our service). Respond ONLY with the category and a one-line reason.”
Step 5: Connect the Actions
Once GPT-4o returns a category, n8n’s Router node sends the lead down the right path.
For hot leads, we want speed — SMS to the business owner plus a calendar hold. We use Twilio for SMS (NZ numbers work fine) and the Google Calendar node for the hold event.
The calendar hold event is useful because it creates a placeholder before anyone confirms — reduces the chance of double-booking.
For warm leads, Mailchimp is the right tool — add them to a nurture sequence where they receive value over 2–3 emails before a follow-up prompt.
For cold leads, a helpful auto-reply builds goodwill and keeps your brand in their mind for future needs.
What This Actually Looks Like for a Trade Business
A Hamilton plumber we worked with was spending 45 minutes every morning reading enquiry emails and texting himself reminders. His workflow now:
- Enquiry email arrives → n8n trigger fires
- AI reads the email → categorises as emergency / repair / quote
- Emergency → SMS to his mobile + Google Calendar hold for same-day
- Repair → calendar hold for next available slot + auto-reply with booking link
- Quote → added to job queue + auto-reply with quote request form
He checks his phone in the morning. The triage is done. He just needs to confirm the calendar holds.
Time saved: 45 minutes/day × 5 days = 3.75 hours/week. In a year, that is nearly 200 hours.
Step 6: Monitor and Improve
Your first AI agent will not be perfect. Set up a simple log — a Google Sheet where n8n writes each lead it processed, the category it assigned, and the outcome. Review it weekly.
Questions to ask:
- Is GPT consistently categorising correctly? (e.g., is it marking cold leads as hot?)
- Are the auto-replies appropriate?
- Is anything falling through the cracks?
Adjust the prompt every few weeks based on what you see. AI agents learn through iteration — you are not setting and forgetting, you are tuning.
Common Mistakes
Trying to automate everything at once
Build one workflow, get it working reliably, then add the next. A broken agent that auto-responds to the wrong leads is worse than no agent.
No human override
Leave a way to flag cases where the AI is wrong. A simple “flag for review” option in the workflow means a human can catch edge cases.
Over-relying on AI for decisions that need a human
Leads that involve large sums, complex scope, or emotional dynamics (divorce situations, estate sales) — these should still be handled by a person. AI triage works for volume; humans handle complexity.
Not logging outcomes
You cannot improve what you do not measure. Even a simple spreadsheet log transforms your ability to refine the agent over time.
Tools We Recommend for NZ Small Businesses
- n8n — core AI agent platform. n8n.io (free cloud tier available)
- OpenAI — GPT-4o for decision-making. Cheaper models (GPT-4o-mini) work fine for categorisation tasks.
- Twilio — SMS notifications within NZ. Works with NZ mobile numbers.
- Google Calendar — scheduling holds and bookings
- Mailchimp — email nurture sequences
- Notion or Airtable — for logging agent decisions and outcomes
Getting Help
If you want help setting up your first AI agent, LS Prime Group offers workflow design and automation setup for NZ small businesses. We build on n8n, Make, or Zapier depending on what fits your stack.
Start a conversation: wa.me/6427888448
Or visit lsprimegroup.com to see examples of automations we have built for other NZ businesses.