Confidential

OpenClaw Personal CRM

Architecture Analysis & Development Effort Estimate
Prepared by Claude Code (Opus 4.6) · March 20, 2026 · For Max Votek, Customertimes AI Practice

01 Executive Summary

47 Total Features
2,500+ Lines of Code
$66,400 Traditional Cost
~$250 Claude Code Cost

Traditional Team

516h
4 months · 5 people · $66,400

Claude Code

~20h
Multiple sessions · 1 user · ~$250

A Telegram-integrated AI-powered networking tool built on OpenClaw. Combines a REST API backend, 13 AI-callable tools, behavioral conversation skills, vector knowledge store (BrainDB + pgvector), and LinkedIn enrichment into a unified personal relationship management platform.

02 System Architecture

Telegram UserOpenClaw Gateway (PID 14, ws://0.0.0.0:18789) ├── CRM Plugin ──────→ CRM REST API (16 endpoints) │ 13 tools ↕ PostgreSQL ├── BrainDB Plugin ──→ PostgreSQL + pgvector │ 4 tools 106 knowledge entries │ Smart Recall ←───── parallel vector search + CRM lookup │ Entity Linking ────→ entities table (crm_contact_id) │ Auto-Capture ──────→ fire-and-forget background ├── LinkedIn Skill ──→ Apify HarvestAPI │ Profile enrichment $0.01/profile └── Strategic CRM Skill 550+ lines behavioral AI (RU/EN bilingual)

Smart Recall

Every incoming message triggers parallel cross-source lookup: BrainDB vector search (OpenAI embeddings → pgvector cosine similarity) + CRM name extraction and contact fetch. Both merged into context before LLM response. 3s timeout on all external calls.

Entity Linking

Entities table cross-references knowledge to people/companies. Each entity links to CRM via crm_contact_id. Enables "show me everything about Salesforce" → returns both vector knowledge AND structured CRM data.

03 Feature Inventory

3.1 CRM Backend API (16 endpoints)

#FeatureEndpointsComplexity
1Contact CRUD4 endpointsMedium
2Contact search (name, org, role)GET /contacts?search=Medium
3Contact filtering (circle, value)GET /contacts?circle=Low
4Interaction loggingPOST /interactionsMedium
5Task management4 endpointsMedium
6Goal managementGET/POST /goalsLow
7Contact-Goal linkingPOST /goals/linkLow
8Cross-entity searchGET /search?q=Medium
9Network summary dashboardGET /summaryHigh
10Smart recommendationsGET /recommendationsHigh
11API key authenticationMiddlewareMedium
12Duplicate detection (409)POST /contactsLow

3.2 CRM Plugin (13 AI-Callable Tools)

#ToolDescription
1crm_statusAPI connectivity check
2crm_summaryFull network dashboard — stats, stale contacts, tasks, goals
3crm_contactsSearch and filter contacts by name, circle, value
4crm_contact_detailFull profile + interactions + pending tasks
5crm_add_contactCreate with 16 fields + 4 strategic role flags + auto-dedup
6crm_update_contactPartial update any field including roles
7crm_log_interactionLog meeting/call/email with auto-contact name lookup
8crm_tasksList/create tasks (dual-mode tool)
9crm_update_taskUpdate task status and priority
10crm_goalsList/create goals (CAREER/BUSINESS/PERSONAL/NETWORKING)
11crm_link_contact_goalConnect contact to goal with role description
12crm_searchCross-entity search across contacts, tasks, goals
13crm_recommendationsAI-powered actionable networking recommendations

3.3 Strategic CRM Skill (Behavioral AI)

#FeatureDescription
13-Circle ModelSUPPORT / PRODUCTIVITY / GROWTH classification
24 Strategic RolesConnector, Condenser, Bridge, Gatekeeper — mandatory assessment
3Relationship TrackingIntensity, Quality, Interaction Type
4Location-Based ContactsTravel planning: mustSee / shouldSee / niceToHave
5Interests ManagementFind contacts by shared interests for events
6Life EventsBirthdays, weddings, children — reminder triggers
7Career EventsJob changes, promotions, open-to-work detection
8Favor/Trade LedgerI_OWE / THEY_OWE with SMALL/MEDIUM/BIG values
9Conversation Flows4 scripted flows: new contact, interaction, overview, goals
10Bilingual RU/ENFull Russian + English behavioral patterns

3.4 BrainDB — Knowledge Memory

#FeatureDescription
1Vector Storepgvector semantic search (1536-dim OpenAI embeddings)
25 Knowledge Categoriespreference, fact, decision, entity, general
3Entity Linkingentities table with crm_contact_id cross-reference
4Smart RecallParallel BrainDB + CRM lookup on every message
5Name Extraction (NER)English + Cyrillic with 50+ stop-word filtering
6Auto-Capture18 targeted regex triggers, fire-and-forget background
7Duplicate Detection0.92-0.95 cosine similarity threshold
8Injection Protection6 regex patterns + HTML entity escaping
9Timeout Safety3s on all external calls — never blocks the bot
104 Toolssearch, store, entity lookup, forget (GDPR-compliant)

3.5 LinkedIn Integration

#FeatureDescription
1Profile EnrichmentHarvestAPI scrapes name, title, company, location, experience
2Email DiscoveryOptional SMTP-validated email lookup ($0.01/profile)
3Auto CRM MappingLinkedIn fields mapped to CRM contact schema
4Interactive FlowShow profile → ask circle/value/roles → save to CRM
5Entity Auto-LinkingCRM contact → BrainDB entity on next Smart Recall

04 Development Effort Estimate

Traditional team: Node.js/TypeScript, PostgreSQL, Agile 2-week sprints. Sr Dev $150/hr, Mid Dev $100/hr.

Phase 1: CRM Backend API

RoleTaskHoursCost
PMRequirements, user stories, acceptance criteria24h$3,600
POData model, circle/role taxonomy, API spec16h$2,400
Dev (Sr)Database schema + migrations16h$2,400
Dev (Sr)REST API (16 endpoints, auth, validation)40h$6,000
Dev (Mid)Recommendations engine24h$2,400
Dev (Mid)Full-text search8h$800
TesterAPI test suite (80+ test cases)24h$2,400
Subtotal152h$20,000

Phase 2: OpenClaw Plugin

RoleTaskHoursCost
PMTool specifications, conversation flow design16h$2,400
Dev (Sr)Plugin framework (SDK, TypeBox schemas)8h$1,200
Dev (Sr)13 tools implementation32h$4,800
Dev (Mid)Dedup, name resolution, update-on-conflict16h$1,600
TesterIntegration testing16h$1,600
Subtotal88h$11,600

Phase 3: Strategic CRM Skill

RoleTaskHoursCost
PONetworking theory, taxonomy design24h$3,600
POConversation flows (4 flows, bilingual)16h$2,400
Dev (Sr)Skill authoring, prompt engineering24h$3,600
Dev (Mid)Location, events, career, favor ledger32h$3,200
TesterBehavioral testing16h$1,600
Subtotal112h$14,400

Phase 4: BrainDB + Smart Recall

RoleTaskHoursCost
Dev (Sr)pgvector, embedding pipeline, vector search24h$3,600
Dev (Sr)Entity linking (schema, upsert, CRM cross-ref)16h$2,400
Dev (Sr)Smart Recall (parallel, NER, timeouts)24h$3,600
Dev (Mid)Auto-capture (triggers, dedup, background)16h$1,600
Dev (Mid)Injection protection, context formatting8h$800
TesterRecall accuracy, capture precision, timeouts16h$1,600
Subtotal104h$13,600

Phase 5-6: LinkedIn + DevOps

RoleTaskHoursCost
Dev (Mid)Apify HarvestAPI integration16h$1,600
TesterProfile enrichment testing8h$800
Dev (Sr)Docker Compose (6 containers), networking16h$2,400
Dev (Mid)Watchdog, session cleanup, restart wrapper12h$1,200
Dev (Mid)Backup system (volumes + pg_dump + rotation)8h$800
Subtotal60h$6,800

Total Summary

PhaseHoursCostCalendar (1 dev)
CRM Backend API152h$20,0004 weeks
OpenClaw Plugin88h$11,6002.5 weeks
Strategic CRM Skill112h$14,4003 weeks
BrainDB + Smart Recall104h$13,6003 weeks
LinkedIn Integration24h$2,4001 week
DevOps & Infra36h$4,4001 week
TOTAL516h$66,40014.5 weeks

By Role

RoleHoursCost
PM40h$6,000
PO56h$8,400
Sr Developer200h$30,000
Mid Developer140h$14,000
Tester80h$8,000
Total516h$66,400

05 Cost Comparison

MetricTraditional TeamClaude Code
Calendar Time4 months (16 weeks)~20 hours across sessions
People Required4-5 (PM, PO, 2 Devs, Tester)1 (user + Claude)
Total Labor Hours516 hours~20 hours
Total Cost$66,400~$250
Iteration Speed2-week sprint cyclesMinutes per change
Domain KnowledgeMust hire networking expertEncoded in prompts
~800x Cost Reduction
~30x Time Compression
6 Docker Containers
47 Features Shipped