匠人学院 JR Academy
Skip to article
Learning guide
FDE Guide

How to become a Forward Deployed Engineer and how the work is done: who hires FDEs, how the role differs from AI Engineer and Solutions Engineer, whether juniors can get in, certifications, and paths from engineering or business.

6 chapters·27 guides·Access varies by chapter
A Sales Lead Agent: Research, Scoring, Drafted Follow-ups and Approval
On this page

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?

ChoiceWhat you gainWhat you give up
Plain nodes filter before the agentUnsubscribed people and existing deals never reach the agentRules must be written as code up front
Agent reads local snapshots only, no web toolBackground is traceable; nothing unapproved is pulled inLess rich than live search; no snapshot means "insufficient background"
Score calculated by a code toolSame result today and tomorrow; Nick can see every pointThe agent cannot adjust a score by feel
Drafts pass a code check before SlackCatches wrong recipients, prices outside the sheet, sensitive wordsOne more step; a failed draft is rewritten once, then goes to a person
Nick approves before sendingNo unreviewed outbound emailA-grade reply speed depends on how fast Nick approves
CRM writes are pending onlyMistakes do not pollute live dataNick 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:

#InputExpected resultHuman involved?
1Same email submits twice in a dayMerge into the earliest; add the later message to itNo
2Email domain matches an open CRM dealNo new lead; notify the deal ownerYes, owner follows up
3Email is on the do-not-contact listNo score, no draft, log onlyNo
4SEO pitch or job applicationExcluded; job applications go to the ownerJob application, yes
5No web snapshotMark "insufficient background", background score 0, invent nothingNo
6Snapshot contains a partner's emailDraft goes to the form email onlyNo
7Snapshot mentions layoffsScore as normal; the email says nothing about itNo
8Lead outside the service areaGraded C; polite note that the area is not served yet; no sellingNo

#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?

SkillHow it shows up here
Filter-then-research flow designPeople who must not be contacted never reach the agent
Setting an agent's permission boundaryFour tools; no web access, no sending
Turning scoring rules into auditable codeThe model does not decide the score
Handling dirty and missing dataNo snapshot, stale snapshot, unusable details inside a snapshot
Designing human approvalSlack approval and the draft check
Spotting a compliance boundary and writing it into the proposalMarketing 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. 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. 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. 3. A law firm submits a lead. Its web snapshot includes a news item about layoffs and a partner’s personal email address.

  4. 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. 5. A form message reads: “Are you hiring baristas? I have three years’ experience, CV attached.”

#Next steps

Published by
JR Academy
Learning resources

Individual authors and reviewers are credited where recorded.

Related Roadmaps

Done reading? Next steps