What You'll Build
- An email monitoring agent that reads incoming emails
- Classifies them by type (enquiry, complaint, sales, etc.)
- Drafts appropriate replies automatically
- Sends for human approval before sending
- Logs everything to a Google Sheet
Choosing Your Platform
| Platform | Best For | Free Tier | Coding Required |
|---|---|---|---|
| Zapier AI Actions | Beginners, simple agents | 100 tasks/mo | No |
| n8n | Power users, complex agents | Self-host free | Optional |
| Langflow | Visual agent design | Yes | Optional |
| Make (Integromat) | Mid-complexity automation | 1,000 ops/mo | No |
Building the Email Agent in Zapier — Step by Step
- Create your Zap — Log into Zapier. Click "Create Zap." Choose Gmail as trigger, set to "New Email Matching Search." Filter: emails to your business email that aren't from known contacts.
- Add ChatGPT classification step — Add an "OpenAI: Send Prompt" action. Prompt: "Classify this email into one of these categories: [Sales Enquiry, Support Request, Complaint, Partnership, Spam, Other]. Reply with only the category name. Email: {{email_body}}"
- Add ChatGPT draft step — Add another "OpenAI: Send Prompt" action. Prompt: "You are a professional assistant for [Your Business]. Draft a helpful, professional reply to this {{classification}} email. Be concise. Email: {{email_body}}"
- Create a Gmail draft — Add a "Gmail: Create Draft" action using the AI-generated reply as the draft body. This puts it in your drafts for review — you choose when to send.
- Log to Google Sheets — Add a "Google Sheets: Create Row" action logging: timestamp, sender, classification, and a link to the draft. Your audit trail.
- Test and activate — Send a test email to yourself. Check that classification, draft, and logging all work. Turn the Zap on.
Building in n8n — Visual Agent Design
n8n's visual interface makes complex multi-step agents accessible without code:
- Install n8n — Self-host via Docker (free) or sign up for n8n Cloud ($20/month). Self-hosting gives you unlimited executions.
- Create a new workflow — Click "New Workflow." Add a Trigger node (Gmail, Webhook, Schedule, or Manual).
- Add the AI Agent node — n8n includes a dedicated "AI Agent" node. Connect it to your chosen LLM (Claude, GPT-4). Set the agent's system prompt and available tools.
- Connect tools — Attach tool nodes: Web Search, Code, Google Sheets, Gmail, Notion. The agent decides which tools to use based on the task.
- Set the goal — In the AI Agent node, define the goal: "Given this email, classify it, draft a reply, and log the result to our tracking sheet."
- Test and iterate — Run with test data. Check each step's output. Adjust the system prompt until results are consistently good.
The Human-in-the-Loop Design Pattern
For any agent taking actions with consequences, include a human approval step before irreversible actions. The pattern:
- Agent completes analysis and drafts the action
- Sends a Slack message or email to a human reviewer with a summary and approve/reject buttons
- Only on approval does the agent proceed to execute the action
- All decisions logged for audit and improvement
This captures 80% of the time savings while maintaining human control over what matters.
Frequently Asked Questions
Do I need to know how to code to build an AI agent?
Not for basic agents. Tools like Zapier AI Actions, n8n's visual editor, and Langflow allow building functional agents through drag-and-drop interfaces. Complex, custom agents do benefit from coding knowledge.
What is n8n?
n8n is an open-source workflow automation tool with visual, drag-and-drop interface. It connects 400+ apps and includes AI nodes for building agent workflows. The self-hosted version is free; cloud hosting starts at $20/month.
How much does it cost to run an AI agent?
Costs come from the AI model API (typically $0.01-0.05 per task for Claude or GPT-4) and the automation platform (free to $50/month). A basic agent handling 100 tasks per day typically costs $10-50/month in API costs.
What is the difference between n8n and Zapier?
Both are workflow automation platforms. Zapier is more beginner-friendly with a polished interface. n8n is more powerful, self-hostable, and lower cost for high-volume use. For AI agents, n8n has more flexibility.
What kinds of agents can a non-coder build?
Non-coders can build: email triage and response agents, social media monitoring agents, lead research agents, meeting summarisation agents, content creation pipelines, and customer service chatbots.