Building AI Agents in Production: Parcha's Lessons on Async Architecture, Multi-Agent Coordination, and Error Recovery
Parcha's initial naive approach to building AI agents for compliance and KYB workflows suffered from WebSocket reliability issues, context window overload from single-agent SOPs, no error recovery mechanisms, LLM hallucinations causing tool failures, and tightly coupled agent implementations that could not be reused.
Parcha's initial build used WebSocket connections for bi-directional communication, a single agent with the full SOP embedded in its scratchpad, the scratchpad alone for memory, and no failover or exception handling, causing the agent to fail unrecoverably on any step error.
Parcha rebuilt their agent architecture with async long-running tasks via pub/sub, a coordinator/worker multi-agent model to contain context windows, Redis-based shared memory, well-typed exception handling for agent self-correction, and reusable composable tool building blocks, significantly reducing catastrophic failures.
Frequently asked questions
What did this team achieve with this AI workflow?
Parcha rebuilt their agent architecture with async long-running tasks via pub/sub, a coordinator/worker multi-agent model to contain context windows, Redis-based shared memory, well-typed exception handling for agent…
What tools did this team use?
Langchain Agents, Redis, RQ, OCR, Slack.
What results were reported?
Catastrophic agent failures: reduce the number of catastrophic failures significantly (source-reported, not independently verified).
What failed first in this deployment?
Parcha's initial build used WebSocket connections for bi-directional communication, a single agent with the full SOP embedded in its scratchpad, the scratchpad alone for memory, and no failover or exception handling,…
How is this kyc aml AI workflow structured?
Agent triggered via API or Slack → Coordinator plans from master SOP → Worker agents gather evidence → Document extraction step → Separate judgment step → Agent self-correction on error → Human escalation when needed → Final recommendation output.