All posts

Reducing operational lag by enabling direct API execution in voice conversations

Learn how Duvi enables AI agents to execute API calls during voice calls to update records in real time and eliminate human administrative queues.

A customer calls a service provider to change a shipping address or reschedule a technician. They speak to an automated system that captures their intent and promises that a human will update the record later. This creates a window of high risk. If the human agent does not process that note before the next automated warehouse cycle, the package goes to the wrong city. The business pays for a support interaction that failed to solve the problem in real time.

Most automated agents operate in a read only state. They can answer questions based on a knowledge base, but they cannot change the state of the business. This forces a hand off to a human for any task that involves a database. The result is a queue of administrative tasks that slow down the entire operation. This inefficiency defines the tool call threshold, where agents that only talk end up draining support resources.

Moving beyond simple retrieval

Effective automation requires the agent to act on the information it holds. Duvi provides this by allowing agents to call HTTP APIs or Salesforce as tools. When a customer calls a phone number or sends a WhatsApp message, the agent identifies the intent. This process is how Duvi is replacing the phone tree with contextual intent. The agent avoids guessing by calling the business API to pull the live tracking number.

This functionality turns the agent into a functional extension of the operations team. Because the agent uses the same logic across every surface, a customer can start a request on the website and finish it over a phone call. Context remains. The agent can verify a customer identity before hitting a sensitive endpoint by following the logic defined in the prompt. This shift is necessary because RAG is insufficient for transactional customer support where state changes are required.

Handling structured data across channels

Voice conversations often involve messy data that must be mapped to a strict API schema. A caller might say their serial number is B as in Bravo followed by zero four nine. A standard LLM might struggle to format this for a database entry. Duvi handles this phonetic mapping by grounding the agent in the material of the business. The agent uses the website data and uploaded files in its vector store to understand the context. It knows what a valid serial number looks like for that specific company.

When a task requires a specific input that the user cannot provide immediately, the agent can pivot the channel. If a caller is driving and cannot read a long alphanumeric code, the agent can transition incomplete voice tasks to asynchronous WhatsApp threads. The customer replies with a photo or a text when they are able. The agent receives that data, validates it against the API requirements, and completes the backend update.

Deployment without engineering overhead

Building a system that connects a voice interface to a private API usually requires a dedicated engineering team to manage the telephony stack and integration logic. Duvi removes this requirement. Launching an agent involves pointing the builder to a website for crawling and uploading relevant documentation. Businesses can also capture service leads after hours through automated knowledge retrieval without additional staffing.

The business connects its own communication infrastructure, such as a Twilio number or a Meta WhatsApp Business account. This ensures the business maintains ownership of the customer relationship and the phone numbers. Usage is managed through credits. This allows for scaling based on actual call and message volume without hardware investment.

Closing the loop with analytics

Every conversation that results in an API call is recorded and analyzed. This provides a clear view of which tasks are being automated and which ones still require human intervention. If an agent consistently fails to execute a specific tool, the transcript shows exactly where the logic diverged. Managers can refine the prompt or update the API documentation in the vector store to improve the success rate.

This visibility allows a support team to identify bottlenecks in the API itself. If the agent attempts to update a record but receives a timeout or a 403 error from the business server, the analytics dashboard highlights the failure. Resolving the phone line bottleneck requires fixing the underlying infrastructure, which improves the experience for both the AI agents and the human staff who use the same tools.