A Sales Lead Agent: Research, Scoring, Drafted Follow-ups and Approval
#Quick answer: what can a sales lead agent do, and what should it never be allowed to do?
It can screen incoming leads, research each company using only the material you give it, score and grade by fixed rules, and draft a first reply for a salesperson to approve. It should never search the web on its own, send email, edit the CRM or calculate scores. The core idea of this project is filter first, research second: people who must not be contacted never reach the agent.
- Plain workflow nodes filter first. Spam pitches, job applications, duplicate submissions, companies already in an open CRM deal and people on the do-not-contact list are routed away before the agent runs.
- Background comes only from supplied web page snapshots. The agent has no web tool. No snapshot means "insufficient background", never a guess.
- Code calculates the score. The agent supplies two yes/no signals (expansion signal, existing contract with more than six months left). The scoring tool returns the score and grade.
- Drafts pass a code check. Recipient must equal the form email, no amount outside the price sheet, no sensitive wording.
- A salesperson approves before anything is sent.
For Australian rules on commercial electronic messages, see the risks section below and treat the ACMA page↗ as the authority. Last checked: 2026-12-04. For the role itself, see what an FDE is.
#How does the business run today?
The practice scenario: Qingchuan Coffee Equipment in Alexandria, Sydney, rents coffee machines and supplies beans to offices and cafés. Eight staff, one salesperson, Nick. The website form brings in a dozen or so leads a day. Nick replies between site visits, usually to whoever he sees first.
The training data is one day of 16 leads, plus snapshots of seven company web pages, a CRM table of open deals, a do-not-contact list, the scoring rules and the external price sheet. The owner, Mandy, wants this: when a lead arrives, screen out duplicates, pitches and people who must not be contacted; research only from material on hand; score by fixed rules; draft the first reply; Nick approves in Slack before it goes. No web searching, no mass mailing.
#What is going wrong?
- A law firm that wanted installation this month waited three days while an SEO pitch got the first reply.
- A logistics company already in negotiation filled in the form again and was quoted as a new customer.
- Someone on a trade show list who unsubscribed in August received a promotion and complained.
- Some companies have no background material, and one snapshot dates from 2024 and gives a headcount that disagrees with the form.
- One snapshot contains a partner's email address and another mentions layoffs. Neither can be used in a reply.
Some of these need hard rules (who must not be contacted), some need reading (background) and some need writing (drafts). Mixing them in one model makes errors hard to trace, so they are separated.
#Which design was chosen, and what was given up?
| Choice | What you gain | What you give up |
|---|---|---|
| Plain nodes filter before the agent | Unsubscribed people and existing deals never reach the agent | Rules must be written as code up front |
| Agent reads local snapshots only, no web tool | Background is traceable; nothing unapproved is pulled in | Less rich than live search; no snapshot means "insufficient background" |
| Score calculated by a code tool | Same result today and tomorrow; Nick can see every point | The agent cannot adjust a score by feel |
| Drafts pass a code check before Slack | Catches wrong recipients, prices outside the sheet, sensitive words | One more step; a failed draft is rewritten once, then goes to a person |
| Nick approves before sending | No unreviewed outbound email | A-grade reply speed depends on how fast Nick approves |
| CRM writes are pending only | Mistakes do not pollute live data | Nick confirms again |
Tools: Claude, the n8n AI Agent node, Google Sheets, Slack and Gmail. The agent has four tools: read a snapshot, score, read the price sheet, propose a CRM note.
#What goes in the proposal: scope, acceptance criteria, risks?
Scope. In: route each lead (process / merge into deal / do not contact / exclude); research; score and grade; draft a reply; Slack approval; log the outcome; after approval, add a pending deal for A-grade leads. Out: web search, scraping, social media lookups, sending email automatically, editing live CRM data, adding people to marketing lists.
Acceptance criteria (from the practice project):
- Of 16 leads, 11 are scored and 5 are not (one merged into a deal, one do-not-contact, one pitch, one job application, one duplicate). Those 5 have no draft.
- Scores and grades for the 11 match the reference answer: 3 A, 5 B, 3 C. A lead outside the service area is graded C.
- The four leads with insufficient background contain no invented company facts.
- Drafts go only to the form email, never to an address found in a snapshot, never mention layoffs, and quote only prices on the price sheet.
- No node or tool in the flow reaches an external URL.
- When Nick clicks "don't send", the person receives nothing. A lead without marketing consent never enters follow-up marketing, even if the reply is approved.
Risks.
- Australian rules on commercial electronic messages. ACMA's guidance says you need the recipient's consent (express or inferred) before sending marketing messages, the message must identify the sender and give contact details, and every commercial message needs an unsubscribe option that is honoured within 5 working days. The sender must be able to prove consent, including for bought lists. For the full requirements, use ACMA: Avoid sending spam↗. In the practice project, "one reply to a person's own enquiry; later marketing needs consent" is the company's own rule, so a real deployment must check it against the official guidance and legal advice.
- Stale background: if a snapshot is over 12 months old and disagrees with the form, trust the form and flag it.
- Submitter is not the decision-maker: do not go around her to the owner named in the snapshot.
#How do you test it?
Tune the rules and prompt in Claude first, compare with the reference answer, then build in n8n. Test cases:
| # | Input | Expected result | Human involved? |
|---|---|---|---|
| 1 | Same email submits twice in a day | Merge into the earliest; add the later message to it | No |
| 2 | Email domain matches an open CRM deal | No new lead; notify the deal owner | Yes, owner follows up |
| 3 | Email is on the do-not-contact list | No score, no draft, log only | No |
| 4 | SEO pitch or job application | Excluded; job applications go to the owner | Job application, yes |
| 5 | No web snapshot | Mark "insufficient background", background score 0, invent nothing | No |
| 6 | Snapshot contains a partner's email | Draft goes to the form email only | No |
| 7 | Snapshot mentions layoffs | Score as normal; the email says nothing about it | No |
| 8 | Lead outside the service area | Graded C; polite note that the area is not served yet; no selling | No |
#What gets delivered?
- A results table for all 16 leads: status, score breakdown, grade, background notes, flags.
- 11 reply drafts, each addressed to the form email.
- The agent system prompt, plus notes on the scoring, snapshot and price sheet tools.
- The main n8n flow: webhook, pre-filter, routing, agent, draft check, Slack approval, Gmail, lead sheet update.
- An acceptance checklist and a one-page handover: who approves, how to change rules, which cases always need a person.
#Which FDE skills does this project practise?
| Skill | How it shows up here |
|---|---|
| Filter-then-research flow design | People who must not be contacted never reach the agent |
| Setting an agent's permission boundary | Four tools; no web access, no sending |
| Turning scoring rules into auditable code | The model does not decide the score |
| Handling dirty and missing data | No snapshot, stale snapshot, unusable details inside a snapshot |
| Designing human approval | Slack approval and the draft check |
| Spotting a compliance boundary and writing it into the proposal | Marketing consent and unsubscribe |
On the FDE Tech course this maps to the business side of Bounded Agent Execution, Approval-aware Tool Use and Prompt Injection and Trust Boundaries.
Quick test
Should the agent handle it, or a person?
Use this case's rules on five situations. The reason shows as soon as you choose.
1. The same email address submits the coffee machine rental form in the morning and again in the afternoon, with an extra line in the message.
2. A café submits the form, but there is no web snapshot for the company and the form only has a name and phone number.
3. A law firm submits a lead. Its web snapshot includes a news item about layoffs and a partner’s personal email address.
4. The form’s email domain belongs to a logistics company that is already an open opportunity in the CRM, and Nick is working it.
5. A form message reads: “Are you hiring baristas? I have three years’ experience, CV attached.”
#Next steps
- Main: FDE Business course. Turn the 48 practice projects into portfolio work.
- Also: FDE Business fit test. See how close your background is to this kind of work.