📘 AI Agent Toolkit Guides
This guide walks you through deploying your first AI agent — the email triage agent — in 30 minutes. No prior experience required.
What You’ll Have After 30 Minutes
- ✅ AI agent that scans your inbox every 5 minutes
- ✅ Classifies emails by intent (complaint/inquiry/lead)
- ✅ Flags urgent emails for immediate attention
- ✅ Drafts polite replies for non-urgent messages
- ✅ Syncs leads to your CRM (optional)
Before You Start
– Gmail or Outlook account (free)
– n8n account (free — sign up here)
– OpenAI API key (or Gemini/Claude) — get free credits here
Step 1: Import the Workflow (5 minutes)
Download the email triage workflow from the Scripts page or copy it directly:
$ $ wget https://therightgpt.com/ai-agent-toolkit/scripts/01_email_triage_n8n.json
In n8n, go to Workflows → Import from File and select the downloaded file.
Step 2: Connect Your Email (5 minutes)
Double-click the Gmail Trigger node. Click Connect and authorize access to your Gmail account.
Step 3: Add Your API Key (5 minutes)
Double-click the OpenAI Classify node. Click Connect and paste your API key.
Test the connection by clicking Test Node. You should see a JSON response with intent, sentiment, and draft reply.
Step 4: Configure Urgency Rules (5 minutes)
Double-click the Urgency Check node. This is where you define what counts as “urgent.”
Current rule: urgency > 3 (on a 1-5 scale)
To customize: Change the number to 4 for only highest urgency, or 2 to flag more emails as urgent.
Step 5: Set Up CRM Sync (Optional, 5 minutes)
If you use Salesforce, HubSpot, or Zendesk, double-click the Sync to CRM node.
Click Connect and authorize access to your CRM.
Step 6: Activate (2 minutes)
Click Save in the top right.
Click Activate (toggle switch).
Testing Your Agent
Send a test email to yourself with a question. Within 5 minutes, you’ll see:
- A draft reply in your Gmail drafts folder
- If marked urgent, you’ll receive a notification (if configured)
- If lead, it appears in your CRM (if connected)
– No response? Check the execution logs (click the execution ID)
– API errors? Verify your API key has credits
– Emails not triggering? Check Gmail trigger polling interval
Not sure which script to start with? Answer these questions to find your perfect match.
✍️ “I need to scale content creation” → Script 2: Research & Write Crew
🔄 “My chatbot forgets everything” → Script 3: Stateful LangGraph Agent
🛡️ “My AI hallucinates too much” → Script 4: Production Guardrail Script
💻 “I want to automate my computer” → Script 5: OpenClaw Local Controller
🟡 Some Python → Script 2 (CrewAI)
🔴 Professional developer → Script 3 (LangGraph) or Script 4 (Pydantic)
🔒 On my own server (privacy) → Script 2 (CrewAI) or Whisper Skill
💻 Local terminal only → Script 5 (OpenClaw)
💵 Small budget (API credits) → Script 1 (n8n)
🏢 Enterprise budget → Script 4 (Pydantic) + paid skills
One of the most searched queries in 2026: “Agentic ROI vs offshore BPO”. This spreadsheet helps you calculate exactly how much an AI agent saves your organization.
What’s Inside the Cost Estimator
| Section | What It Calculates |
|---|---|
| 📧 Email Triage Agent | Cost per email processed vs. human assistant |
| ✍️ Content Agent | Cost per article vs. freelance writer |
| 🔧 Developer Agent | Cost per task vs. junior developer |
| 🎯 ROI Summary | Monthly savings, payback period, 12-month projection |
Quick ROI Example (Based on 2026 Data)
📧 Email Triage Agent ├── API Cost: $0.002 per email ├── 500 emails/day → $3/day → $90/month ├── Human equivalent: 2 hours/day @ $25/hr = $1,250/month └── Monthly Savings: $1,160 (92% reduction) ✍️ Content Agent (CrewAI) ├── API Cost: $0.50 per article (research + writing) ├── 30 articles/month → $15/month ├── Human equivalent: 4 hours/article @ $50/hr = $6,000/month └── Monthly Savings: $5,985 (99.7% reduction)
How to Use the Spreadsheet
Download the Excel file or make a copy of the Google Sheets version.
Enter your monthly email/article/task volume.
Enter your API provider’s pricing (OpenAI, Anthropic, etc.).
Enter your human labor cost per hour (or offshore BPO rate).
The spreadsheet automatically calculates your ROI and payback period.
| Script | Best For | Time to Value | Technical Level | Cost (Monthly) |
|---|---|---|---|---|
| Email Triage | Inbox management, lead capture | 30 min | Beginner | $5-50 (API) |
| Research & Write | Content marketing, SEO | 45 min | Intermediate | $10-100 |
| Stateful LangGraph | Customer support, project management | 60 min | Advanced | $20-200 |
| Guardrail Script | Production safety, compliance | 20 min | Advanced | $0 (adds to existing) |
| OpenClaw Local | Desktop automation, file management | 15 min | Intermediate | $0 (self-hosted) |
💰 AI Agent ROI Calculator
Enter your numbers:
Monthly savings: $0
