Anisha: A 10-Day Voice Agent for Learning & Literacy

In a feat of rapid development, Ashish Kumawat built Anisha, a sophisticated voice agent designed to support learning and literacy, over a mere 10-day period. This agent goes beyond simple Q&A, offering a comprehensive suite of features including conversational interaction, user memory, tailored learning exercises, outbound calling capabilities, human agent escalation, outcome tracking, and seamless handoff to specialists. The project showcases the power of modern AI tools and real-time communication platforms when combined effectively.

The architecture of Anisha is built upon a robust stack of technologies. Python serves as the primary programming language, providing a flexible and powerful environment for development. For real-time voice communication, LiveKit was chosen, enabling fluid and interactive user experiences. Text-to-speech (TTS) is handled by Murf Falcon, ensuring natural-sounding voice output. At the core of Anisha's intelligence is a Large Language Model (LLM), responsible for reasoning and decision-making. Custom tools and a memory system allow Anisha to personalize interactions and recall user history. Crucially, the agent incorporates human escalation and specialist handoff mechanisms, ensuring that complex or sensitive issues are addressed by human experts. Call analytics are also integrated to monitor performance and user engagement.

Diagram illustrating Anisha's core user interaction flow

Core Interaction Flow and Capabilities

The fundamental interaction loop for Anisha is designed for efficiency and intelligence. A user's speech is first processed by Speech-to-Text (STT) to convert it into text. This text then feeds into the LLM, which interprets the user's intent and determines the appropriate action. This action could involve querying or updating the agent's memory, triggering custom tools for specific tasks, or initiating an escalation to a human specialist. The LLM's response is then synthesized into speech using Murf Falcon's TTS engine before being delivered back to the user. This cycle allows for dynamic and responsive conversations.

Anisha's capabilities are not confined to a single language or dialect. The agent is designed to handle both Hindi and natural Hinglish, a common blend of Hindi and English spoken in India. This linguistic flexibility is key to making the learning experience more accessible and comfortable for Indian learners, catering to their everyday communication patterns. The goal is to reduce friction and enhance engagement by meeting users in their preferred linguistic style.

Step-by-Step Capability Development

Instead of attempting to build all features simultaneously, Kumawat adopted a phased approach, incrementally adding capabilities over the 10 days. This strategy allowed for focused development and testing at each stage.

Memory and Personalization

A critical early addition was the memory system. Anisha can now store and recall relevant information about returning users. This means the agent can greet users by name, remember previous topics of discussion, and tailor subsequent interactions based on past performance or preferences. This personalization is vital for building rapport and creating a more effective learning environment. For instance, if a user struggled with a particular grammar concept in a previous session, Anisha can proactively offer exercises related to that concept in the current session.

Learning Tools and Exercise Tracking

Anisha is equipped to provide interactive learning exercises. These can range from vocabulary drills and grammar quizzes to comprehension checks, depending on the learning domain. The agent actively tracks the user's success rate and performance on these exercises. This data is crucial for assessing progress, identifying areas needing further attention, and adjusting the learning path accordingly. The system aims to provide targeted practice that reinforces learning and builds confidence.

Outbound Calls and Human Escalation

Expanding beyond inbound interactions, Anisha can initiate outbound calls. This feature can be used for reminders, follow-ups on incomplete exercises, or to proactively check in on a learner's progress. In situations where Anisha cannot adequately address a user's query or when a user expresses significant difficulty or distress, the agent can escalate the conversation to a human specialist. This ensures that learners receive the appropriate level of support, whether it's technical, pedagogical, or emotional.

Specialist Handoff and Analytics

The handoff mechanism is designed to be smooth and context-aware. When a conversation is transferred to a specialist agent, all relevant context from the Anisha interaction is passed along. This includes the user's history, the current topic of discussion, and any specific issues encountered. This prevents the user from having to repeat themselves and allows the specialist to quickly understand the situation. Furthermore, comprehensive call analytics are collected, providing insights into user engagement, session duration, exercise completion rates, and escalation frequency. This data is invaluable for improving Anisha's performance and the overall learning program.

The Technology Stack Behind Anisha

The choice of technologies reflects a focus on real-time interaction, intelligent processing, and practical application:

  • Python: The versatile backend language for logic and integration.
  • LiveKit: A robust open-source platform for real-time audio and video, enabling seamless voice conversations.
  • Murf Falcon: A high-quality text-to-speech engine for generating natural-sounding voice responses.
  • LLM: A foundational model (likely a fine-tuned version of a popular open-source or commercial LLM) for understanding natural language, reasoning, and decision-making.
  • Custom Tools & Memory: Bespoke components for managing user data, tracking progress, and executing specific learning tasks.
  • Human Escalation & Specialist Handoff: Integration points with human agent platforms for seamless transfer of conversations.
  • Call Analytics: Systems for collecting and analyzing interaction data to measure effectiveness and identify areas for improvement.

The project's success in a 10-day timeframe highlights the accelerating pace of development possible with modular AI components and efficient real-time communication infrastructure. Anisha represents a significant step towards more accessible and personalized learning experiences through voice technology.