In one sentence
Students assemble everything they've learned into an end-to-end lead engine, architected as small connected scenarios.
Preparation before the session
Time plan
- 00:00โ00:15 Recap: voice assistant
- 00:15โ00:40 Lead Engine architecture
- 00:40โ01:10 Intake, normalization, dedupe and enrichment
- 01:10โ01:25 โ Break
- 01:25โ01:50 AI scoring, assignment and Speed-to-lead
- 01:50โ02:15 Nurture and the content engine
- 02:15โ02:50 Build together: Lead Engine
- 02:50โ03:00 Wrap-up and practice
Lecture parts and activity type
| Part | Activity type |
|---|---|
| Lead Engine architecture | Architecture |
| Intake and normalization | Explanation |
| Dedupe, enrichment and combined scoring | Explanation |
| Assignment and Speed-to-lead | Demo |
| Nurture | Explanation |
| Content engine | Demo |
The 3 messages that must get across
- One scenario per stage.
- Speed-to-lead is money.
- The law and human approval.
Questions for class discussion
- Where do leads "fall through" for you?
- What's your current response time?
- Who approves content before publishing?
Live demo script
Shared normalization scenario
- Inputs โ New scenario โ Scenarios โ Start scenario + Scenario inputs: source, name, email, phone, company, message.
- Cleanup โ Set multiple variables.
- Dedupe โ Search the CRM โ Array aggregator โ Router.
- Return โ Return output.
- Intakes โ Tally โ Call a scenario; Webhook โ Call a scenario.
Combined score with AI
- Rules โ Set variable rulesScore.
- AI โ Prompt with an ideal customer profile (ICP) โ JSON.
- Combine โ {{round(rulesScore*0.6 + aiScore*0.4)}}.
- CRM โ Update: score, reason.
Round-robin + Speed-to-lead
- Assign โ Increment function โ owner.
- Message โ Telegram with Inline keyboard.
- Click โ In the bot's intake scenario: callback contacted โ Update CRM.
- Escalate โ Scheduling 10 min โ Search โ Telegram to the manager.
Problems students will run into
| Problem | Quick fix |
|---|---|
| Call a scenario can't find it | The scenario isn't On demand / has no Scenario inputs. |
| Format differs between sources | Map every intake to the same names. |
| AI gives everyone 90 | Give criteria and examples of a cold lead. |
| All leads go to the same rep | Increment function in a different scenario than the one running / wrong mod. |
| A lead gets 2 emails a day | nextTouchAt wasn't updated (error) โ Error handler + Update before sending? |
Tips from the classroom
- Draw one student's funnel on the board.
- Call a scenario โ demo it slowly.
- Stress the law โ it's not optional.
Adapting to different levels
For students who struggle: Normalization + Dedupe.
For fast students: AI SDR + UTM attribution.
Answer key โ multiple-choice questions
Students see the answers in shuffled order, so the key gives the wording of the right answer.
| # | Right answer |
|---|---|
| 1 | Update + notify the current owner |
| 2 | Increment function + mod |
| 3 | The salesperson understands why the lead is hot |
| 4 | Rules + AI with weights |
| 5 | A hot lead with no contact after X minutes |
| 6 | Prior consent + unsubscribe option |
| 7 | A human approves the draft |
| 8 | Instant |
Homework
- A Lead Engine with at least 2 sources.
- Prep for session 14: list all the scenarios you built in the course, who "owns" each one, and which connections they use.