automation lab
Human-in-the-loop AI sales agent
An AI sales outreach workflow that drafts tailored lead responses with AI, pauses for human review via interactive Gmail approval, and intelligently routes reviewer feedback through a revision loop.
What this demonstrates
High-stakes AI automations need human review before executing outward actions.
Combining AI agents with asynchronous wait-for-approval nodes ensures speed and quality control without sacrificing full operational reliability.
The project
Fully automated AI email dispatch can be risky when responding to high-value leads. Without guardrails, subtle tone mismatches or hallucinated facts can harm client relationships.
This Human-in-the-Loop (HITL) workflow solves this by inserting a human checkpoint directly inside the email review loop. When a new lead is logged in Airtable, an AI Sales Agent queries a past projects database tool to craft a customized outreach email. Instead of sending immediately, the workflow triggers an interactive Gmail notification (
sendAndWait) requesting explicit human approval.Upon receiving the reviewer's feedback, an AI Text Classifier categorizes the response as "approved" or "decline/changes requested". Approved emails are sent immediately to the lead; if revisions are requested, an AI Revision Agent incorporates the reviewer's notes before finalizing the outreach.
Workflow anatomy
01 / trigger & draft
Airtable Lead & Sales Agent
Monitors Airtable for new leads. The AI Sales Agent searches a past projects database tool and drafts a targeted email proposal.
02 / pause & review
Interactive Gmail Approval
Sends an approval email (
sendAndWait) to the human operator containing the lead context and generated draft, pausing the workflow until a reply is received.03 / classify & route
Feedback Classification
An AI Text Classifier analyzes the operator's response to determine if it is approved or requires revision.
04 / dispatch or revise
Send or Revision Agent
If approved, the email is dispatched to the lead. If changes are requested, the AI Revision Agent updates the content prior to dispatch.
Interactive system architecture
Explore the connected nodes, data payloads, and execution pathways for this human-in-the-loop pipeline. Click any node to inspect its operational role.
HITL Sales Pipeline
Airtable & AI
01. Lead & Sales Agent
Monitors Airtable, queries past projects tool, drafts email.
Gmail Send & Wait
02. Human Checkpoint
Sends approval email (
sendAndWait), pausing workflow execution.AI Classifier
03. Intent Classification
Analyzes operator reply for approval vs revision request.
Router & Dispatch
04. Send or Revise
Dispatches approved email or loops through AI Revision Agent.
Node Inspector
Click any node above to inspect its exact input parameters, credential scopes, and execution behavior.
Stack
Airtable + AI Agents + Gmail
Trigger
Airtable trigger
Nodes
11
Review mechanism
Gmail send & wait
AI Components
Sales Agent, Revision Agent, Classifier
Status
Documented
The downloadable export is redacted. It omits Airtable base/table IDs, credential access tokens, Gmail OAuth credentials, webhook IDs, and instance identifiers; reconnect your own Airtable and Gmail credentials after import.
0 likes · 0 views · Dec 4, 2026
Built a sales outreach workflow that drafts tailored emails, pauses for Gmail review, and routes feedback to approval or revision.