Hard-E v3.0

Technical Overview — Architecture, Capabilities, and Integration

← Back to harde.app

Hard-E is a production-grade, multi-tenant conversational AI built for the contracting industry. It connects to a contractor's CRM and operates as a voice-first sales director — executing CRM actions, managing email and SMS, answering product questions from uploaded documentation, and learning from every interaction.

Architecture

Hard-E is built on four layers: the brain (LLM orchestration), the voice (real-time WebRTC pipeline), the memory (persistent learning), and the tenant framework (multi-company isolation).

The Brain

The core intelligence runs on Anthropic Claude Sonnet. When a user speaks or types, Claude classifies intent, selects which CRM tools to call, executes them (in parallel where possible), and formulates a natural-language response. A per-tenant "Soul Document" defines personality, product opinions, and company-specific behavior.

The Voice Pipeline

Real-time, two-way voice conversation is delivered through a full-duplex WebRTC pipeline built on Pipecat, an open-source framework for voice AI agents. The pipeline coordinates four services simultaneously:

End-to-end voice latency is under 2 seconds. When a voice session ends, the system automatically summarizes the conversation and saves key learnings to persistent memory.

The Memory System

Hard-E uses a three-tier learning architecture that makes it get smarter over time:

Multi-Tenant Framework

Each company operates in complete isolation — encrypted CRM credentials, private knowledge base (S3-backed), separate memory, and customizable personality. A guided onboarding flow configures a new tenant in minutes. Trial accounts are provisioned through invite links with configurable time and message limits.

CRM Integration

Hard-E provides deep, bidirectional integration with Leap CRM through 18 specialized tools:

Customer lookup and creation Job details and stage management Job notes with @mention notifications Email reading, listing, and sending Native SMS texting through Leap Prospect creation (customer + job) Proposal management and search Appointment scheduling and updates Financial reporting (invoices, payments) Task creation and assignment Document and worksheet management Production schedule and crew views Sub-contractor lookup Company config (stages, trades, teams)

Custom workflow stages are resolved dynamically — Hard-E fetches and caches each company's stage configuration rather than relying on hardcoded mappings. Compound tools execute multiple API calls in parallel via asyncio.gather, reducing latency by ~50% on multi-step queries.

Direct Tools API

Hard-E exposes a RESTful API that allows external AI agents and automation platforms to execute CRM tools directly — without routing through the LLM layer.

API keys are tenant-scoped, revocable, rate-limited, and audit-logged. This API has been validated in production with an external automation agent running 300+ calls per day.

Knowledge Base

Hard-E processes training documents through chunk-based retrieval-augmented generation (RAG). Documents are stored in S3, split into ~1,500-character chunks, scored for keyword relevance against each query, and the top-ranked chunks feed the LLM response. Current product expertise includes:

Each tenant can upload their own documents (.txt, .md) to build a private knowledge base specific to their business — pricing sheets, SOPs, product guides, sales scripts.

Security

3-Tier Safety Policy

Infrastructure

Performance

MetricPerformance
Voice latency (end-to-end)Sub-2 seconds
TTS time-to-first-audio~40–90ms
STT transcriptionReal-time streaming
CRM lookup (parallel compound)~3–4 seconds
Simple question response~1.5–2 seconds
Direct Tools API executionSub-1 second
Knowledge base retrieval~2–4 seconds

Technology Stack

FastAPI (Python) React + TypeScript Anthropic Claude Pipecat Deepgram STT Cartesia TTS Silero VAD WebRTC Leap CRM AWS EC2 + S3 Redis Nginx

Getting Started

Contractors can try Hard-E through an invite-based trial system. Each trial provides a private tenant with configurable time and message limits. During signup, connecting a Leap CRM API key enables the full 18-tool CRM integration immediately. No Leap-side changes are required — Hard-E operates on Leap's existing published API.

Want to test it? Contact us for a trial link. Plug in your Leap API key during setup and Hard-E connects to your CRM data immediately. Full voice mode, all 18 tools, your own private knowledge base.

Roadmap

← Back to harde.app