AI agent project2 min read
CRM Follow-up Agent

Tech stack
Services
- →CRM webhook integration and event routing
- →AI-drafted follow-up emails using lead context
- →Automated deal stage updates via CRM API
- →Task creation and sales cadence enforcement
- →Lead scoring and urgency classification
- →Slack alerting with one-click email send
Deliverables
- ✓Real-time CRM event monitoring via webhooks
- ✓Context-aware follow-up email drafts, personalised per lead
- ✓Automated stage transitions based on activity signals
- ✓Slack alerts with hot-lead notifications and draft approval
- ✓Cadence rulebook, automatic task creation on inactivity
Challenge
A sales team was managing 80, 120 new leads per week across two pipelines. Follow-up timing was inconsistent, hot leads went cold while reps worked existing deals. Deal stages in the CRM were updated manually and often lagged reality by days. Management had no reliable visibility into pipeline health. The problem wasn't the salespeople; it was the volume of mechanical CRM work that competed with actual selling time.
Options Considered
- CRM automation rules (sequences, triggers), available in most CRMs, but template-based. Follow-up emails were generic and impersonal; reps turned them off after complaints.
- Dedicated SDR hire, would have solved the follow-up problem but at 3, 5× the cost of the AI solution, with onboarding time and management overhead.
- AI agent monitoring CRM events via API: chosen. The agent drafts context-aware emails using the lead's form data and prior conversation, updates stages based on activity signals, and pings the rep only when genuine action is required.
Decision
The agent subscribes to CRM webhook events, new lead created, email opened, link clicked, meeting attended. On each trigger it decides the appropriate action: draft a follow-up email, advance the deal stage, create a task for the rep, or send a Slack alert. Drafts go into a review queue; the rep approves in one click and the email sends. Stage updates and tasks apply immediately without rep action.

Implementation
A Python backend handles CRM webhooks and routes events to the agent. The agent uses the lead's source, form answers, and conversation history to draft emails that reference specific details rather than generic templates. GPT-4 classifies each event against a lead scoring rubric and determines the urgency tier. High-urgency leads trigger a Slack notification to the assigned rep with the draft email and a one-click send button via Slack's Block Kit.
Deal stage logic is encoded as a state machine: the agent maps each activity type to an allowed stage transition and updates the CRM via API. Task creation follows a cadence rulebook, if no activity in 3 days, create a task; if email opened twice, escalate urgency.
Outcome
Median first follow-up time dropped from 28 hours to under 2 hours. CRM stage accuracy improved to near real-time. Sales rep time spent on CRM data entry cut by approximately 70%. Pipeline visibility for management went from unreliable to live.
Related
Projects

Traffic Connect, AI Content Orchestration for WordPress Sites
Before: AI article generation had to be run across many WordPress sites, with no single place to control it. After: one admin dashboard queues tasks for every site, and each site picks up its own work through a plugin, built from scratch in about a month.

PREZA, School Presentation Sites with 80,000+ Generated PDFs
Before: school presentation sites needed tens of thousands of ready files that nobody could produce by hand. After: grabbers, parsers and automated multi-threaded generation produced more than 80,000 PDFs, stored in Selectel cold S3 and published on preza.kz and preza.top.

AtomPk Grabber - Product Lists into CSV on Demand
Before: a partner needed the product list off a website collected into CSV again and again, by hand. After: a double-clickable executable that walks the catalogue and writes the CSV, with no Python to install and nothing to configure.
Open for contract collaboration
I am available for contract-based collaboration. If you have an interesting project idea, schedule a call via Calendly.
Schedule a 30-min call