System Architecture

How It All Works

The intelligence engine behind Hike Clinical's customer success. Six integrations, five AI models, and Sally — working together to keep every account healthy.

System Architecture

Hover nodes to explore data flows · Click linked nodes to navigate

Integrations
Sync Layer
AI Processing
Sally Agent
Outputs
Gmail
Email Sync
Google Calendar
Meeting Sync
HubSpot
CRM Data
Pylon
Support Tickets
Slack
Team Context
Resend
Email Delivery
Background Sync
7 Scheduled Jobs
SQLite Database
Central Store
Webhooks & Tracking
Real-time Events
Sentiment Analysis
Claude Sonnet
Health Scoring
7-Component (0-100)
Company Matcher
Fuzzy Matching
Expert Knowledge
Claude Haiku
Account Health AI
Claude Haiku
Chat Assistant
9-Tool Interactive
Data Sources

6 Integrations, One Unified View

Every customer touchpoint — email, meetings, tickets, chat, deliveries — flows into a single intelligence layer.

Gmail

Bi-directional email sync with OAuth 2.0

  • Domain-based contact matching
  • AI sentiment scoring per email
  • Activity timeline injection
  • 4-hour sync interval

Google Calendar

Meeting history and upcoming schedule

  • Attendee → company association
  • Internal meeting filtering
  • HubSpot meeting merge
  • 5-min sync for Sally's calendar

HubSpot CRM

Company and contact data from your CRM

  • Meeting history import
  • Contact search by company
  • Company associations
  • 6-hour background sync

Pylon

Support ticket tracking and status monitoring

  • Issue search by company
  • Status & priority tracking
  • Company name matching
  • 4-hour staleness cache

Slack

Team context from two critical channels

  • #ask-an-expert → knowledge base
  • #clinical-sales → account context
  • Thread summarization via Claude
  • Cross-referenced with companies

Resend

Transactional email with delivery intelligence

  • HTML email delivery
  • Open & click tracking via webhooks
  • Bounce & complaint handling
  • Link rewriting for analytics
AI Layer

5 AI Models Processing Every Signal

From raw email text to actionable account health — Claude models extract, score, match, and synthesize across all data.

Sentiment Analysis

Claude Sonnet scores every email from -1 to +1

  • 5 labels: positive → escalation
  • Per-email + trend aggregation
  • 30-day and 90-day windows
  • Drives Sally trigger detection

Health Scoring

7-component algorithm scoring 0-100

  • Order momentum (25pts)
  • Order recency (20pts)
  • Engagement recency (15pts)
  • Meeting freq + support + sentiment

Company Matcher

Fuzzy matching across 3 datasets

  • Exact → contains → prefix
  • ≥4 character prefix matching
  • Cross-source entity resolution
  • Slack, HubSpot, Pylon linking

Expert Knowledge Base

Claude compiles #ask-an-expert into searchable KB

  • Topic-grouped Q&A
  • Clinical & product knowledge
  • Used in Sally drafts
  • Refreshed every 6 hours

Account Health AI

Claude generates status + risk assessment

  • Green / Yellow / Red status
  • AI-written summary paragraph
  • Factor-by-factor breakdown
  • Order + meeting + sentiment context
Sally Agent

The Sally Workflow

Sally runs autonomously every hour — analyzing accounts, detecting triggers, generating drafts, and respecting guardrails.

1

Load Data

Pull companies, orders, contacts, activity from all sources

2

Analyze Accounts

Compute health scores, sentiment trends, engagement gaps

3

Detect Triggers

Match 9 trigger patterns against each account's data

4

Score Priority

Rank accounts by trigger severity and health criticality

5

Generate Drafts

Claude writes personalized outreach with full context

6

Human Review

Team reviews, edits, approves or rejects AI drafts

7

Send & Track

Deliver via Resend, track opens, clicks, replies

8

Learn & Refresh

Remove stale drafts, respect guardrails, iterate

9 Trigger Types

Autonomous pattern detection across every data source

Order Decline
Projected orders < 60% of last month
No Recent Orders
21+ days since last order
No Engagement
21+ days since any contact
Low Health Score
Health score below 40/100
Negative Sentiment
Escalations or ≥2 negative emails
Open Tickets
2+ unresolved support tickets
New Activation
New account or ≤3 total orders
Re-engagement
Status is stale or dead
Growth Opportunity
Orders trending up, ≥5 this month