Example 1: Inbound B2B lead triage and Gmail draft generation
Rules vs. AI Split
- Use deterministic rules for: Filtering out disposable email domains, checking if the form's numeric
team_sizefield is>= 10, and deduplicating against existing rows in Google Sheets. - Use an AI step for: Classifying the free-text inquiry into 1 of 5 industry buckets, summarizing the buyer's core pain point in one line, and writing a tailored Gmail draft (never auto-sent).
Step-by-Step Workflow Blueprint
- Trigger & Input Validation: Make watches new Webflow form submissions, normalizes the email to lowercase, and checks a Google Sheets tab for an existing row with that email in the last 30 days.
- Deterministic Pre-Processing: A standard router checks the dropdown
team_size. Leads under 10 seats route directly to a self-serve resources template without calling the LLM. - Structured AI Step: For 10+ seat leads, pass
company_name,role, andinquiry_textto an LLM requesting strict JSON:{ "industry": "...", "pain_summary": "...", "questions_asked": [...], "draft_reply_body": "..." }. - Human-in-the-Loop Checkpoint: Create a Gmail Draft (not a sent email) in the rep's inbox and post a Slack notification with the summary and a link to review the draft.
- Final Action & Logging: Append the structured fields, timestamp, and draft status to the Google Sheets tracker.
Failure Modes & Guardrails
- Form spam or prompt injection: Strip URLs from
inquiry_textand cap input at 1,000 characters before passing to the LLM. - Blank or cryptic messages: Instruct the prompt that if
inquiry_textcontains fewer than 5 words, use a standard discovery question template rather than guessing the prospect's industry.
2-Hour Pilot Plan
Export last week's 15 form submissions to a test Google Sheet. Run the structured prompt manually on those 15 rows first and have your sales rep grade whether the Gmail drafts needed heavy editing before wiring up the live Make webhook.