How I Built an AI Agent That Finds Private Colleges, Sends Personalized Emails, and Generates Meeting Requests Automatically
By Webotapp Academy•Published: •94 views•Updated:
Finding B2B or institutional leads manually takes hours of searching websites, copying contact details, writing tailored emails, and following up. In this technical case study, I will walk you through how I built a local AI agent for lead generation using Hermes Agent, a Discord bot, GPT-OSS 20B, and a Mac mini—starting from a single voice message and ending with real meeting requests from private colleges.
Instead of relying on an expensive SaaS outreach stack, I wanted a setup I controlled locally, where I could give natural-language instructions from my phone or desktop and review every email before it went out.
Frequently Asked Questions (FAQs)
QWhat is the difference between GPT-OSS 20B and Hermes Agent?
GPT-OSS 20B is the AI language model that handles reasoning and writing, while Hermes Agent is the open-source agent framework that connects the model to memory, workflows, tools, and Discord.
QCan a Mac mini really run GPT-OSS 20B locally?
Yes. On Apple Silicon Mac minis, 16 GB RAM is the minimum to fit the ~13–14 GB model weights, while 24 GB or 32 GB of unified memory is recommended for smooth performance alongside macOS and Hermes Agent.
QHow does Discord connect to Hermes Agent?
Exclusive Discount Offer
Inquire for Course Fee & Discounts
Get full program details, syllabus breakdown, and claim your exclusive course fee discount for the Best Digital Marketing Course in Guwahati.
AI Agent for Lead Generation: Hermes, Discord & GPT-OSS 20B
Note on Transparency: Every step below reflects my actual workflow. Where specific environment details (such as the exact email delivery provider or Speech-to-Text engine) vary by setup or were not fixed in this write-up, I explicitly note them as items to configure or confirm in your own environment.
Before diving into the build, it helps to separate two terms that are often confused:
An AI Model (GPT-OSS 20B): A reasoning and language engine. On its own, a model only takes text in and produces text out. It cannot check a Discord channel, research college websites, format a lead table, or send an email by itself.
An AI Agent (Hermes Agent): The orchestration layer around the model. It gives the model memory, system instructions, tool access, and messaging gateways (like Discord) so it can turn a high-level goal into multi-step actions.
In short: GPT-OSS 20B is the brain, Hermes Agent is the hands and workflow manager, Mac mini is the office computer, and Discord is the chat interface I use to talk to my agent.
My Technology Stack & System Architecture
Here are the seven core components of my setup:
Hermes Agent: The open-source AI agent framework by Nous Research that manages instructions, memory, tool calls, and workflows.
Discord Bot: Connected to Hermes Agent so I can send text or voice instructions in a private Discord channel and receive drafts back.
GPT-OSS 20B: The open-weight Mixture-of-Experts model (~21B total parameters, ~3.6B active per token) used for reasoning, instruction following, and drafting personalized emails.
Mac mini: My always-on local Apple Silicon machine hosting the model and Hermes runtime.
Voice Messages: Natural-language voice notes sent inside Discord instead of typing long prompts.
Lead Generation Workflow: The agent's research process for discovering private colleges near my city and structuring their details.
Email Automation: Generating one-to-one email drafts, waiting for my approval, and sending each approved email individually.
Architecture Flow
[Me on Desktop / Mobile]
│ (Voice Message: "Find all private colleges near my city.")
▼
[Discord Bot] ◄────► [Hermes Agent Gateway on Mac mini]
│
▼
[GPT-OSS 20B Local Model]
│
┌───────────────────────┴───────────────────────┐
▼ ▼
[Lead Generation Workflow] [Email Automation]
• Search private colleges • Draft personalized emails
• Collect contact & campus info • Post drafts to Discord for approval
• Build structured lead list • Send approved emails individually
│
▼
[Colleges Reply with Meeting Requests]
Step 1: Setting Up Hermes Agent
I started by installing Hermes Agent on my Mac mini. Hermes acts as the central coordinator—it holds my agent's role instructions, keeps session context, and bridges my local model with external tools and Discord.
I wanted to control the entire lead generation pipeline without opening a terminal every time. Connecting a Discord Bot gave me a clean, searchable interface that works identically on my Mac and my smartphone.
Under Privileged Gateway Intents, I enabled Message Content Intent so the bot can read messages and attachments in my private channel.
I generated a Bot Token and kept it strictly inside my local Hermes environment (~/.hermes/.env).
Using OAuth2 → URL Generator, I invited the bot to a private Discord server with View Channels, Send Messages, and Read Message History permissions.
On the Mac mini, I linked the bot to Hermes:
hermes gateway setup
And started the gateway listener:
hermes gateway run
(For continuous operation without keeping a terminal tab open, Hermes also supports hermes gateway install to run as a background service.)
Step 3: Configuring GPT-OSS 20B
For reasoning, research synthesis, and email writing, I configured GPT-OSS 20B (gpt-oss:20b) locally. Because it uses a Mixture-of-Experts design (~21B total parameters with ~3.6B active parameters per token), it delivers strong reasoning while running fast enough for interactive workflows on Apple Silicon.
If you run local models via Ollama on macOS, you can pull and test the model with:
ollama run gpt-oss:20b
Then point Hermes to your local OpenAI-compatible endpoint (http://127.0.0.1:11434/v1) using:
hermes model
Selecting More providers → Custom endpoint lets Hermes route all reasoning and drafting tasks directly to GPT-OSS 20B without per-token cloud API charges.
Step 4: Using Mac mini
Running an AI agent locally on a Mac mini has three practical advantages for a small business or solo founder:
Unified Memory for Local Inference:gpt-oss:20b requires roughly 13–14 GB just for the model weights. While 16 GB RAM is the bare minimum, 24 GB or 32 GB of unified memory gives macOS, Hermes Agent, and the model context window enough headroom to run smoothly without heavy disk swapping.
Always-On Availability: A Mac mini uses very little idle power compared to a full desktop workstation, making it easy to leave running so the Discord bot responds whenever I message it.
Data Privacy: My lead lists, draft emails, and outreach instructions stay on my own hardware rather than sitting in third-party SaaS dashboards.
Step 5: Giving Voice Instructions via Discord
Once everything was connected, I did not write a complex script to kick off a campaign. I simply opened my private Discord channel and sent a voice message:
"Find all private colleges near my city."
Here is how that voice instruction becomes an actionable task:
Discord delivers the voice message attachment to the Discord Bot connected to Hermes Agent.
Hermes transcribes the audio into text (via the configured Speech-to-Text provider in the Hermes pipeline) and passes the transcribed instruction to GPT-OSS 20B.
Guided by its system instructions, the agent recognizes this as a lead generation task rather than a casual chat question and begins executing the workflow.
Step 6: Automatic Lead Generation
Next, the Lead Generation Workflow takes over. Guided by Hermes Agent's instructions, the model:
Identifies private colleges in and around my target city.
Researches public details for each institution—such as campus focus, departments, placement/training programs, and official contact addresses.
Organizes the findings into a structured lead list (College Name, City/Area, Key Focus, Public Contact Email, and Personalization Hook) and posts the summary back to my Discord channel.
Having a structured lead list before drafting anything ensures I can quickly spot duplicates or irrelevant institutions right inside Discord.
Step 7: Personalized Email Generation
Generic "Dear Sir/Madam" mass emails rarely get replies from academic institutions. Instead of using a single copy-paste template, I instructed the agent to draft individual, personalized emails for each college using the details it collected.
Example Personalized Email Draft
Subject: Industry-Ready AI & Technical Workshop Collaboration for [College Name]
Dear [Principal / Placement Officer Name],
I noticed [College Name]'s focus on [specific department or recent placement initiative] in [City]. We work with colleges to run practical, hands-on training sessions in AI automation and modern software development so students graduate with portfolio-ready skills.
Would you be open to a brief 15-minute call next week to explore a workshop or placement-readiness session for your upcoming batch?
Best regards,
[My Name]
Notice how each draft references real context about that specific college rather than sounding like a bulk newsletter.
Step 8: Human Approval Before Sending
This is the most important safeguard in the entire workflow: the AI agent never sends an email automatically without my approval.
Instead, Hermes posts the drafted emails back into my Discord channel so I can review:
Is the recipient email address accurate and appropriate?
Is the college name and personalization detail factually correct?
Is the tone respectful and concise?
If a draft needs a tweak, I reply in Discord with a quick correction. Once I am happy with the batch (or an individual email), I explicitly tell the agent to proceed. Human-in-the-loop approval protects your domain reputation, prevents embarrassing hallucinations, and ensures compliance with responsible outreach practices.
Step 9: Sending Approved Emails Individually
After I approve the drafts in Discord, the Email Automation step sends each approved email individually—one-to-one—rather than firing a single mass BCC blast.
Sending emails individually from your configured mail workflow keeps formatting clean, preserves personal context, and avoids the spam-filter triggers associated with bulk email blasts.
Step 10: Receiving Meeting Requests
Once the personalized, human-approved emails landed in college inboxes, decision-makers began replying with meeting requests and questions about collaboration dates.
Because the outreach was relevant to each institution and reviewed by a human before sending, the conversations started with genuine interest rather than cold-pitch friction. That turned a voice note sent in Discord into real institutional leads and scheduled calls.
Example Prompts & Voice Instructions You Can Reuse
You can adapt these voice or text prompts inside Discord once your Hermes Agent is running:
Discovery Prompt:
"Find 15 private engineering and management colleges within 50 km of [City]. List their name, website, public placement/admin email, and one specific program they highlight."
Drafting Prompt:
"Using that lead list, write an individual, personalized outreach email under 140 words for each college proposing a practical student workshop. Show me all drafts here for approval first—do not send anything yet."
Revision Prompt:
"Make draft #3 more concise and focus on final-year placement readiness. Once updated, show it again."
Approval Prompt:
"Drafts #1, #2, and #4 are approved. Send them individually now."
Before deploying a similar workflow, keep these real-world constraints in mind:
Technical Limitations & Items to Confirm
Voice Transcription (STT) & Email Transport: Depending on your Hermes setup, you must confirm which Speech-to-Text engine (e.g., local Whisper vs. cloud STT) transcribes Discord voice messages, and which email transport/credentials (e.g., SMTP or an authorized mail integration) your email automation uses.
Public Contact Availability: Not every college publishes a direct decision-maker email; some only list generic info addresses or contact forms.
Local Speed: Running gpt-oss:20b on a 16 GB Mac mini can feel tight if other heavy apps are open; 24 GB+ RAM is much smoother.
Security Considerations
Restrict Discord Access: Always configure DISCORD_ALLOWED_USERS and DISCORD_ALLOWED_CHANNELS in ~/.hermes/.env so only you can trigger agent tasks or email sends.
Protect Tokens & Mail Credentials: Never paste your Discord bot token or email passwords into chat or Git repositories.
Never Skip Human Approval: Automated outreach without review risks sending inaccurate details or hitting the wrong recipient.
Operational Costs
Software: Hermes Agent, Ollama, GPT-OSS 20B, and Discord are free to use without subscription fees.
Hardware & Electricity: You need a capable machine (such as a Mac mini with 16–32 GB RAM) and electricity to keep it running.
Optional External Services: Only incur charges if you add a paid cloud email service, cloud STT API, or cloud VPS.
Conclusion: AI Agents as Virtual Employees
This workflow changed how I think about AI tools. A chatbot waits for you to copy and paste work across tabs; an AI agent for lead generation operates more like a junior research and outreach assistant. By combining Hermes Agent, a Discord bot, GPT-OSS 20B, and a Mac mini, I built a repeatable system where a voice instruction turns into researched leads, personalized drafts, human-approved outreach, and real meeting requests.
Suggested Image Alt Text (If Adding Visuals Later)
Architecture diagram showing Discord voice instructions routed through Hermes Agent and GPT-OSS 20B on a Mac mini for lead generation and email approval.
Discord channel screenshot showing Hermes Agent posting personalized college outreach drafts for human review.
You create a bot in the Discord Developer Portal, enable Message Content Intent, and link the bot token to Hermes using hermes gateway setup and hermes gateway run.
QCan I send voice messages to trigger lead generation tasks?
Yes. When Speech-to-Text is configured in your Hermes pipeline, you can send a voice note in Discord (such as "Find all private colleges near my city") and the agent transcribes it into a task.
QDoes the AI agent send emails automatically without checking with me?
No, not in a safe human-in-the-loop setup. In my workflow, the agent posts every personalized email draft in Discord first and only sends them individually after I review and approve them.
QWhy send personalized emails individually instead of a bulk blast?
One-to-one emails reference specific details about each college, feel authentic to decision-makers, and avoid the spam-filter penalties common with generic bulk emails.
QIs this AI lead generation setup completely free?
The core software stack (Hermes Agent, GPT-OSS 20B, Discord) has no subscription fees, but you still pay for your Mac mini hardware, electricity, and any optional paid email or cloud transcription services you choose to connect.
QHow do I stop other people in Discord from controlling my AI agent?
Use a private Discord server and lock down DISCORD_ALLOWED_USERS and DISCORD_ALLOWED_CHANNELS in your Hermes .env configuration so only your own Discord user ID can issue commands.
QCan this workflow be adapted for industries other than private colleges?
Yes. You can adjust the discovery and drafting prompts for local agencies, clinics, coaching institutes, software companies, or B2B service providers.