Voice agent for lead management
Summary
Conversational workflows for a real-estate SaaS product.
Lead handling required repeated conversations, collection of structured details and updates to business records.
A voice pipeline combining speech recognition, dialogue control, retrieval, entity extraction and database updates inside a SaaS workflow.
Tech Stack
- Python
- OpenAI
- Cohere
- Anthropic
- Deepgram
- ElevenLabs
- Twilio
- Retrieval-Augmented Generation (RAG)
- Milvus Vector Database
- Prompt Engineering
- AWS
Project workstreams
- 01
2 weeks
Solution Architecture Design
Solution ArchitectTechnology Stack Setup
Solution Architect - 02
4 weeks
LLM Integration & Configuration
NLP EngineerSpeech-To-Text Encorporation
NLP EngineerText-to-Speech Implementation
NLP EngineerApplication Interface Setup
Python EngineerEnvironment Setup
Python Engineer, DevOps - 03
4 weeks
Integration with Twilio
Python EngineerEnabling SMS & Chat Interactions
Python Developer - 04
4 weeks
Dialog Behavior Design
NLP EngineerConversation Flow Setup
NLP Engineer, Python EngineerLatency Optimization
NLP Engineer, Python Engineer, DevOpsRAG Integration
NLP Engineer - 05
2 weeks
Documentation
Solution ArchitectIntegration, Testing, and Deployment
QA Engineer, DevOps Engineer
Tech Challenge
- Natural Voice Interaction. The AI Agent must talk with a natural, human-like voice to avoid sounding robotic, which is typically associated with spam calls.
- Low Latency Communication. When handling the voice calls, the LLM-based agent must have an overall latency as speaking to a real person.
- Dynamic Conversation Management. Providing clear and concise instructions to the assistant to manage conversations effectively, dynamically changing states based on client responses.
- Information Gathering. Efficiently gather information about leads and their properties while maintaining conversational flow.
Solution
- Used ElevenLabs for advanced text-to-speech synthesis, providing the assistant with a natural and friendly voice that reduces the likelihood of being perceived as spam.
- For speech recognition, the solution includes a self-hosted version of a Deepgram to ensure low latency and high quality of a solution.
- A special decision maker model such as OpenAI 4o-mini, is used in the system to adjust the flow of the conversation in real time. This model analyzes interactions and determines when to change dialogue strategies to ensure smooth transitions and appropriate responses.
- Implemented LLM-based entity recognition to extract key information about leads and their properties during conversations, and automatically process and log data for follow-up interactions.
- Enabled the agent to dynamically retrieve relevant information during conversations, enabling more accurate and contextually appropriate responses.
Impact
Outcome
A SaaS-integrated voice agent for lead conversations, information capture and updates to business systems.
Published
