← back to portfolioAutomation / AI

Lead qualification and follow-up automation (B2C)

Audit and stabilization of a conversational-AI lead-qualification automation for a B2C solar-energy client, eliminating lead duplication and a messaging channel that was silently failing.

Context

A B2C solar-energy client with a meaningful volume of leads coming from social-media ad campaigns and intake forms. The operation already had a conversational-AI qualification automation and a scheduled follow-up routine, but the system had grown in successive layers — with no documentation, no versioning, and no diagnostic instrumentation.

Problem

Approach

Freeze and fix critical issues first (full system mapping, removal of obsolete automations, fixing the highest-impact bugs), then add idempotency and concurrency guards at the orchestration layer, plus a discipline of snapshotting state before any production change.

Outcome

Lessons

Always snapshot a workflow’s state before editing it in production, and treat any scheduled routine that writes state as requiring an explicit idempotency guard — an “insert” without a prior existence check is the most common cause of duplication in automation systems.