Skip to main content

How Hanc.AI Works

This page explains the technical architecture of the Hanc.AI platform — how different components work together to create intelligent voice conversations.

System Architecture Overview


Call Flow: Step by Step

Scenario: Customer Calls Your Business

Let's trace what happens when a customer calls your Twilio number connected to a Hanc.AI agent:


Component Deep Dive

1. Speech-to-Text (STT)

Converts the customer's voice into text that the AI can process.

Key features:

  • Real-time processing (< 500ms latency)
  • Multi-language support
  • Accent adaptation
  • Background noise handling

2. AI Engine (LLM)

The "brain" that understands context and generates responses.

3. Knowledge Base (RAG)

Retrieves relevant information from your documents.

4. Text-to-Speech (TTS)

Converts the AI's text response into natural-sounding speech.

Voice options:

  • Multiple languages
  • Male/Female voices
  • Different ages and styles
  • Adjustable speaking speed

Data Flow

What Data is Stored?

Data Privacy

Data TypeStorageRetentionAccess
Call recordingsEncrypted cloud storageConfigurableWorkspace admins only
TranscriptsDatabaseConfigurableWorkspace members
Knowledge BaseDatabase + Vector storeUntil deletedWorkspace members
User accountsDatabaseUntil account deletionUser + admins
AnalyticsAggregated database12 monthsWorkspace members

Integration Points

Phone Integration (Twilio)

Calendar Integration

Webhook Integration


Performance Characteristics

Latency Breakdown

StageTypical LatencyDescription
STT Processing200-500msConverting speech to text
LLM Processing500-1500msAI generating response
RAG Retrieval100-300msSearching knowledge base
TTS Generation200-400msConverting text to speech
Total1-3 secondsEnd-to-end response time

Scalability

The platform handles:

  • Concurrent calls: Hundreds of simultaneous conversations
  • Knowledge base size: Millions of document chunks
  • Global availability: Multi-region deployment

Security Architecture


Summary

The Hanc.AI platform combines multiple technologies:

  1. Voice Processing — Real-time speech-to-text and text-to-speech
  2. AI Intelligence — Large Language Models for understanding and response
  3. Knowledge Retrieval — RAG system for business-specific information
  4. Telephony — Phone number management and call routing
  5. Integrations — Calendars, CRMs, and custom webhooks

All these work together seamlessly so you can focus on configuring your agent's personality and knowledge, while the platform handles the technical complexity.


Next Steps