Multi-agent engineering
CrewAI Customer Support
A sequential multi-agent support system that answers directly, researches the web when it has to, and persists its work.
- 3sequential agents
- 2controlled experiments
- 0extra model calls to validate decisions
- HTTPSlive on a VPS
01The problem
Learning when agents actually earn their place.
The project began as a buildathon task: a sequential three-agent customer-support workflow in CrewAI. It was then extended into a controlled learning lab, to answer a harder question than “can I use agents?”: when does agent orchestration add value, and when would plain code do?
Its guiding principle is to use agents deliberately, not by default: keep deterministic work deterministic, and bring in runtime reasoning only where it creates real value.
02What I built
A support workflow that decides how to help.
- 01Sequential agentsSpecialised CrewAI agents hand work to one another in a defined order.
- 02Direct assistanceRequests the system can answer are handled directly by the agents.
- 03Web researchA search tool brings in outside information when a request needs it.
- 04Dynamic decisionsThe workflow chooses between answering and researching based on the request.
- 05PersistenceSupport work is persisted rather than discarded after each run.
03How it works
From request to recorded response.
- Customer request
- Sequential agent workflow
- Direct help or web researchChosen per request
- Guardrails & evaluation
- Response & persistence
04Decisions that mattered
What I chose, and why.
The reasoning behind the build, not just the parts list.
- 01Three agents with separate jobsAn assistant agent answers from model knowledge and does not claim web verification. A web-search agent retrieves current information and grounds the answer. An entry agent consolidates both into a structured support record ready for validation and persistence.
- 02Build the fixed workflow twiceExperiment 1 runs the same known path as plain Python and as CrewAI, with the same evidence and the same output guardrail so the comparison is fair. The conclusion: if the path is already known, explicit orchestration may be simpler, and agents should not be added just because there are several stages.
- 03Then test a path that is not knownExperiment 2 compares developer-written routing with an agent choosing among a bounded set of simulated capabilities. It makes no real external calls. The question it isolates is where the decision is made.
- 04Guardrails belong outside the promptEvery request passes deterministic validation and then an AI safety check before any agent, search, tool or persistence runs. A separate output guardrail checks the result, and temporal validation catches freshness words such as latest or upcoming so an old date is never presented as current.
- 05Evaluate with independent evidenceEvidence used to generate an answer is kept separate from the evidence used to judge it. Decision validation is deterministic and trace-based: routing trace, allowed capabilities, tool-trace integrity and action claims, with zero additional OpenAI or search calls.
- 06Spend model calls where reasoning helpsShared workflow evidence, a session search cache (exact, near-duplicate and date-scoped) and bounded session memory without a separate model call keep cost down. Where an LLM is unnecessary, validation is deterministic.
05Engineering evidence
Controlled, evaluated and deployed.
Controls
- Guardrails shape what the agents are allowed to do and return.
- Evaluations check how the workflow behaves.
Deployment
- Packaged with Docker.
- Deployed to a VPS as a portfolio demonstration build.
06Under the hood
Stack, lessons and limits.
Stack by layer
- Interface
- Streamlit, with live stage and trace views
- Agents
- CrewAI, Python 3.11
- Model and search
- OpenAI, Serper web search
- Persistence
- Text-file support record; session memory in Streamlit state
- Deployment
- Docker, Docker Compose, Traefik, Let’s Encrypt, Hostinger VPS
What I learned
- Agents are not automatically better. Runtime uncertainty is what changes the equation.
- Guardrails must be consistent across every execution path. A post-deploy error appeared because the plain-Python path had not been given the same output-guardrail variables as the agent path.
- Deployment is part of the product. HTTPS problems were diagnosed layer by layer: DNS, application health, routing, then certificate.
- Host and container ports are independent, and commit identity is separate from authentication. Both showed up as real deployment snags.
- Edit on the laptop, push, then pull and rebuild on the server. Do not change source on the VPS.
Honest limits
- Experiment 2 uses simulated capabilities, not real billing or account actions.
- Session memory is session-scoped, not a shared store.
- Support records are persisted to a plain text file.
The repository holds the agents, tools and workflow.