This was part-time work on a conversational platform that re-engaged leads and
recovered sales through WhatsApp. I worked across the whole path: the channel
webhook, backend, agent logic, database and the interface used to follow the
process.
Leads often stopped replying during a sales journey. A fixed follow-up message
could not adapt to the person or to what had already been said, and every
interaction depended on a real-time pipeline that had to stay available.
The platform had to receive provider events, understand which customer and
conversation they belonged to, decide what to say, store the result and reply,
while keeping the experience fast. Each message crossed webhook, database,
context, agent and an external API, so failures could appear at every step.
The channel provider delivered inbound events to a FastAPI webhook. The backend
validated and parsed the event, identified the customer and conversation, loaded
the state it needed, ran business and agent logic, persisted the interaction and
sent the reply through the WhatsApp Business API. Keeping responsibilities
separate at each step made failures easier to place.
I developed LLM agents that used lead context and conversation history to write
follow-ups more relevant than a static template, continuing the journey with
little manual work. After the workflows went into production I observed roughly a
45% rise in lead response rate. I present it as an observed product metric, not
as proof that the AI alone caused it.
The model does not remember by itself. The application persisted conversation
state and customer context and rebuilt only the relevant context for each turn,
instead of sending an ever-growing history that raises tokens, latency, cost and
noise. Persistent state also had to be shared across the backend, automations
and integrations, so it lived in PostgreSQL rather than only on the client.
A conversation produces many writes: messages, status, state and workflow events.
As volume grew, important queries became costlier, so I worked on the PostgreSQL
data model and query patterns for that load while preserving data integrity.
Latency on the affected queries fell by roughly 35%. That was a before-and-after
observation on those queries, not a benchmark of the whole database.
In the Vue.js and Supabase interface I added optimistic updates where an action
was safe and reversible: the screen changes at once, syncs in the background and
rolls back with an error if it fails. Perceived loading time dropped by roughly
45% in the affected flows. I avoid this pattern for irreversible or financial
actions.
- About a 45% observed increase in lead response rate after re-engagement flows.
- About 99.9% production availability, a platform-level outcome rather than the
result of one change I made.
- About 35% lower latency on the affected PostgreSQL queries.
- About 45% lower perceived loading in the optimistic-update flows.
The value was in following one workflow from an incoming message to the stored
state, the agent decision, the outgoing reply and the screen the team uses.
Memory, availability and database design have to be considered together in a
conversational product.
I would strengthen webhook idempotency and tracing, separate synchronous from
asynchronous work more explicitly, add metrics per stage, and treat AI quality
checks as part of every deployment.