Voice sales system
The whole sales loop around the voice agents: inbound and outbound AI calls, CRM sync, orchestration, a Postgres data layer, automatic call review, and an admin panel where the sales team works with leads, calls and agent settings.
- Two generations: a first version with its own test suite and prompt iterations, then the current system from the tender breakdown to live customer calls, with server tools, orchestration, database, admin panels and a separate development environment.
- Prices, discounts and order state are decided on the server. The agent can only ask through tools, so nothing a caller says can change a price.
- Every tool call is idempotent by its call id, so a retry from the voice platform never creates a second order.
- Before each outbound call the system checks the do-not-call list and the lead's local calling window; a lead is claimed atomically in Postgres, so two workers never dial the same person.
- A second model reviews every call and may report an error only with a quote from the transcript; critical cases go to the team in Telegram.