MortgageCo Command Center — Full Wiring Schema

Live architecture · slaives 18.234.113.139 · 16 PM2 services · 9 Neon DBs · 10 external integrations · 7-phase daily pipeline

Owner / Agent
Cloudflare Domain
PM2 Service (slaives)
Neon Postgres DB
External Integration
Lead Funnel (nginx static)
Pipeline Phase
graph TB
    subgraph OWNER["👤 Owner"]
        Daniel["Daniel Goldsmith
amg916 · AMG"] Marcus["🤖 Marcus
MortgageCo CEO agent"] Daniel --> Marcus end subgraph CF["☁️ Cloudflare DNS / Proxy"] D1["mortgageco.com
WordPress"] D2["go.mortgageco.com
Lead funnel"] D3["home.mortgageco.com"] D4["mortgageco.space
Marketing Brain UI"] D5["meta-ads.slaives.org"] D6["google-ads.slaives.org"] D7["content.slaives.org"] D8["email.slaives.org"] D9["funnel-brain.slaives.org"] D10["ceo-api.slaives.org"] D11["conversions.slaives.org"] end subgraph SLAIVES["🖥️ slaives EC2 · 18.234.113.139 · PM2"] subgraph BRAINS["🧠 Brains / APIs"] P3029["mortgageco-brain :3029"] P5060["ceo-api :5060"] P3010["marketing-brain :3010"] P3019["funnel-checker :3019"] end subgraph ADSEC["📣 Ads / Content / Email"] P3011["meta-ads :3011"] P3014["google-ads :3014"] P3013["content-studio :3013"] P3015["email-platform :3015"] end subgraph PIPE["📊 Pipelines / Trackers"] P5000["conversion-tracker :5000"] P5025["voice-caller :5025"] LFB["lead-flow backend"] REV["rev-tracker"] SMSP["sms"] CARR["carrier-processor"] WR["war-room"] end FUNNEL["📄 /opt/go-mortgageco
nginx static funnel"] end subgraph NEON["🐘 Neon Postgres · ep-misty-flower"] DB0[(neondb)] DB1[(marketing_brain)] DB2[(meta_ads)] DB3[(google_ads)] DB4[(email_platform)] DB5[(contacts — 1.3M)] DB6[(sms_brain)] DB7[(content_studio)] DB8[(funnel_checker)] end subgraph EXT["🔌 External Integrations"] HEFTY["Hefty.cc"] OMNI["Omnisend"] METAAPI["Meta Marketing API"] GADS["Google Ads API"] TXT["Txtria"] MDRIPS["MobileDrips"] ELEVEN["ElevenLabs"] GHL["GoHighLevel CRM"] CLARITY["MS Clarity"] WARX["warrooms.space"] end Marcus -->|commands| P3029 Marcus -->|directives| P5060 D2 --> FUNNEL D4 --> P3010 D5 --> P3011 D6 --> P3014 D7 --> P3013 D8 --> P3015 D9 --> P3019 D10 --> P5060 D11 --> P5000 FUNNEL -->|submit| LFB LFB -->|lead| GHL LFB -->|CAPI| METAAPI LFB -->|subscriber| OMNI LFB -->|event| P5000 LFB -->|distribute| HEFTY P3029 --> DB0 & DB1 & DB2 & DB3 & DB4 & DB6 & DB7 & DB8 P3029 --> HEFTY P3010 --> DB1 P3011 --> DB2 P3011 --> METAAPI P3014 --> DB3 P3014 --> GADS P3013 --> DB7 P3015 --> DB4 P3015 --> OMNI P3019 --> DB8 P3019 -->|walkthrough| FUNNEL P5000 --> DB0 REV --> HEFTY DB5 --> CARR CARR --> TXT CARR -->|Verizon| OMNI CARR -->|Non-Verizon| MDRIPS SMSP --> DB6 SMSP --> OMNI SMSP --> MDRIPS P5025 --> ELEVEN P5025 --> GHL WR --> WARX P3029 --> WARX FUNNEL -.session.-> CLARITY classDef owner fill:#1e293b,stroke:#f59e0b,stroke-width:2px,color:#fff classDef cf fill:#f97316,stroke:#c2410c,color:#fff classDef svc fill:#0ea5e9,stroke:#075985,color:#fff classDef db fill:#10b981,stroke:#065f46,color:#fff classDef ext fill:#8b5cf6,stroke:#5b21b6,color:#fff classDef funnel fill:#ef4444,stroke:#991b1b,color:#fff class Daniel,Marcus owner class D1,D2,D3,D4,D5,D6,D7,D8,D9,D10,D11 cf class P3029,P5060,P3010,P3011,P3013,P3014,P3015,P3019,P5000,P5025,LFB,REV,SMSP,CARR,WR svc class DB0,DB1,DB2,DB3,DB4,DB5,DB6,DB7,DB8 db class HEFTY,OMNI,METAAPI,GADS,TXT,MDRIPS,ELEVEN,GHL,CLARITY,WARX ext class FUNNEL funnel
graph LR
    V["👤 Visitor"] -->|ad click| FB["Facebook / IG ad"]
    V -->|search| GA["Google search ad"]
    V -->|email| EM["Omnisend email CTA"]
    V -->|SMS| SM["SMS link"]

    FB --> CF["☁️ go.mortgageco.com
Cloudflare proxy"] GA --> CF EM --> CF SM --> CF CF --> NG["nginx /opt/go-mortgageco
static React"] NG --> S1["Start page"] S1 --> S2["Loan Type"] S2 --> S3["Property Details"] S3 --> S4["Contact Info"] S4 --> S5["Submit"] S5 --> LFB["lead-flow backend"] LFB --> GHL["GoHighLevel CRM"] LFB --> META["Meta CAPI event"] LFB --> OMNI["Omnisend contact"] LFB --> CONV["conversion-tracker :5000"] LFB --> HEFTY["🎯 Hefty.cc
lead sold"] HEFTY --> REV["mortgage-rev-tracker"] REV --> BRAIN["mortgageco-brain :3029"] NG -.track.-> CL["MS Clarity
session recording"] FC["funnel-checker :3019"] -->|health every 5m| NG FC -->|auto-fix| NG classDef user fill:#f59e0b,color:#000 classDef channel fill:#8b5cf6,color:#fff classDef flow fill:#ef4444,color:#fff classDef step fill:#0ea5e9,color:#fff classDef money fill:#10b981,color:#fff class V user class FB,GA,EM,SM,META,OMNI,GHL,CL channel class CF,NG flow class S1,S2,S3,S4,S5,LFB,CONV,FC step class HEFTY,REV,BRAIN money
graph TB
    subgraph DAY["📅 Daily Pipeline — marketing-ops/*.sh"]
        PH1["🌅 6 AM · Phase 1
Content Generation"] PH2["☕ 8 AM · Phase 2
Stats Collection"] PH3["🎯 10 AM · Phase 3
War Room Analysis"] PH4["⚙️ 12 PM · Phase 4
Campaign Adjustment"] PH5["🚀 3 PM · Phase 5
Content Posting"] PH6["🌙 8 PM · Phase 6
Night Audit"] PH7["✅ 10 PM · Phase 7
QA Check"] PH1 --> PH2 --> PH3 --> PH4 --> PH5 --> PH6 --> PH7 end PH1 -->|generate| CS["content-studio :3013"] CS --> DB7[(content_studio)] PH2 -->|pull| META["Meta API"] PH2 -->|pull| GADS["Google Ads API"] PH2 -->|pull| OMNI["Omnisend"] PH2 -->|pull| HEFTY["Hefty.cc"] META --> DB2[(meta_ads)] GADS --> DB3[(google_ads)] OMNI --> DB4[(email_platform)] PH3 --> WR["war-room"] WR --> WARX["warrooms.space intel"] WR --> DIRECTIVE["optimization directives"] PH4 --> MA["meta-ads :3011"] PH4 --> GA["google-ads :3014"] MA --> META GA --> GADS PH5 --> MA2["meta-ads :3011"] PH5 --> GA2["google-ads :3014"] PH5 --> EM["email-platform :3015"] EM --> OMNI PH6 --> FC["funnel-checker :3019"] FC --> FUNNEL["go.mortgageco.com"] PH7 --> FC2["funnel-checker :3019"] FC2 -->|verify| PIXEL["tracking pixels"] FC2 -->|verify| LIVE["ads live"] classDef phase fill:#475569,stroke:#1e293b,color:#fff,stroke-width:2px classDef svc fill:#0ea5e9,color:#fff classDef ext fill:#8b5cf6,color:#fff classDef db fill:#10b981,color:#fff class PH1,PH2,PH3,PH4,PH5,PH6,PH7 phase class CS,WR,MA,GA,MA2,GA2,EM,FC,FC2 svc class META,GADS,OMNI,HEFTY,WARX ext class DB2,DB3,DB4,DB7 db
graph TB
    FTP["📁 FTP source file
1.3M contacts"] FTP --> DB5[(contacts DB
1.3M rows)] DB5 --> CARR["carrier-processor
on slaives"] CARR -->|lookup| TXT["Txtria API
sys_id auth"] TXT -->|carrier data| CARR CARR -->|Verizon contacts| VB["verizon bucket"] CARR -->|Non-Verizon| NVB["non-verizon bucket"] VB --> OMNI["📧 Omnisend SMS"] NVB --> MD["📱 MobileDrips"] OMNI --> V1["Verizon delivery"] MD --> V2["All other carriers"] V1 --> CTR["Click tracking"] V2 --> CTR CTR --> CONV["conversion-tracker :5000"] CONV --> DB0[(neondb)] SMSP["mortgageco-sms
pipeline PM2"] SMSP --> DB6[(sms_brain
routing/delivery log)] SMSP --> OMNI SMSP --> MD BRAIN["mortgageco-brain :3029"] --> DB6 BRAIN --> DB5 classDef src fill:#f59e0b,color:#000 classDef svc fill:#0ea5e9,color:#fff classDef db fill:#10b981,color:#fff classDef ext fill:#8b5cf6,color:#fff classDef bucket fill:#ef4444,color:#fff class FTP src class CARR,SMSP,CONV,BRAIN svc class DB0,DB5,DB6 db class TXT,OMNI,MD ext class VB,NVB,V1,V2,CTR bucket
graph LR
    subgraph NEON["🐘 Neon Postgres · ep-misty-flower project"]
        direction TB
        DB0[(neondb
central/shared)] DB1[(marketing_brain
analytics)] DB2[(meta_ads
ad data)] DB3[(google_ads
ad data)] DB4[(email_platform
Omnisend sync)] DB5[(contacts
1.3M SMS)] DB6[(sms_brain
routing)] DB7[(content_studio
generated)] DB8[(funnel_checker
health history)] end BRAIN["🧠 mortgageco-brain :3029
unified query layer"] BRAIN --> DB0 & DB1 & DB2 & DB3 & DB4 & DB6 & DB7 & DB8 MB["marketing-brain :3010"] --> DB1 MA["meta-ads :3011"] --> DB2 GA["google-ads :3014"] --> DB3 EM["email-platform :3015"] --> DB4 CS["content-studio :3013"] --> DB7 FC["funnel-checker :3019"] --> DB8 CT["conversion-tracker :5000"] --> DB0 CARR["carrier-processor"] --> DB5 SMSP["mortgageco-sms"] --> DB6 classDef db fill:#10b981,color:#fff,stroke:#065f46,stroke-width:2px classDef svc fill:#0ea5e9,color:#fff class DB0,DB1,DB2,DB3,DB4,DB5,DB6,DB7,DB8 db class BRAIN,MB,MA,GA,EM,CS,FC,CT,CARR,SMSP svc